I am trying to create a form where the customer need to give their details such as name, email and phone to get coupon code.
The email and phone collected needs to be then stored in the session variable so that when the same customer checks out, the email and phone no. are prefilled.
The issue that i am facing is that i am using a custom php file to store the values to the session variables and hence i am not able to get the current session id.
Code: Select all
<?php
session_start();
$_SESSION['$this->session_id']]['payment_address']['firstname'] = 'JOHNDOE';
echo "Thankyou!";
?>
I am using OC 2302
With Journal 3 Theme
Onepage Checkout