- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2020
09:52 PM
06-15-2020
09:52 PM
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.
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2020
10:17 PM
06-15-2020
10:17 PM
Re: Generate random sales order numbers in 2.3.5
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/
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020
01:29 AM
06-17-2020
01:29 AM
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!