Re: shopify function to change shipping method

shopify function to change shipping method

pankajnarang81
Shopify Partner
14 0 0

Hi,

 

We are working for a Shopify Plus client and they have two shipping rates.

 

They want to get the shipping rate autoselected and hide other shipping options on the checkout page for the below two conditions.

 

If the price is below 249 USD apply the shipping option PICK which would cost 8 USD in shipping

 

If the price is above 249 USD they want to select the shipping option FREE which would cost 0 USD and hide other shipping options.

 

 

Since the script editor would not be used in the future can we use shopify functions to achieve the same?

 

Regards
Pankaj 

 

 

Replies 3 (3)

sniper2804
Shopify Partner
406 25 68

Yes you can

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

pankajnarang81
Shopify Partner
14 0 0

Hi,

 

Can we get a detailed example for this link as well 

 

https://shopify.dev/docs/api/functions/reference/shipping-discounts

Regards
Pankaj

Rohan-developer
Shopify Partner
20 0 0

Yes, you can achieve this using the ShipRight app which is built by Shopify Function. You need the below 2 rules to get it done:

 

  1. Create your first rule by adding all your shipping options (except PICK) in the Additional shipping methods field and in the Cart total Min (minimum) field, set the value to 249 like the below screenshot. This will hide all the shipping options except PICK if the order value is below 249 USD.
  2. Now create your second rule by adding all your shipping options (except FREE) in the Additional shipping methods field and in the Cart total Max (maximum) field, set the value to 249. This will hide all the shipping options except FREE if the order value is above 249 USD.

 

pick.png

 

Hope it helps. Thanks.