Support » Plugin: WooCommerce » redirect after click buy button

  • Resolved hadimargo

    (@hadimargo)


    hi, i create a button using visual composer,
    i link that to a url “http://localhost/?add-to-cart=73&quantity=1”
    If this button is selected, 1 of my WooCommerce products will be added to the user’s shopping cart
    and after that
    the page automatically redirect to my main page of site.

    now my question is, how to change this redirect to my cart page?
    tnx for answering.

    • This topic was modified 1 year, 11 months ago by hadimargo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @hadimargo,

    This is interesting, and I tested that page builder plugin to see if I could reproduce the Add to Cart button. It actually worked quite well with /?add-to-cart=48&quantity=1 where 48 is the product ID. The product was added to the cart and it redirected to the cart page.

    Note that I have this checkbox enabled in WooCommerce > Settings > Products > General:

    If it still doesn’t work, we suggest reaching out to Visual Composer plugin developers directly. Please note that we are unable to provide support for third-party plugins in this particular forum.

    I hope this points you in the right direction.

    Thread Starter hadimargo

    (@hadimargo)

    hi @rainfallnixfig
    I am really thankful for your attention.
    Yes, your solution was exactly what I wanted.
    Thank you.

    • This reply was modified 1 year, 11 months ago by hadimargo.
    Mirko P.

    (@rainfallnixfig)

    That’s wonderful! 😃

    Thank you for letting us know!

    If you have any further questions, you can start a new thread.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘redirect after click buy button’ is closed to new replies.