Jump to content

[Solved] Remove Stock Info From Product Detail When Stock Mgt Is Disabled


Recommended Posts

Hello,

 

even with stock management disabled, the product detail will show "Availability: this item is not in stock" for a brief moment while the page loads.

 

It is long enough to confuse the customer, and very annoying.

 

Is there any way to hard-code remove that line? I am using PS 1.4.4 and the TNT2 Atchworks template.

 

Thank you in advance for your help!

 

Dan

Link to comment
Share on other sites

  • 1 month later...

Hi Andy1,

 

here is what I did: I removed following line from Product.tpl of my template:

"<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>

{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}

</span>"

"<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>
{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}
</span>"

 

Hope that helps!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...