Mykhailo Posted March 1, 2015 Share Posted March 1, 2015 Hi! I'm struggling to pass an additional field value from checkout process to order, but have no luck. Maybe somebody can help me? I've created input on checkout page, where the user enters a value. I need to write this value to new column in order, when the checkout is complete. I've extended ps_order table and order.php class, adding there our new field, but I have no idea how to pass the value from checkout template to order table. Link to comment Share on other sites More sharing options...
fred-vinapresta Posted March 2, 2015 Share Posted March 2, 2015 Hi, you can try by overriding the validateOrder function in PaymentModule class, that's where the order is created and where you will be able to add the paramater to order Object before this one is saved. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now