Liquid, JavaScript, themes, sales channels
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?
User | RANK |
---|---|
25 | |
22 | |
9 | |
6 | |
5 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023