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
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