Jump to content

Order - change id to numbers


Basobaso

Recommended Posts

Hi

 

In prestashop 1.5.4

 

how it is possible change order_id to NOT HAVE it with characters, i need order_id only with numbers (e.g. next order increased by 1)

 

where to set it ? Do i need to change the code somewhere ?

 

Thanks for your help

 

Baso

Link to comment
Share on other sites

I found in /classes/order/Order.php

 

line 1381:

 

public static function generateReference()
{
return strtoupper(Tools::passwdGen(9, 'NO_NUMERIC'));
}
 
changed to:
 
public static function generateReference()
{
return strtoupper(Tools::passwdGen(9, 'NUMERIC'));
}

 

going to test it now..

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...