Test if calculated shipping rates enabled

daMask
Shopify Partner
15 0 5

I would like to be able to determine if third party calculated shipping rates are enabled on a store from my app I've developed. How can I test the truth of this, other than trying and failing creating a carrierService?

Replies 5 (5)
Ron-Anderson
Shopify Partner
187 14 30

Hi @daMask,

 

Go to your dev/test store. In Shopify Shipping & delivery settings. In the Carrier accounts section, if you have the ability to connect a carrier account to your dev store, 3PCC shipping is enabled. If you see a delivery truck icon and are prompted to activate, the feature is not enabled.

 

Best regards,

Ron

Customer Experience Manager @ Intuitive Shipping Inc.
Intuitive Shipping | Automate Shipping Profiles
daMask
Shopify Partner
15 0 5

Thanks, but I am trying to determine this through an API call.

BogdanM
Shopify Partner
121 3 26

Hi,

 

You try to create a CarrierService.

If it fails, it means that the store does not have the third party calculated rates enabled.

Bogdan | WebShopAssist
User friendly apps with top-rated support
- SKUGen the SKU generator
- DPD Integration
daMask
Shopify Partner
15 0 5

I was asking if there was another way apart from failing a create attempt.

BogdanM
Shopify Partner
121 3 26

Sorry, I missed the last part of your question.

I looked for another way of checking this about a year ago, but I could not find it, so ended up checking if the CarrierService can be created.

Bogdan | WebShopAssist
User friendly apps with top-rated support
- SKUGen the SKU generator
- DPD Integration