Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hey guys, I have implemented the a custom carrier service using the API https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/carrierservice
An example of my problem - When I add two products from different shipping profiles using the same carrier service, the delivery is added but I dont want this. e.g. The first product delivery fee is 600. the second product is 400. I would like to delivery fee to be 600 (i.e. the maximum of the two), not the total (600+400).
The example explained
The shopping cart
the first item is in the general shipping profile,
the second product is in a custom shipping profile
They are both using the same carrier service: Shipping Rate Provider23423 (bad name I know).
My backend is receiving two requests, calculating the delivery fee for each, and then shopify is adding them together. How do I get shopify to send just one request with both products.
In detail.
the first request.
{
"rate":{
"origin":{
"country":"AU",
"postal_code":"xxx",
"province":"xxx",
"city":"xxx",
"name":null,
"address1":"xxx",
"address2":null,
"address3":null,
"phone":"",
"fax":null,
"email":null,
"address_type":null,
"company_name":"smartkits dev"
},
"destination":{
"country":"xxx",
"postal_code":"xxx",
"province":"xxx",
"city":"xxx",
"name":"xxx",
"address1":"xxx",
"address2":"",
"address3":null,
"phone":null,
"fax":null,
"email":null,
"address_type":null,
"company_name":null
},
"items":[
{
"name":"Insulated Flyover Roof- 10m x 8m",
"sku":"",
"quantity":1,
"grams":0,
"price":1555000,
"vendor":"xxx",
"requires_shipping":true,
"taxable":false,
"fulfillment_service":"manual",
"properties":{
},
"product_id":6584689164494,
"variant_id":39432892121294
}
],
"currency":"AUD",
"locale":"en"
}
}
the second request
{
"rate":{
"origin":{
"country":"xxx",
"postal_code":"xxx",
"province":"xxx",
"city":"xxx",
"name":null,
"address1":"xxx",
"address2":null,
"address3":null,
"phone":"",
"fax":null,
"email":null,
"address_type":null,
"company_name":"xxx"
},
"destination":{
"country":"xxx",
"postal_code":"xxx",
"province":"xxx",
"city":"xxx",
"name":"xxx",
"address1":"xxx",
"address2":"",
"address3":null,
"phone":null,
"fax":null,
"email":null,
"address_type":null,
"company_name":null
},
"items":[
{
"name":"Attached Skillion Patio Roof- 10m x 4m - Modern Corrugated profile.",
"sku":"",
"quantity":1,
"grams":0,
"price":509500,
"vendor":"xxx",
"requires_shipping":true,
"taxable":false,
"fulfillment_service":"manual",
"properties":{
},
"product_id":6584674353358,
"variant_id":39432776089806
}
],
"currency":"AUD",
"locale":"en"
}
}
I want one request where the items array is:
...
...
...{
"items":[
{
"name":"Insulated Flyover Roof- 10m x 8m",
"sku":"",
"quantity":1,
"grams":0,
"price":1555000,
"vendor":"SmartKits Australia",
"requires_shipping":true,
"taxable":false,
"fulfillment_service":"manual",
"properties":{
},
"product_id":6584689164494,
"variant_id":39432892121294
},
{
"name":"Attached Skillion Patio Roof- 10m x 4m - Modern Corrugated profile.",
"sku":"",
"quantity":1,
"grams":0,
"price":509500,
"vendor":"SmartKits Australia",
"requires_shipping":true,
"taxable":false,
"fulfillment_service":"manual",
"properties":{
},
"product_id":6584674353358,
"variant_id":39432776089806
}
]
}
...
Many thanks
Anyone?
this isn't possible due to multi-origin shipping being enabled.
User | RANK |
---|---|
6 | |
4 | |
3 | |
3 | |
3 |