Shopify themes, liquid, logos, and UX
Hi there,
For each product in my store, the EAN code for the respective product is displayed.. This is the custom Liquid code I am using:
{% if product.variants.size > 0 %}
<p style="font-size: 12px;">EAN: {{ product.variants.first.barcode }}</p>
{% else %}
<p style="font-size: 12px;">EAN: No barcode available.</p>
{% endif %}
I have tried to move this information into the collapsible product description. Is it possible to solve this with CSS?
URL: doftnoter.se
Passw: test12345
Thanks!
Solved! Go to the solution
This is an accepted solution.
Case solved. I added the code directly in main-product.liquid instead of using a custom liquid.
This is an accepted solution.
Case solved. I added the code directly in main-product.liquid instead of using a custom liquid.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024