Here you can learn how to create product filters for product lists in MyCashflow themes.
Adding product filter support to a theme
Displaying product features on product pages
The internal default theme of MyCashflow includes built-in support for the feature.
You can set product features' values to be displayed on product pages by using the product filter Display as product feature on product pages setting.
In the product template, add the following markup to the location where you'd like to display product features:
{ProductFeatures(
helper: {{
{ProductAttributeValues(
before: {{ <p class="ProductAttribute-{ProductAttributeId}"> }},
after: {{ </p> }}
)}
}}
)}See the individual parts of the example explained below:
- The
{ProductFeatures}tag creates a list that contains the product's features. Thehelperattribute defines how each feature should be displayed. - By default,
{ProductAttributeValues}prints feature values as a comma-separated list.You can define the separator yourself by using the
separatorattribute or define the entire markup for each value by using thehelperattribute. - For each feature, the
{ProductAttributeId}tag adds their feature identifier, which is defined in the admin panel. This information can be used, for example, for writing CSS styles or scripts.
