Generate Random Order Id

How can we generate Random Order ID in the system, one of our client has this requirement, he doesnt want them to be sequential. They can be something like A12920482 , A49203819, etc...

Is this legal? Some payment processors may not work.

Is this legal? Some payment processors may not work.

Yes , i'm with Darius.

Is this legal? Some payment processors may not work.

What is the legality issue ? the Order ID is an internal thing to a software.

I am afraid, additional code modifications are required to do it. Feel free to contact us if you need this nodification

Sequential invoice numbering is the law in multiple countries So its illegal as per country specific. we can’t do it for generic use. if any customer need that then we can do this modification as per store admin responsibility.


Sequential is Recommended :slight_smile:

Sequential invoice numbering is the law in multiple countries So its illegal as per country specific. we can't do it for generic use. if any customer need that then we can do this modification as per store admin responsibility.

Sequential is Recommended :)

I think the requirement of Technoob is for Order ID and not Invoice Number.

Technoob you can use some random number generation algorithm for the same. Google it up you will get lot of code for PHP. Regarding the exact function where it has to be incorporated i think it would be in order.php

I think the requirement of Technoob is for Order ID and not Invoice Number.

yes you are right , admin can manage invoice id separate .

i discussed it with my team & they cleared my concept about invoice id & order id .

Thanks to clear this doubt.

This is an old thread, may I know if someone already has built this random Order ID (Not random Invoice) add-on?

This is an old thread, may I know if someone already has built this random Order ID (Not random Invoice) add-on?

perhaps this would work for you:

https://marketplace.cs-cart.com/skrytie-realnogo-nomera-zakaza.html