All things Shopify and commerce
Hello,
How can i limit card product description ?? {{ card_product.description }}
I tried to use this code {{ card_product.description | truncate:30 }} but this isn't working Please help!
What's your store url ?
I can share the code
{% for block in section.blocks %}
<div>
{% assign product = all_products[block.settings.produit] %}
<div>
<a href="{{ product.url }}">
<h2>{{ product.title }}</h2>
<p>{{ product.description }}</p>
<img src="{{ product.featured_image.src | img_url: '1024x' }}" alt="">
</a>
{% if product.variants.size > 1 %}
<ul>
{% for variant in product.variants %}
<li><a href="{{ variant.url }}">{{ variant.title }}</a></li>
{% endfor %}
</ul>
{% else %}
<div>
<a href="{{ product.url }}">Buy Now</a>
</div>
{% endif %}
</div>
</div>
{% endfor %}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025