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
Hi,
Can we get a detailed example for this link as well
https://shopify.dev/docs/api/functions/reference/shipping-discounts
Regards
Pankaj
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:
- 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.
- 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.
Hope it helps. Thanks.