Thursday, January 19, 2023
HomeWordPress DevelopmentWooCommerce: Redirect to an merchandise's product web page after merchandise is faraway...

WooCommerce: Redirect to an merchandise’s product web page after merchandise is faraway from cart


On my cart web page, I might like so as to add a button that enables prospects to take away an merchandise from the cart, and after the objects is eliminated, the shopper is redirected to the product web page for the merchandise that was simply eliminated.

So for instance, a buyer has Product A within the cart. Whereas on the cart web page, there’s the common “Take away from cart” button, that may take away the merchandise from the cart after which reload the cart web page. I might wish to have a further button that will take away the merchandise after which redirect you to the one product web page for Product A.

Simply to be clear, I understand how so as to add a button to the WooCommerce cart web page. However I do not know what code is critical to have the redirect occur.

The rationale for that is that the shopper can enter data on the product web page, and in the event that they made a mistake, I would like them to have the ability to take away the merchandise, return to the product web page, and begin over.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments