yasic Posted June 18, 2013 Share Posted June 18, 2013 (edited) I have made some changes to the names of conditions so that instead of chosing new, used or refurbished in the backend it's now an option to chose the delivery time, all works well in the product.tpl but in product-list.tpl every product shows as refurbished, here's the code that works in product but not on the list: {if $product->condition == 'new'} <span class="condition_new">{l s='Delivery in 48hrs'}</span> {elseif $product->condition == 'used'} <span class="condition_used">{l s='Delivery in 7 working days'}</span> {else} <span class="condition_refurbished">{l s='refurbished'}</span> {/if} can somebody tell me what i'm doing wrong? Edited June 18, 2013 by yasic (see edit history) Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted June 18, 2013 Share Posted June 18, 2013 Hi, just try $product.condition instead of $product->condition. In product-list.tpl this variable is array. Regards 1 Link to comment Share on other sites More sharing options...
yasic Posted June 18, 2013 Author Share Posted June 18, 2013 Brilliant, works prefectly, thanks for your help (should you ever need some graphics help, let me know!) 1 Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted June 18, 2013 Share Posted June 18, 2013 Thank you Now you can mark this post with [sOLVED] Link to comment Share on other sites More sharing options...
Juaners Posted August 29, 2014 Share Posted August 29, 2014 Thx you both!! 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