Howdy!
I would like to know how to set an option: Withdrawal in location for a certain product. When you add it to the cart (either alone or with another product) The Withdrawal in location option is displayed.
If you aren’t using something to setup the “Withdrawal in location” shipping method yet and only need it to be assigned to orders with an optional price, you could use the included Flat Rate Shipping option and change the name to “Withdrawal in location”, then tie it to a Shipping Class and assign that Shipping Class only to the specific product it should apply to. That will allow the “Withdrawal in location” method to only display when that product is added to the cart.
Otherwise, if the “Withdrawal in location” method is already something you have setup, what you are wanting is not possible with only the WooCommerce plugin itself.
You can setup conditional shipping/delivery options to only display when a specific product or products are added to the cart/order by using this extension:
https://woocommerce.com/products/conditional-shipping-and-payments/