In WooCommerce in product page, sometimes users click on Add-to-cart button while pressing Ctrl or Shift keys, for opening the resulting page in a new tab/window.
In this cases, I need current page to reload. How can I do it?
Consider that Add-to-cart button submits the form.
At first stop normal submitting with
event.preventDefault()on submit event form then doing any thing you want with the click event on the add to cart button.You can do it with something like this:
In Woocommerce probably you should use
addEventListenerfor the form and the add to cart button in the single product page. like this: