Jump to content

Home Featured Block - Need Add Text to Show "In Stock"


Recommended Posts

Try pasting this code in the homefeatuered.tpl file right before the delivery code, I have also included a quantity if you look at the code below you will see a <br /> if you do not want the quantity remove the <br /> and the code after.

 

{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if}
<br />
{$product.quantity}{l s=' items in stock'} <br />{l s='Part #:'} {$product.reference} 
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...