cancel
Showing results for 
Search instead for 
Did you mean: 

Text widget depending on attribute or category

Text widget depending on attribute or category

Hi,

 

I sell clothes.

I have created a "fabric" attribute.

I would like to show a text on the product page based on that attribute.

So "coton" clothes would show a text and "silk" clothes would show another text.

 

I have been looking into widgets for this.

 

I am able to show different texts on products by creating a widget and selecting which products the widget should display on. But this is tedious because I have a lot of products

 

Is there a way to display text widgets based on a specific attribute ?

 

If not possible with attribute, is it possible with categories ? I can separate my products in fabric categories.

 

Thank you for the help in advance,

Pierre

3 REPLIES 3

Re: Text widget depending on attribute or category

@pierre_cleaud Seems like you want to provide extra details based on product and for that, you've created "fabric" attribute, is it? You don't need Widget for this, I guess by changing frontend property "Visible on Catalog Pages on Storefront" as yes of "febric" attribute it would show on frontend. make sense?

 

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.

Re: Text widget depending on attribute or category

@GauravMehta04

 

Thank you for the reply.

 

I am using product tabs.

I want to display the text which depends of attribute in the product tabs.

 

I don't think I can use the textarea product attribute to do this.

Pierre

 

Re: Text widget depending on attribute or category

@pierre_cleaud By "Visible on Catalog Pages on Storefront" attribute should display into product tab. Regards to your need attribute wise text for that you need to do some custom code.

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.