Syswatch Posted March 10, 2014 Share Posted March 10, 2014 Hello, Now my product-list.tpl show in stock/out of stock. But in BO I have the option to write something in the field "Displayed text when backordering is allowed" and it shows in product.tpl Now I want to have this text showed on product-list.tpl instead of "out of stock" if the field is filled in with some text. I tried to copy this line to product-list.tpl but it does not show anything: {$product.available_later} Anyone with a quick fix for that ? Thanks.... Link to comment Share on other sites More sharing options...
Syswatch Posted March 28, 2014 Author Share Posted March 28, 2014 Got it working with this code: {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.quantity > 0)}{l s='Available'}{elseif isset($product.available_later) && $product.available_later}<span class="ontheway">{$product.available_later}</span>{else}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if} Closing the question. Link to comment Share on other sites More sharing options...
vansrv7 Posted April 18, 2014 Share Posted April 18, 2014 I had the same need, thank you for the solution! 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