• Resolved pablopaul

    (@pablopaul)


    In our WooCommerce store, customers get confused when they select “Local Pickup” for a product, but then see in their cart that there is text which says, “Shipping to …” followed by their address. We would like to hide that text for local pickup orders.

    I can’t find any specific hooks or filters to accomplish this in the WC docs.

    Similar posts in this forum seemed to be focused on the checkout page, but our checkout page looks fine. Our issue is only with the Cart page.

    Thank you

Viewing 4 replies - 16 through 19 (of 19 total)
  • Hi Dunkoh, thanks for posting this as this is exactly what I am struggling with.

    I have tried to use your original code in my functions.php but I am getting a syntax error:

    “Your PHP code changes were rolled back due to an error on line 56 of file wp-content/themes/astra-child/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘public’ (T_PUBLIC), expecting end of file”.

    Any help would be appreciated!

    @heathervh since you are adding the code in functions.php you need to remove the word “public” before any function names. Essentially search for any use of the word “public” in my code snippet and remove just that word.

    Thank you from a non-developer ??

    Unfortunately, it still doesn’t have any effect on that message on cart and checkout – back to the drawing board. But I do really appreciate your help ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘In Cart, hide “Shipping to …” when local pickup selected’ is closed to new replies.