The basic product attribute tag is {% component source: “Products”, itemId: “{{this.Id}}”, type: “item_attributes” %} and then there is ‘Layout’, ‘Sort By’, ‘Object’ and ‘Collection Variable’ as options.
I need to be able to place different attributes in different locations on the page so need to be able to target the name of an attribute to put it in a certain location.
Hi @SiroccoDigital. Yes, this is possible, but you’ll have to rebuild the HTML for the options/inputs yourself (make a copy of the source Treepl generated code to work off).
I have got the section ‘options’ code you supplied working and it displays the attributes where i can pick and choose what data is displayed (fantastic cause this fixes my price issue too). How do I just get it to show a specific attribute like if the attribute name was ‘Colour’?
Hi @SiroccoDigital. I can’t access that link at the moment (a Liquid error is showing), but have you made sure to include the parent HTML element/s (such as the ) around those attributes (referenced from the Treepl default output)?
How strange @Adam.Wilson! This was working normally yesterday and now all the catalogs and products have the same liquid error this morning. Wonder if the eCommerce upgrade has caused this?
@SiroccoDigital, it doesn’t look like you have the wrapper around those attributes like what is present in the default output. I’d say this is needed for the system to submit those selected items.