cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 dynamic custom attribute set for product page

magento 2 dynamic custom attribute set for product page

Hi all

ok, I hope I'm not cross posting here, I'm trying to explain what I want to achieve a little clearer.

On my product page, I display the values of a custom attribute.

My question is how do I display the custom attribute values if they are from a different attribute set?

For example: Just under the 'product price' on the product page, I have the attribute values displayed. But each product may be using a different attribute set.

So product A = attribute set A, product b = attribute b

I currently have a static value in my layout file using the custom attribute code.

Should I be trying to make the layout block dynamic or should the custom attribute template file be dynamic?

Thank you

Andy