- nelsonaponteAsked on May 21, 2015 at 04:39 AM
We sell 3 main packages in our website (Essential Classic Pass, Special Pass and Flexible Pass) with some other add-ons. Since there is no eCommerce integration with Google Analytics we decided to create 3 Thank You pages in our website in order to track when each package is sold. The url's are /thank-you/ , /thank-you-2/ and /thank-you-3/. When a customer purchases the Essential Pass, he/she should be redirected to /thank-you/; when the Special Pass is purchased, he/she should be redirected to /thank-you-2/ and when the Flexible Pass is purchased, to /thank-you-3/
The default Thank You page is /thank-you/ which is the original page we had. A user can purchase more than one of each Pass and can buy a combination of the 3.
Originally, we had 11 conditions showing or hiding some information from the form based on the add-ons selected but none related to these 3 packages. Then I added 2 conditions at the end (i.e. 12 and 13) as follows: IF (Please Choose: Special.....) Quantity is Greater Than (0) then redirect to (http://www.istanbultouristpass.com/thank-you-2/) and a similar condition for the Flexible Pass. I tested it and it kept redirecting to the /thank-you/ page.
I then changed it to: IF (Please Choose) Is Equal To (Special....) then redirect to (http://www.istanbultouristpass.com/thank-you-2/) and similar for the Flexible one. Tested it and didn't work.
Then I changed the Flexible one to the top priority, tested it but again didn't work.
By the way, every time I saved the order and reloaded the /purchase/ page by removing the cache. We're calling the script from the page, instead of the source code.
Why is it not correctly forwarding to the correct URL?Page URL:
- BorisAnswered on May 21, 2015 at 08:28 AM
I am very sorry, but we do not currently support conditions on payment integration tools. This is because the processing of payment integrations is not performed by JotForm, but by PayPal / other payment processors that are used.
Unfortunately, we can't set the conditional thank-you page redirect based on data in the Payment Tool.
If you wanted the conditions to work based on selected purchasing items, you would have to use ordinary input fields and drop-downs for all of the available products and their prices, then calculate the total amount of the selected items, and pass that total amount to the payment tool.
The solution would not be as elegant as using the payment tool directly, but that would be the only way to have conditions based on product selection, and to have a payment tool for purchasing these products.
Please let us know if we can assist you further. Thank you.