Bryan
  •  Bryan
  • 87% (Honored)
  • Member Topic Starter
2020-04-22T00:33:27Z
Hi all

I have an existing store that wants to be able to offer to options in the checkout for the customer to choose from, in my case the two options are.

local delivery flat rate $10
click and collect $0

I could also see a use case where it might be
standard delivery $10
express delivery $15
I assumed this would be as simple as adding another "flat rate per order" shipping method to my store, however this displayed neither shipping options. then created a new ship[ping zone(covering the same regions) and applied this to my new click and collect method. now only the cheaper ($0 method) displays.
how can I make it possible to show both options and allow the uses to choose there option?
Bryan
  •  Bryan
  • 87% (Honored)
  • Member Topic Starter
2020-04-22T02:46:46Z
update here for anyone else trying to do this.
It was as simple as I had first thought and it was a mater of me clearing cache to see changes and both options displaying.
Will Strohl
2020-04-22T19:59:42Z
Thanks for posting the solution. I generally don't have to clear cache when doing this. The most common reason a shipping option usually doesn't show up is when the test address(es) don't match a shipping zone.
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Bryan
  •  Bryan
  • 87% (Honored)
  • Member Topic Starter
2020-04-22T20:32:42Z
thanks Will,

While I have you, do you have any thoughts on how to reorder the display and select the default shipping options? It seems to currently work where the cheapest shipping option is chosen by default, however I require the more expensive option to be the default.
Will Strohl
2020-04-24T16:24:38Z
You're correct that the cheapest option is always selected by default. In order to change the default shipping option, you'll need to update the RefreshShippingRates() method in the Checkout.js script of your custom viewset.
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Loading
  • Sign-up for the Hotcakes Community Newsletter: