Jenetic Posted February 2, 2019 Share Posted February 2, 2019 (edited) Hi, I'm using prestashop 1.7.4.3. When a customer buys a customized product, with their text on it, is there a way I can receive their text exactly as they wrote it? Either in the BO when clicking in on the order or with the email I get when a new order is placed? Best would be if it could be done for the order confirmation email sent to the customer as well. Like this: John Smith 123 Main Street New York, NY 12345 instead of: John Smith 123 Main Street New York, NY 12345 Edited February 2, 2019 by Jenetic (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted February 3, 2019 Share Posted February 3, 2019 There is, but it involves changing the templates. For the back office, in the admin folder, themes\default\template\controllers\orders _customized_data.tpl You have to find $type == Product::CUSTOMIZE_TEXTFIELD And below that add |nl2br to $data['value'], like $data['value']|nl2br Link to comment Share on other sites More sharing options...
Jenetic Posted February 3, 2019 Author Share Posted February 3, 2019 43 minutes ago, NemoPS said: There is, but it involves changing the templates. For the back office, in the admin folder, themes\default\template\controllers\orders _customized_data.tpl You have to find $type == Product::CUSTOMIZE_TEXTFIELD And below that add |nl2br to $data['value'], like $data['value']|nl2br Works perfectly! 😍 Thank you so much Nemo!! Do you know how to make that change to the order confirmation email and also for the customization preview popup box in the cart? Thanks again! Link to comment Share on other sites More sharing options...
Jenetic Posted February 8, 2019 Author Share Posted February 8, 2019 Does anyone know if it's possible to make the same change to the order confirmation email and the customization preview popup box in the cart? I believe it is, I just need to know which files to edit. 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