• Hello guys.
    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.

    http://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Roy Ho

    (@splashingpixelscom)

    Can’t you use the “external” product type? That is exactly what that is for.

    Thread Starter bilal616

    (@bilal616)

    What is external product type?
    I don’t get you sorry.

    Roy Ho

    (@splashingpixelscom)

    When setting up the product you can change the product type to external. It is especially designed for affiliate type products.

    Thread Starter bilal616

    (@bilal616)

    Thank you soo much. I am definitely trying this one 🙂

    Hello!
    I try and me to fix like what u say to the external, but to me don’t work this. When I want to setting up the product type to external, don’t let me. Is blocked the function.
    What I have to do?
    I am interested to upload products and the add to cart to go in the link of other website.
    Thank you very much.

    Before you look for another plugin, check whether the basic WooCommerce plugin can do what you want.

    From the docs: “Adding an external product: Choose ‘External/Affiliate product’ from the “Product data” dropdown which is on the product page under the edit description box. This will remove unnecessary tabs such as tax and inventory and insert a new product URL field. This is the destination at which users can purchase the product. Rather than add to cart buttons, they will see a read more button directing them to this URL.”

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘woocommerce plugin redirect user to another website when"add to cart" is clicked’ is closed to new replies.