Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to redirect users after clicking the add to cart button

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How to redirect users after clicking the add to cart button

Tagged: add to cart, redirect

  • This topic has 6 replies, 3 voices, and was last updated 14 years, 4 months ago by amin007.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • November 11, 2010 at 6:30 pm #2213
    jj
    Member

    Hi,

    I found an old post on the topic but it’s not applicable for wp estore apparently.

    Could you tell me how to redirect users after clicking the add to cart button ?

    Thanks

    November 12, 2010 at 12:50 am #26432
    amin007
    Participant

    Browse to the eStore’s settings page and find the following option:

    Automatic redirection to checkout page

    If you check that checkbox it will automatically redirect your customer to the checkout page after they click the “Add to Cart” button.

    The following post should be helpful also:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-create-a-specific-checkout-page-for-estore

    December 21, 2010 at 5:23 pm #26433
    Ms_G
    Member

    Hello!

    I’m using Wp eStore and I have the following problem:

    In some products I need to “add to cart” and redirect a customer to a specific page to fill in a questionnaire. Every product has a different questionnaire so I can’t use the global redirection described above.

    Is this possible? Can I add to cart and then redirect to different specific pages depending on the product?

    Thanks!

    December 21, 2010 at 6:53 pm #26434
    Ms_G
    Member

    Regarding my last post:

    Can I add some PHP code so that when I use the “Button Link” option (Only use this if you want the Add to Cart button for this product to go to the specified URL (eg. a landing page) instead of adding the product to the shopping cart.)it adds the product and redirect to the page?

    Thanks!

    December 22, 2010 at 12:51 am #26435
    amin007
    Participant

    The automatic redirection to the the checkout page is global. It makes the assumption that you will have one checkout page per site.

    This is probably not ideal but might do the job. Use the “Button Link” option to redirect to the page then have another button there together with questionnaire. This button on this page will add the item to the cart. So you will end up with two products per item.. one to redirect to a page and the other one is the actual product that can be added. If you turn off the “Automatic redirection to checkout page” option then when they do add the product it won’t go anywhere. It will stay on this questionnaire page so they can fill it in.

    December 22, 2010 at 3:07 pm #26436
    Ms_G
    Member

    Hi amin007, thanks for your response!

    I took a look at the code that is generated for the button and wrapped it up in a <form> tag that redirects after the button is clicked. It works, it adds the item to the cart and redirects my page to the questionnaire.

    Can you please take a look at the code and let me know if you think this extra <form> tag can cause any problems with the plug-in?

    THANK YOU SO MUCH!

    <form method=”post” action=”http:www.mywebpage.com/questionnaire1″>

    <object class=”eStore_button_object”><form method=”post” class=”eStore-button-form” action=”” style=”display:inline” onsubmit=”return ReadForm1(this, 1);”><input type=”hidden” name=”add_qty” value=”1″ /><input type=”image” src=”/images/buy_button.png” class=”eStore_button” alt=”Add to Cart” /><input type=”hidden” name=”product” value=”Form one” /><input type=”hidden” name=”price” value=”79.00″ /><input type=”hidden” name=”product_name_tmp1″ value=”Form one” /><input type=”hidden” name=”price_tmp1″ value=”79.00″ /><input type=”hidden” name=”thumbnail_url” value=”” /><input type=”hidden” name=”item_number” value=”2″ /><input type=”hidden” name=”shipping” value=”” /><input type=”hidden” name=”addcart_eStore” value=”1″ /><input type=”hidden” name=”cartLink” value=”http:www.mywebsite.com/product_one” /></form></object>

    </form>

    December 23, 2010 at 12:44 am #26437
    amin007
    Participant

    The code is fine.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ