mareksmareks Posted February 5, 2017 Share Posted February 5, 2017 (edited) Hi. We have 1.6 with custom theme - https://mebelestev.lv/lv/viesistaba/viesistaba-galdi-kresli/viesistabas-kresli/?p=3 We are using for many products combinations and we want to display some sort of text in prduct listing page if any sort of combinations are used. As example if we add color attribute that displays small color squares in product listing page under "add to cart" button. How to change this code to show our text if ANY of attributes is used: {if isset($product.color_list)} <div class="color-list-container">{$product.color_list}</div> {/if} I know what to do with 2nd line but what should I change in $product.color_list ? Thank you! Edited February 5, 2017 by mareksmareks (see edit history) Link to comment Share on other sites More sharing options...
w3bsolutions Posted February 5, 2017 Share Posted February 5, 2017 This should check if product has any combination: {if $product.id_product_attribute != 0} // product has combinations {l s='Your custom text here'} {/if} Cheers. 1 Link to comment Share on other sites More sharing options...
mareksmareks Posted February 5, 2017 Author Share Posted February 5, 2017 super! Works as charm!! Link to comment Share on other sites More sharing options...
w3bsolutions Posted February 5, 2017 Share Posted February 5, 2017 Good to hear. Remember to mark the topic as Solved or select my answer as "best answer". Cheers. 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