cancel
Showing results for 
Search instead for 
Did you mean: 

Generate random sales order numbers in 2.3.5

Generate random sales order numbers in 2.3.5

Greetings,

 

How do I generate random sales order numbers in 2.3.5?

 

In magento 2.2.1, I made a change in vendor/magento/module-sales-sequence/Model/Sequence.php.  Don't know which sequence.php to make the same change in.

2 REPLIES 2

Re: Generate random sales order numbers in 2.3.5

@Sheba 

 

Sharing one article to modify order id and increment id, Please check this if it will help you:

https://www.mageplaza.com/kb/change-order-prfix-increment-id-suffix-invoice.html

Manish Mittal
https://www.manishmittal.com/

Re: Generate random sales order numbers in 2.3.5

Hi @Sheba 

I have checked the Type.php in /vendor/magento/module-eav/Model/Entity/ 

But try to made the changes in file:

vendor/magento/module-sales-sequence/Model/Sequence.php

 

 I tried  this one. Set return value using below code

 

 return $this->getCurrentValue()*RAND(1,999999);


It may help you .

If issue resolve, Please click on 'Kudos' & Accept as Solution!

 

Problem solved? Click Accept as Solution!