Jump to content

Как заставить работать if $product->on_sale в product-list.tpl?


Recommended Posts

Собственно сабж, в product.tpl есть такой код: {if $product->on_sale}<span class="stickerHotPrice"> </span>{/if}, он добавляет стикер к картинке товара, но этот код не работает в product-list.tpl.

Подозреваю, что нужно вытягивать что-то дополнительно в цикле, но как это сделать не знаю, можно сделать это силами смарти в самом файле product-list.tpl или нужно лезть в php? И если в php подскажите пожалуйста куда?

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