Serial Posted September 29, 2015 Share Posted September 29, 2015 Hi, I have a value in a javascript variable and I want to save this value in a field of order_detail table. How can I do this please ? Link to comment Share on other sites More sharing options...
musicmaster Posted September 29, 2015 Share Posted September 29, 2015 (edited) Ajax. You need in some way call a php file as Javascript itself has no access to the database. Of course you can also integrate your code into the existing Prestashop code (that already contains Ajax calls) and make some modification in blockcart.js, product.js or another relevant file. Edited September 29, 2015 by musicmaster (see edit history) Link to comment Share on other sites More sharing options...
Serial Posted September 29, 2015 Author Share Posted September 29, 2015 Have you got an example of my question in the existing Prestashop code please ? It helps me to see how can I do this. Link to comment Share on other sites More sharing options...
musicmaster Posted September 29, 2015 Share Posted September 29, 2015 Can you explain more explicitly what you want? Link to comment Share on other sites More sharing options...
Serial Posted September 30, 2015 Author Share Posted September 30, 2015 You can see old thread here : https://www.prestashop.com/forums/topic/471172-add-new-field-in-order-detail/ Link to comment Share on other sites More sharing options...
musicmaster Posted October 1, 2015 Share Posted October 1, 2015 Did you consider the option to add a "customization" field to the product and store your information there? That way you could keep your modifications restricted to the user interface part and you wouldn't need to bother about the depths of Prestashop? 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