eloy1812 Posted April 29, 2019 Share Posted April 29, 2019 Hi, I need to add a textarea for customer custom message on checkout confirmation step just before terms&conditions checkbox. What T ha What TPL and class / controller do I have to modify so that the message is saved in BO customer threads? And how? Ty Link to comment Share on other sites More sharing options...
Rolige Posted April 30, 2019 Share Posted April 30, 2019 PrestaShop 1.6 or 1.7? a screenshot showing the exactly position could help even more. Link to comment Share on other sites More sharing options...
eloy1812 Posted April 30, 2019 Author Share Posted April 30, 2019 (edited) Hi PS 1.7.3 Just before Terms&Conditions checkbox What class need to be loaded for use' getCheckoutSession()->setMessage('My custom message thread')'? Edited April 30, 2019 by eloy1812 (see edit history) Link to comment Share on other sites More sharing options...
Rolige Posted May 1, 2019 Share Posted May 1, 2019 Ok, this is the thing, I can give you a clue about how to insert the text box there, the problem is that you need save that information in some place and here is where problems start, maybe you will need acquire a module for this, here one: https://addons.prestashop.com/en/registration-ordering-process/19008-custom-fields-add-extra-field-to-checkout-order-page.html Link to comment Share on other sites More sharing options...
eloy1812 Posted May 2, 2019 Author Share Posted May 2, 2019 Hi, The text area is already inserted and the content is already read from the validation script of the payment method. I just wanted to know if I could somehow use some existing function to save the message. I do not need any plugin since I can save the value directly by inserting it into the database tables but I wanted to know if I could avoid this code and use a function. Some like $this->context->order->setMessage('My custom message thread'), but setMessage fuction is in the CheckoutSession.php file and I do not know how to load the necessary class to use it within the validation.php file of the payment method. Link to comment Share on other sites More sharing options...
eloy1812 Posted May 7, 2019 Author Share Posted May 7, 2019 Hi I do not need it anymore. I have got it ty Link to comment Share on other sites More sharing options...
soportepne Posted December 3, 2019 Share Posted December 3, 2019 Hi @eloy1812. How did you get it? I'm trying to do it too. Thanks! Link to comment Share on other sites More sharing options...
EndErr Posted February 1, 2022 Share Posted February 1, 2022 On 5/7/2019 at 9:39 AM, eloy1812 said: Hi I do not need it anymore. I have got it ty Would you be so kind to share your solution? I'm facing the same problem and can't figure out how to solve it. 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