Hi there,
I have a site with a bunch of countries. For each country I have two shipping providers. In a subscriber I determine which of the two I can show (based on the contents of the cart). So ultimately, the user only sees one shipping provider for its own ship-to country.
What is the best way to apply this to the order automatically? In a Rapido template I can easily preselect the option so in the UI it shows up as selected. However, that only sets the selected option in the UI but doesn't update the cart to show the associated shipping fee. For that, another submit to the cart page is needed.
Is there a way (server side or otherwise) to select the gateway an assign it to the order before the cart is rendered? One lousy way would be to register some JavaScript that reloads the cart when the order doesn't have s hipping method yet, but that feels a bit bad.
Thanks in advance!