Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cart item_components's order is inconsistent after expand operation #570

Open
andrewchen5678 opened this issue Oct 24, 2024 · 0 comments
Open

Comments

@andrewchen5678
Copy link

item.item_components's sort order is pretty inconsistent on shopping cart after expansion, it shows reverse order on shopping cart after expansion, but when visiting checkout page, it shows the same order as the expansion operation output, but after coming back to the site from checkout again, it is showing the same order as the checkout page until the cart is updated again and the orders become reversed once more.

It looks like a bug on shopify where this function is not able to provide the same consistent order as what's on the checkout page:

{%- for item in cart.items -%}
 {%- for item_component in item.item_components -%}
...
 {%- endfor -%}
{%- endfor -%}
@andrewchen5678 andrewchen5678 changed the title cart line item order is inconsistent after expand operation cart item_components's order is inconsistent after expand operation Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant