Dani15 Posted June 1, 2016 Share Posted June 1, 2016 (edited) Hi, I have noticed 2 days ago that clients on my store have problem with order validation while they select Payment On Delivery method. The error that occurs I have attached. I don't know what is the cause and how to solve it. I would be grateful for help. Edited June 1, 2016 by Dani15 (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted June 2, 2016 Share Posted June 2, 2016 Have made any changes or have you installed any 3rd party modules that altered the order reference generation? By default, PresatShop generate the order reference with maximum length of 9. You can see this line in file /classes/order/Order.php public static function generateReference() { return strtoupper(Tools::passwdGen(9, 'NO_NUMERIC')); } And in OrderPayment class, it is also defined as maximum 9 in /classes/order/OrderPayment.php 'order_reference' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 9), And in OrderPayment class, it is also defined as maximum 9 in /classes/order/OrderPayment.php 1 Link to comment Share on other sites More sharing options...
Dani15 Posted June 2, 2016 Author Share Posted June 2, 2016 Thanks for advice. Yes, it was 3rd party module that caused the problem. Link to comment Share on other sites More sharing options...
shokinro Posted June 2, 2016 Share Posted June 2, 2016 glad you sorted out the problem and thanks for the update. enjoy your PrestaShop online business. 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