November 11, 2010 at 6:30 pm #2213jjMember
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 ?
ThanksNovember 12, 2010 at 12:50 am #26432
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:December 21, 2010 at 5:23 pm #26433
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
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
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
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
The code is fine.
- You must be logged in to reply to this topic.