• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

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

  • Open WC Mini Cart Links In New Window

WooCommerce

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.