Access attributes on order status page

Shopify Partner
38 0 0

Hi,

I followed this guide to add information on the order status page:
https://help.shopify.com/themes/customization/order-status/order-status-javascript-asset

This works pretty nicely.

Now I want to adittionally display 'attribues' that where collected for this order.

Here is an sample order that has an additional attribute 'preferredLocation' set with 'attributes[preferredLocation]' during checkout.
https://checkout.shopify.com/17208063/orders/f61770ced87e64d8704656c5f6cd6d84

How can I access the attributes on the checkout page for displaying them to the user?

Best,
Gerwin

0 Likes
Shopify Partner
38 0 0

Here is a screenshot of that order from within the admin:

 

0 Likes
Community Manager
Community Manager
618 45 79

Hi Gerwin,

You can use the liquid cart object to display any cart attributes on the order status page.

{{ attributes }}

This will return a hash of all cart attributes. Or you can specify attribute.ATTRIBUTENAME for a specific attribute to be returned. These don't look to be exposed as a JS object on the checkout.

0 Likes
Shopify Partner
38 0 0

Hi Busfox,

thanks for the reply.
We want to use the attributes in an APP. 

Is there now a way to change the OrderStatus page in the theme editor? I did not find one.
The only way I could find to do this is via the manual insert via the admin -> checkout.

This does not work for us :(

Is it possible to get one of options available for app development?
A) the attributes exposed or somehow accessible in the js api
or
B) a way add a liquid-snippet programatically into the OrderStatus page


Best,
Gerwin

0 Likes
Shopify Partner
38 0 0

Any update on this?

0 Likes
Highlighted
Shopify Partner
38 0 0

bump

0 Likes