Personalized checkout and custom promotions with Shopify Scripts
We would like to provide different shipping rates to different B2B companies, similar to how pricelists work. For example, have different minimum order values for free shipping.
Since that type of functionality isn't currently available, I was hoping I could approximate it with Shipping Scripts. However, it seems none of the B2B fields are available in the Scripts API?
Scripts customer object:
https://help.shopify.com/en/manual/checkout-settings/script-editor/shopify-scripts#customer
As opposed to, for example, the "company" object's inclusion on "customer" in Liquid:
https://shopify.dev/themes/pricing-payments/b2b
Any advice on how one might achieve this?
The only thing I can think of to explore offhand is customer tags, but I'd really like to stay away from that and keep it aligned with native B2B values...
Surprised there aren't more eyeballs and upvotes on this one!
I think with the move to Functions, no attention is being paid to Scripts.
So think I titled this post wrong. I should have named it something like "How to have shipping rate list similar to price list."
Went with tagging b2b customers and used that for our situation.
cart.customer.tags.include?('B2B')
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025