Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I am looking for help with code to provide a volume/quantity discount for specific products in my store. Here are the details:
I've been searching and searching and cannot find the answers I need. Shopify help center provides the following liquid code for cart quantity, but I'm not sure how to adjust it for what I need - or if this is the correct function to use.
{% comment %} Cart quantity {% endcomment %}
<span id="CartQuantity-{{ section.id }}" data-product-url="{{ product.url }}" data-section-id="{{ section.id }}" data-variant-id="{{ product.selected_or_first_available_variant.id }}">
{{ cart | line_items_for: product | sum: 'quantity' }}
{{- 'products.product.quantity.in_cart' | t: quantity: cart_qty -}}
</span>
Would greatly appreciate any help!
thanks,
Alexandra
Hi @Varria ,
This is Theodore from PageFly - Shopify Page Builder App.
Steps:
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Theodore,
Can you repost the code you intended to give in your last comment? It didn't post.
Appreciate your help!
Thanks,
Alexandra
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