Redirecting user to another URL when 'Add to Cart' button is clicked
-
Hi,
I have two questions regarding WooCommerce (I’m using the Salient custom theme). When my user clicks to add a product to the cart – can I have them also re-directed to another page on my site (i.e: a page which is not the checkout or cart page?
FYI – For my shopping page, I am not using the default WooCommerce ‘Shop Page’ or calling the Add to Cart button via shortcode. I have a unique page with some digital products for sale. My version of the Add-to-Cart button code looks like this:
[button size=”medium” url=”https://www.mysite.com/shop/?addtocart=1413” text=”Select Package” color=”extra-color-1”]
When the user clicks this button, it successfully adds the product to cart, but I’d like to have them immediately jump to another page as well.
Second question: how do we get rid of or change the product linkout function in the shopping cart page itself. Currently, when a product in the cart page is clicked on – it takes the user to the Shop Page, instead i want to re-direct them to another page (i.e: Pricing info page).
Thanks in advance for your help!!
regards,
P
- The topic ‘Redirecting user to another URL when 'Add to Cart' button is clicked’ is closed to new replies.