I am a beginner php developer I have only studied it till loops and now I am stuck on a simple problem.
I am using a woo-commerce plugin on my affiliate website. Since it is an affiliate site, I want to redirect the user on product's owner page when ever he clicks on the buy button.
Now in woo-commerce they provide "Add to cart" functionality which I don't want. I have changed the name of "Add to cart" to "Buy" from theme settings now I want to work it like this
"When ever user will click on it, it should redirect the user to another page instead of adding that item to the cart" for this I also have to add the url in "buy" button every time I add a new product from wordpress's admin pannel.
Now how am I supposed to do that.
Thanks in advance.