Fix for prestashop version 1.6 and improved order_number generation