Open WooCommerce View Cart Button Link In New Window

The code in this download folder, when clicked, opens the “View Cart” link on the WooCommerce single product page, in a new tab.

Demo Video

Shows the ‘View Cart’ link, once clicked, open in a new window.

Coming Soon.

Tested using the Twenty Twenty theme for WordPress however will work in any WordPress theme.

Installation

There’s 2 steps :

Step 1 : Copy & paste the PHP code ( without the opening PHP tag ) to the end of your child themes functions.php file.

Step 2 : Upload the file named view_cart_blank.js to your child theme folder.

You can swap out the selector classes in the jQuery to make the code work with any link or button in any WordPress theme.

Download Folder

Related Code

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.