Dynamic shipping post purchase upsell

Sid
Shopify Expert
30 2 5

Hello there,

 

How can we get a dynamic shipping price set on Shopify for a post-purchase upsell product?

I can set add_shipping_line with a static price set in APP but if i do not add it, the response from Shopify returns null in addedShippingLine.

 

Is there a need to make any front API call to get the shipping price? or need any parameter pass with add_variant type? or any settings in the backend?

 

 

Reply 1 (1)
Jcoj613
Tourist
6 1 1

Would like to know why it is null and free shipping as well.

Oh maybe it is because it just uses the shipping price into the same order, from original purchase. So shipping is not charged for each item?

Or add_shipping_line_change needs to be added?