I'm sure that there is a quick bit of code out there that will solve this issue, but I'm struggling to find it.
I have a WordPress/WooCommerce website set-up and am using the WooCommerce Shipping Pro with Table Rate plugin to specify delivery rates as well as the local pickup option, within WooCommerce's shipping settings.
This is all working fine, but have hit a slight issue.
On the checkout page - if neither shipping method is selected but all other fields are filled in, it still allows me to click on the Pay button and be taken to the Payment Gateway.
So, I am after a bit of code that will check to make sure a shipping method has been chosen or will make shipping method a mandatory field. So that when a customer clicks on Pay if no shipping method is selected it will not allow them to proceed and will flag up a warning.
Link to website: https://larchcottage.co.uk/