Set Variable for product-single.php after Gravity Form Submission
-
Hi…I have an ecommerce site set up in Expression Engine which makes use of a Foxee module but they have discontinued development need to bring site across to WordPress with the use of your plugin which looks great.
I need a checkout workflow as described below:
- User views Product page (with no payment options yet) and clicks Enroll Online Button and is taken to a Gravity Forms template to fill out contact info. I have a basic version here:
- User fills out a Gravity Forms enrollment form and then is redirected to a another product detail page with the correct product as chosen in gravity form with options to select subscription lengths and add to cart this time around.
- This page will also contain a Paypal payment option which makes use of some PHP API scripting which I have had set up a while ago for subscription based payments
I have a custom php page which user is redirected to after submitting data in Gravity Forms which is where I can set a session variable that can be passed onto the second Product Detail page but don’t know what kind of value I should be inserting in order to set the correct value for this variable
$product = foxyshop_setup_product();
.Here is how that template is looking:
<?php session_start(); /* Template Name: Redirect */ $course = $_GET["course"]; $course = stripslashes($course); switch ($course) { case "Diploma in Wedding and Event Planning": $_SESSION['product'] = $course ; header("Location: https://www.thosedigitalthoughts.com/aawep2014/checkout-step-2/"); break; } ?>
Any advice on how this may be achieved would be appreciated.
- The topic ‘Set Variable for product-single.php after Gravity Form Submission’ is closed to new replies.