Alphabetical Cart PLEASE

Highlighted
New Member
1 0 0

I have products that have many variants with same name, but the cart page shows up in order of however the customer made the order (I believe), and this causes me a pain in the ass when pulling the items.

Is there a way to sort them out so that the cart page shows up in alphabetical order?

 

I have the following in the cart.liquid - maybe it's in the wrong place or it's not right at all This is day two of going in circles trying to get answers via google.

{% assign products = collection.products | sort: 'title' %}
{% for product in products %}
{{ product.title }}
{% endfor %}

0 Likes