• Resolved pjudkins

    (@pjudkins)


    My customers when buying need to go through the correct process to ensure they choose delivery types before checking out. Once they go through these steps on the final summary page before placing order there is the option to change the delivery type again. If they change it here then the delivery type is not correct and the previous steps are not updated. How can I prevent the users changing the shipping option on the checkout page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 ??

    Thread Starter pjudkins

    (@pjudkins)

    Thank you for the quick response. I will take a look at the method proposed!
    Many thanks.

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

    Thread Starter pjudkins

    (@pjudkins)

    Thanks, yes please mark as closed. in the end I placed some css to disregard pointer action so the customer cannot click on the shipping. A little click yes but the shipping still shows but they cannot change.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shipping options not wanted on final summary page’ is closed to new replies.