Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Get distinct shipping cost rate for order having multiple products from distinct shipping profiles

Get distinct shipping cost rate for order having multiple products from distinct shipping profiles

Palak2596
Shopify Partner
5 0 4

We have created 2 shipping profiles in our app. One is the general profile, where we have weight-based shipping rates. Another is using a custom carrier with a third-party service to calculate an accurate shipping rate.


Now, whenever users checkout with products in the same category, they get the proper shipping price. You can check out the image below.

  • Custom profile with third-party rate provider

Palak2596_0-1710166538392.png

 

 

  • General profile with a weight-based rate provider:

     

Palak2596_1-1710166538299.png

  • But when users try to checkout with products from multiple shipping profiles, it only shows the shipping price provided by a third party.

Palak2596_2-1710166538394.png

 

 

The user is able to complete the transaction. We have also created one webhook for /orders/create to get "eventData" and create an “uShip listing” afterwards.


We are facing problems when users checkout products from multiple shipping profiles. We only get one element in the “shipping_lines” array property with the general shipping option. Below, I have mentioned the response type:

  • shipping_lines property:
    1. When users checkout with multiple products from multiple shipping profiles:

 

{ 
 …other_properties,
"source": "Shopify",
"title": "Shipping",
"code": "Shipping", 
}

​

 

  • When users checkout products from only custom shipping profiles:

 

{ 
  …other_properties, 
  "source": "uShip Rate Provider", 
  "title": "uShip In-Home Delivery",
  "code": "cac1d609-f428-440e-99f1-8d6ced44a36a", 
}​

(code is required to create a "uShip shipment" listing.)

 

How can I get 2 elements with different shipping rates and profiles in my “shipping_lines” array (in /orders/create web-hook) so that I can handle them separately and create a third-party listing for custom profile products only? Is it even possible with Shopify or not?

Replies 3 (3)

dave_shipperhq
Shopify Partner
79 3 8

Hi @Palak2596 - If you are open to trying out 3rd party app, we have been working with thousands of merchants to streamline their shipping on checkout.

You can opt for a free trial here.

sniper2804
Shopify Partner
407 25 69

Hi @Palak2596 ,

 

The reason this is happening is, in Shopify whenever cart contains items from 2 profiles, the shipping rates are combined in such a way that the cheapest shipping rates from both the profiles are added up together and shown as one rate by the name of "Shipping". Since the cheapest rate is Economy (which is free) in your first profile, the added up rate reflects just the amount of the uShip rate. You can read more about it here.


This behaviour cannot be altered in Shopify, even using any third party app unfortunately. However, there is a kind of hacky solution which we could try on your store using our app ShipMagic's shipping customizations feature. You can reach out to the live chat support in the app to know more.

Automate & bulk assign products to shipping profile: Auto Shipping Profiles: Shipr
Calculate accurate shipping rates: Shipping Calculator: ShipMagic
Hide, rename, reorder payment methods at checkout: Payment Customization: PayMix
Palak2596
Shopify Partner
5 0 4

@sniper2804 Thanks for the detailed reply. It would be great if Shopify itself provides some mechanism to differentiate it.