If you’re using the WooCommerce plugin for WordPress, you may have noticed that the “Continue Shopping” button on the cart page goes to the WooCommerce shop page by default. While this may be fine in some cases, there are definitely times when you’ll want to change where this button goes.
Maybe you want it to go back to the previous page, or maybe you want it to go to a specific product page. Whatever the reason, changing the “Continue Shopping” link in WooCommerce is actually pretty easy.
The first thing you need to do is locate the WooCommerce template files. These are located in wp-content/plugins/woocommerce/templates.
Once you’re in that folder, open up cart/cart.php. This is the main template file for the WooCommerce cart page.
Near the top of this file, you’ll see a line that looks like this:
<?php echo apply_filters( 'woocommerce_continue_shopping_redirect', wc_get_raw_referer() ? wc_get_raw_referer() : wc_get_page_permalink( 'shop' ) ); ?>
PRO TIP: If you are not a developer or are not comfortable with code, we do not recommend trying to change the Continue Shopping link in WooCommerce. This is a complex process that can break your site if done incorrectly.
This is where the “Continue Shopping” link URL is generated. By default, it just goes to the shop page. If you want it to go somewhere else, though, you can just change that line of code.
For example, let’s say you wanted the “Continue Shopping” button to take people back to the previous page. In that case, you would change that line of code to this:
<?php echo apply_filters( 'woocommerce_continue_shopping_redirect', wc_get_raw_referer() ? wc_get_raw_referer() : esc_url( $_SERVER['HTTP_REFERER'] ) ); ?>
Or let’s say you wanted it to go to a specific product page. In that case, you would change it to something like this:
<?php echo apply_filters( 'woocommerce_continue_shopping_redirect', wc_get_raw_referer() ? wc_get
9 Related Question Answers Found
When you first set up your WooCommerce shop, the “Continue Shopping” text on the cart page is set to “Return to shop”. If you want to change the text to something else, like “Continue browsing our products” or “Keep shopping”, you can do so by following these steps:
1. Log in to your WordPress Dashboard and go to WooCommerce > Settings.
2.
Adding a “Continue Shopping” button to your WooCommerce product pages can be a great way to keep customers engaged with your store. There are a few different ways to add this button, so you can choose the one that best fits your needs. One way to add a “Continue Shopping” button is to use a plugin.
In WooCommerce, the “Continue Shopping” button text can be changed by going to WooCommerce > Settings > General and then scrolling down to the “Button Text” section. Here, you can change the text for both the “Add to Cart” and “Continue Shopping” buttons. Here is an example of how you would change the “Continue Shopping” button text to be bold and underlined:
Continue Shopping
Remember to save your changes when you’re done!
It is very easy to add a continue shopping button in WooCommerce checkout. You just need to add a few lines of code in your functions.php file. Here is the code:
add_action( 'woocommerce_after_order_notes', 'bbloomer_continue_shopping_button' );
function bbloomer_continue_shopping_button( $order_id )
{ $url = esc_url( wc_get_page_permalink( 'shop' ) );
echo 'Continue Shopping';}
You can style the button using CSS.
If you’re using WooCommerce to power your online store, you may have noticed that there’s no “continue shopping” button on the cart page. This can be frustrating for customers who want to keep shopping after they’ve added an item to their cart. Fortunately, it’s easy to add a continue shopping button to your WooCommerce cart page.
If you want to change the product link in WooCommerce, there are a few steps that you need to follow. First, you need to go to the product page and click on the “Edit” link. Next, you need to find the “Product URL” field and change the URL to the new one that you want.
If you’re using WooCommerce to sell products through your WordPress site, you may have noticed that the default “Return to shop” link after adding an item to the cart takes the customer back to the main shop page. For many stores, this isn’t ideal, as you may want to send the customer to a specific landing page, like a sale or clearance page. In this case, you can change the “Return to shop” link in WooCommerce to point to any page on your site.
When you are running a WooCommerce store, it is important to make the checkout process as smooth and easy as possible for your customers. One way to do this is to add a continue shopping button to your checkout page. This will allow customers to easily go back and continue shopping if they need to, without having to start the checkout process all over again.
As the owner of a WooCommerce store, you may be wondering how to market your store and promote your products. There are many ways to do this, and the best approach depends on your products, your Target audience, and your budget. Here are some ideas to get you started:
1.