Access Customer B2B fields in Shipping Scripts

davekeql
Tourist
7 0 4

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...

Replies 2 (2)

DGregson
Shopify Partner
2 0 0

Surprised there aren't more eyeballs and upvotes on this one! 

davekeql
Tourist
7 0 4

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."