Change "Continue Shopping" URL (2 posts)

  1. lenglish01
    Posted 2 years ago #

    When a user clicks the "Add to Cart" button, they are re-directed to the cart page and a nice confirmation message pops out at the top of the page. Within this message is a link button that is labeled "Continue Shopping". When it's clicked, user is taken back to the single product page of the item that was just added to the cart.

    I would like to change this to return the user to the shop page, but I haven't found the correct way to do it.

    Any thoughts?

    Thanks in advance!



  2. lenglish01
    Posted 2 years ago #

    Found a hack solution:

    In woocommerce-functions.php, Line 493, at the end of the line, I changed the "true" condition from wp_get_referer() to home_url() and I appended the string '/my_shop_page/'.

    I know it's not the ideal solution, but it worked for me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic