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:

  1. Open WordPress admin panel, go to Appearance > Theme Editor.
  2. Open functions.php theme file.
  3. Add the following code at the bottom of function.php file of your child theme.
  4. 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 Page in 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.

If you would like help with changing the “Continue Shopping From Cart Page” button or any website design project, please contact us – happy to help, always.

Social Media

 

Payments Accepted

 

payment options

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

 

Pin It on Pinterest

Share This