Jump to content

Problem with order validation


Dani15

Recommended Posts

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.post-1256932-0-81147300-1464817422_thumb.jpg

 

I would be grateful for help.

Edited by Dani15 (see edit history)
Link to comment
Share on other sites

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

 

 
 
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...