Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 -%}
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024