david.vala Posted August 25, 2017 Share Posted August 25, 2017 Hello, I have a problem with lenght of email variables. I have a long text in payment methond and variable {payment} is not showing whole text and its cut in middle of the word. Is there any solutuion how to increase it? Thank you Link to comment Share on other sites More sharing options...
Scully Posted August 25, 2017 Share Posted August 25, 2017 (edited) Which version of prestashop are you running? Edited August 25, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
david.vala Posted August 25, 2017 Author Share Posted August 25, 2017 Its version 1.6.1.6., basic bootstrap theme Link to comment Share on other sites More sharing options...
Scully Posted August 25, 2017 Share Posted August 25, 2017 We don't have 1.6.1.6 in use but 1.6.1.13. According to this version, it is NOT a question to increase the field length. Instead, the field is cut to 32 characters in classes/PaymentModule.php. Find the following code - on our installation it's around line # 745 : '{payment}' => Tools::substr($order->payment, 0, 32), You can get rid of the substr command or increase 32 to a higher value. And dont forget to report back. 1 Link to comment Share on other sites More sharing options...
david.vala Posted August 25, 2017 Author Share Posted August 25, 2017 (edited) unfortunately, i changed it into '{payment}' => Tools::substr($order->payment, 0, 100), '{payment}' => $order->payment, but email is still same for backend, but customer see whole text, which is OK for me Thank you Edited August 25, 2017 by david.vala (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted August 25, 2017 Share Posted August 25, 2017 You need to test with a NEW order after the change. And if you have created an override, delete class_index.php before testing. Link to comment Share on other sites More sharing options...
Scully Posted August 25, 2017 Share Posted August 25, 2017 What are your results? Link to comment Share on other sites More sharing options...
david.vala Posted August 31, 2017 Author Share Posted August 31, 2017 Ofc i tried it with NEW order. First time i did, nothing changed, but second order was OK! Thanks, its working like a charm. Link to comment Share on other sites More sharing options...
Scully Posted August 31, 2017 Share Posted August 31, 2017 Very good, you could mark the topic as solved (edit first post) or mark the best answer. Have a good day. 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