Jump to content

[Solved] Add custom text in product list


mareksmareks

Recommended Posts

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 by mareksmareks (see edit history)
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...