Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Generate Random Order Id Rate Topic   - - - - -

 
  • technoob
  • Senior Member
  • Trial users
  • Join Date: 08-Jun 15
  • 309 posts

Posted 19 May 2016 - 10:07 PM #1

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

 

 



 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3531 posts

Posted 20 May 2016 - 05:27 AM #2

Is this legal? Some payment processors may not work.



 
  • Vivek Gupta
  • Senior Member
  • Members
  • Join Date: 09-Jul 15
  • 247 posts

Posted 20 May 2016 - 07:05 AM #3

 

 

Is this legal? Some payment processors may not work.

 

Yes , i'm with Darius.


Vivek Gupta 
 


 
  • fleaffair
  • Senior Member
  • Members
  • Join Date: 11-Jun 14
  • 537 posts

Posted 20 May 2016 - 07:13 AM #4

Is this legal? Some payment processors may not work.

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


Warm Regards,
Admin | MVE: 4.2.4

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21914 posts

Posted 20 May 2016 - 07:30 AM #5

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Vivek Gupta
  • Senior Member
  • Members
  • Join Date: 09-Jul 15
  • 247 posts

Posted 20 May 2016 - 08:10 AM #6

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 :)

Vivek Gupta 
 


 
  • fleaffair
  • Senior Member
  • Members
  • Join Date: 11-Jun 14
  • 537 posts

Posted 20 May 2016 - 10:23 AM #7

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


Warm Regards,
Admin | MVE: 4.2.4

 
  • Vivek Gupta
  • Senior Member
  • Members
  • Join Date: 09-Jul 15
  • 247 posts

Posted 20 May 2016 - 11:39 AM #8

 

 

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.  


Vivek Gupta 
 


 
  • martinchew
  • Member
  • Members
  • Join Date: 04-May 21
  • 26 posts

Posted 24 May 2021 - 09:38 AM #9

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


Martin


 
  • Jim01
  • Advanced Member
  • Members
  • Join Date: 25-May 17
  • 84 posts

Posted 24 May 2021 - 02:36 PM #10

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....era-zakaza.html