I have created a checkbox in the shipping form for local pick-up option. If user checks it, shipping address get populated as the store address.
Now I want to show, the custom created, shipping method for Local Pick-up only if the user checks the checkbox. Otherwise Local pick-up should not show.
Please tell me the best approach to do so in my custom module.
Thanks in advance!