Luis58
April 13, 2023, 10:28pm
1
Hey I am using the newest Sense Version, which is 9.0.0.
I want to have a custom text above the ATCs in for every product, but not the same on every product.
I have tried :
{% if product.handle == 'SmartPaw' %}
<div class="custom.product-description">
<p>? text </p>
</div>
{% endif %}
P.S : cant find the codepart from the ATC Button to insert the above code (if it is correct)
You should not have to edit the theme files code for this.
If the content is different per product create a metafield definition.
https://help.shopify.com/en/manual/metafields/metafield-definitions/
namespace: content , key : additional_description
Then use a text block with a dynamic source to that metafield definition.
It some message or UI element should only show for a specific set of products then use an alternate template.
https://help.shopify.com/en/manual/online-store/themes/os20/theme-structure/templates#create-a-new-template
Or a custom-liquid block in the product template settings for custom code that references a metafield definition {{ product.metafields.content.additional_description.value }} .