Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I'm trying to sort items in the shopping cart. I've been able to do it with liquid templating. But when I proceed to the checkout page, the quantity of the products are different from the one displayed in the shopping cart. I've noticed that items in the cart.items array don't have the same order then the items in the shopping cart page. In the cart.items array the order of the items is equal to the same order product are added to the cart. For example, the last product added will be the first in the cart.items array.
Does someone know what do I need to do to be able to correctly sort items in the shopping cart ?
Thank you,
Did you ever figure out how to do this?
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025