Jump to content

[solved] Product condition not showing correctly in product-list


Recommended Posts

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 by yasic (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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...