WooCommerce – Conditional Ship to a Different Address Selection
The scenario is this:
The site has multiple shipping methods (multiple client locations, and the option to ship to “Other”.)
I wanted to show the address panel if “Other” location was chosen, and hide the “Ship to Another Location” option heading on the shipping page if a client location was chosen.
None of this was strictly necessary, but it makes for a smoother customer experience.
This went into my functions.php file.
Then, this is the hide_ship_to.js script file. (uploaded to the theme directory)