tritlex Posted April 21, 2015 Share Posted April 21, 2015 Кто может подсказать как правильно задать условия в product-list.tpl Если у товара есть комбинации выводим ожно слово, если нету то скрывает его. Пробовал такой вариант, работает не корректно. {if isset($product->groups) == 0} style="display:none"{/if} Link to comment Share on other sites More sharing options...
Kerm Posted April 22, 2015 Share Posted April 22, 2015 (edited) {if isset($groups)} // {/if} Так работает? Edited April 22, 2015 by Kerm (see edit history) Link to comment Share on other sites More sharing options...
tritlex Posted April 22, 2015 Author Share Posted April 22, 2015 {if isset($groups)} // {/if} Так работает? Так работает только в карточке Link to comment Share on other sites More sharing options...
Kerm Posted April 22, 2015 Share Posted April 22, 2015 (edited) {if $product.id_product_attribute} {/if} Edited April 22, 2015 by Kerm (see edit history) 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