Nick20000 Posted March 6, 2014 Share Posted March 6, 2014 (edited) hi guys. how would i change my featured products home block to display text when an item is "in stock" above the free delivery text? and not available when out of stock? picture added please look. http://www.shopmost.co.uk thank you. Edited March 6, 2014 by Nick20000 (see edit history) Link to comment Share on other sites More sharing options...
Nick20000 Posted March 6, 2014 Author Share Posted March 6, 2014 hi again. anyone have a solution. thank you. Link to comment Share on other sites More sharing options...
tdr170 Posted March 6, 2014 Share Posted March 6, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now