Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi, I'm having a little problem with some Shopify stores regarding the order in which the line item properties appear in the order on the admin page. Here's how the properties are added to a product when adding it to the cart, they are perfectly ordered with all properties starting with an underscore added at the end.
However, when viewing the order on the admin Orders page, they are shown like this:
The order is altered! What is weird is that this only happens in some Shopify stores. What are the criteria to sort the properties? I can't find anything on the Shopify API regarding the properties ordering.
Thank you in advance!
Having the same issue. Where you able to solve this?
In liquid, I was able to get sorted properties using below code:
{% assign sortedProperties = item.properties | sort_natural %} {%- for p in sortedProperties -%}