Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @mkforde

    I’m trying to hide shipping address option in cart and checkout when local pickup is selected.

    I tried adding this code via code snippets plugin, but it didn’t work https://www.businessbloomer.com/woocommerce-hide-shipping-local-pickup-selected/

    Option to change shipping address still appears, which is not ideal.

    From what I understand, you’re trying to hide the shipping address option in your WooCommerce cart and checkout when the local pickup is selected. I see that you’ve tried to implement a code snippet from Business Bloomer but it didn’t work as expected.

    Firstly, I’d like to confirm that the code you’ve provided should work correctly as it’s designed to hide the shipping fields if local pickup is chosen as the shipping method.

    Image Link: https://s11.gifyu.com/images/SgpBQ.gif

    However, there can be several reasons why it might not be working on your site:

    1. Theme Compatibility: Some themes might not be fully compatible with WooCommerce, which could lead to unexpected behaviors. Try switching to a default WordPress theme (like Storefront) temporarily to see if the issue persists.
    2. Plugin Conflict: Another plugin might be interfering with the code snippet. Try deactivating all other plugins except WooCommerce and the Code Snippets plugin, then check if the issue remains.
    3. Code Placement: Make sure the code is placed correctly. It should be added to your theme’s functions.php file or a site-specific plugin. If you’re using the Code Snippets plugin, ensure it’s activated and the snippet is running without errors.
    4. WooCommerce Version: The code snippet is tested with WooCommerce 7. If you’re using an older version, the code might not work as expected. Consider updating WooCommerce to the latest version.

    Here’s a helpful guide on how to test for conflicts: ?? How to Test for Plugin and Theme Conflicts

    If none of the above solutions work, there might be a more complex issue at hand. In this case, I’d recommend seeking help from a developer or a WooCommerce expert. They should be able to diagnose the problem and provide a custom solution.

    ?? Just a heads up – while we’re always here to assist you, our scope of support doesn’t extend to custom development or design patterns, which includes troubleshooting or giving specific advice on using custom action hooks or filters.

    For custom solutions, our recommendation is to connect with Codeable.io, our trusted WooCommerce development partner. They’re experts in crafting custom solutions for WooCommerce and might be able to help you develop a custom solution for your problem. Check them out here: ?? https://woocommerce.com/codeable

    I hope this helps! Please let me know how it goes or if you have any other questions.

    Thread Starter mkforde

    (@mkforde)

    Hi, is there another, easier way to hide it? It seems to be a pretty big issue and very confusing for customers.

    Hi there ??

    Thank you for contacting Woo support!

    is there another, easier way to hide it? It seems to be a pretty big issue and very confusing for customers.

    From what I gather, the site at https://drimoleaguepharmacy.ie/ currently has the Hello Elementor theme active.

    Just to clarify, did you already have a chance to try activating a different theme, Storefront (linked here) as an example, or otherwise?

    As my colleague showcased, the code snippet you are sharing is working as expected with it. Could you verify that for your site also, please?

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide Shipping Address if Local Pickup Selected’ is closed to new replies.