Skip to content

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

Open
@andrewchen5678

Description

@andrewchen5678

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions