Adding Item Attributes to Order Notes

Marc_Epstein
Tourist
7 0 1

I am trying to add each line item's weight and total order weight to the order notes. This should preferably be done during the checkout process. Any tips?

Reply 1 (1)
PaulNewton
Shopify Partner
3431 225 662

Merchants that need this customization can get it by contacting me at paull.newton+shopifyforums@gmail.com with topic url,store url,theme and use-case details.

During the /cart phase you want to use either cart attributes or line item properties

https://community.shopify.com/c/shopify-design/product-pages-get-customization-information-for-produ... 

https://community.shopify.com/c/shopify-design/cart-use-cart-attributes-to-collect-more-information/...

 

If you must push data into the order.note, such as for an ERP,  rather than letting customers be able to use then you want to put the relevant data in the order.notes <textarea> value attribute in  your themes cart-template/ajax-cart-template.

 

And since customers should be prevented from editing that info the order.note textarea should be hidden with a style in the themes main style or as a style attribute on the textarea:

style="display:none;"

 

If you need the order note interactable for customers that means having to inject,preprend, or append this data to whatever customers may enter.

That's an advanced customization that will require javascript to do the work when the /cart is submitted to /checkout. 

 

To do this during /checkout phase a store must be on a Shopify Plus plan to be able to manipulate checkout.

 

Join the discussion - What was learned this Black Friday?


Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org

Problem Solved? ✔Accept and Like solutions to help future merchants

Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com