Continue Shopping From Cart Page
Are you looking for a way to add a button to Continue Shopping From Cart Page in WooCommerce? This code snippet will allow you to add the functionality to allow your customers to easily return to the shop page from the cart age. You can completely tailor the wording of the button and the descriptive text to guide the user to click the button.
To do this you need to:
- Open WordPress admin panel, go to Appearance > Theme Editor.
- Open functions.php theme file.
- Add the following code at the bottom of function.php file of your child theme.
- Save the changes and check your website. Note that you can change the text included from ‘Proceed Now’ to whatever you wish. The custom text in proceed to checkout text will now be displayed.
Note:
To change the proceed to checkout button, ensure that you take a backup and only do this through your child theme so that future updates to your theme will not overwrite the code.
//START OF CODE
/** *
Continue Shopping From Cart Pagein WooCommerce * Add this code in your active theme functions.php file **/
function arrowdesign_add_continue_shopping_button_to_cart() {
//txt for lbl
$ad_rtn_to_shop_txt_lbl = “enter the information you wish to show on the LABEL here”;
// txt for btn
$ad_rtn_to_shop_btn_txt = “enter the information you wish to show on the BUTTON here”;
$shop_page_url = get_permalink( woocommerce_get_page_id( ‘shop’ ) );
echo ‘<div class=”woocommerce-message”>’;
echo ‘ <a href=”‘.$shop_page_url.'” class=”button”>’.$ad_rtn_to_shop_btn_txt.'</a>’.$ad_rtn_to_shop_txt_lbl;
echo ‘</div>’;
}//end function
add_action( ‘woocommerce_before_cart_table’, ‘arrowdesign_add_continue_shopping_button_to_cart’ );
//END OF CODE
If you prefer to changing the “Continue Shopping From Cart Page” button text via a plugin, use these buttons to download our plugin, for free.
Social Media
Payments Accepted
![secure-payments_paypal payment options](https://arrowdesign.ie/wp-content/uploads/2020/11/secure-payments_paypal.jpg)
Request a Callback
Contact Details
Phone: 01 536 3049
Mobile: (087) 13 77 382
Email: info@arrowdesign.ie
Address:
The Chase, Arkle Rd,
Sandyford, Dublin 18,
D18 Y3X2