Need PhP snippet to manually set Woo shipping method 'flat_rate' or 'local_pickup'.
Code will be inserted and be able to set shipping method 'flat_rate' or 'local_pickup' from shop or product page.
how do you want this? a check box or drop down?
also, selecting 'flat_rate' or 'local_pickup' from shop or product page will make this shipping method the default in the cart or checkout, right?
Hey there. Anything that works. Thanks.
yes, will be the same through to the checkout / cart. Thanks.
should this be saved on sessions only, or per user account, or per cart ? like after checkout the set default shipping will be gone....
- Per any visitor session basis (login / not logged in).
- There is no requirement from the default shipping after checkout is successful.
- All process and data should work as normal
Just want the snippet that be able to manually choose using (e.g radio btn) the shipping method from other page than cart / checkout.