Hello @pjudkins ,
If I understand correctly, you do not want your customers to be able to add/change the delivery option on the checkout page. Is that right?
You can actually hide the delivery address and shipping method selector from the checkout page using these steps –
1. You can remove the delivery address form from the checkout page using this code in your theme’s functions.php file –
remove_action( 'woocommerce_checkout_shipping', array( new WC_Checkout, 'checkout_form_shipping' ), 100 );
2. You need to edit the template file – \wp-content\plugins\woocommerce\templates\checkout\review-order.php
and remove the function – wc_cart_totals_shipping_html();
which is showing the available shipping methods.
I do not have an example code that can only the selected shipping method from the cart page. This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.
I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.
You can also visit the WooCommerce Facebook group or the #developers
channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
If you need a paid solution, you can consider taking help from one of our partner’s website.
Thank you ??