| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Order ID Random Incrementation... | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
Re: Order ID Random Incrementation...
Quote:
Someone mentioned Amazon order numbers and I thought I would have a go at recreating their randomness and pattern of 3-7-7 digits. Code:
As for testing a used number, well this code snippet uses 14 unique numbers. The possibility for creating a duplicate number with this spread is like 22,876,792,454,961:1 and I don't think it would warrant any test to see if the number was previously generated. You have better odds winning multiple powerball lottos... - Mike
__________________
4.1.9 |
|||||||
#22
|
|||||||||
|
|||||||||
Re: Order ID Random Incrementation...
works fine for me.
nice on many thanks.
__________________
X-Cart version 4.4.5 PHP 5.2.13 MySQL server 5.0.51a-community-log MySQL client 5.0.51a Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8 Operation system Linux Perl 5.008008 http://temptinglysexy.co.uk |
|||||||||
#23
|
|||||||||
|
|||||||||
Re: Order ID Random Incrementation...
Does anyone know if this works in v4.2.0?
I'm trying it, but it's not working for me.
__________________
Xcart V4.5.5 Gold seaCOAST "Live FREE or DIE!" |
|||||||||
#24
|
|||||||||
|
|||||||||
Re: Order ID Random Incrementation...
If anyone is still interested in this thread...
This mod does work on v4.2.0 For some reason, it took a few orders for it to start working. I'm not sure why. Perhaps a cache thing.
__________________
Xcart V4.5.5 Gold seaCOAST "Live FREE or DIE!" |
|||||||||
#25
|
|||||||
|
|||||||
Re: Order ID Random Incrementation...
Quote:
FYI: I noted the same issue when I recently upgrade to v4.1.12 (the first 5 or so orders incremented by exacly 1, then it started working). Seems like a caching issue could make testing a little frustrating at first.
__________________
X-Cart Pro 4.1.12 | Linux | MySQL |
|||||||
#26
|
|||||||
|
|||||||
Re: Order ID Random Incrementation...
I've just installed this mod in 4.2.1 and it started working on the next order.
Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2 X-AOM, X-SpecialOffers Download Expander 2.1.3 / 2.2.0 |
|||||||
#27
|
|||||||
|
|||||||
Re: Order ID Random Incrementation...
Good to see my mod is still going strong in 4.2
|
|||||||
#28
|
|||||||
|
|||||||
Re: Order ID Random Incrementation...
I just wanted to report that this mod works in 4.3.0 too.
cart.php is a bit different, but the line of code that needs to be added can be inserted at line 950.
__________________
XCart Gold v4.3.2 [Linux] |
|||||||
|
#29
|
|||||||
|
|||||||
Re: Order ID Random Incrementation... 4.3.1
In 4.3.1 it seems to be the same as the instructions for 4.1.x:
Find: $smarty->assign("orderids", $orderids); $smarty->assign("main","order_message"); $location[] = array(func_get_langvar_by_name("lbl_order_processe d"), ""); Replace with: $smarty->assign("orderids", $orderids); $smarty->assign("main","order_message"); include $xcart_dir."/include/increment.php"; $location[] = array(func_get_langvar_by_name("lbl_order_processe d"), ""); That is working for us.
__________________
xCart Pro Version 4.0.17, 4.0.19, 4.1.8, 4.1.10, 4.1.11, 4.1.12 - retired xCart Pro Version 4.3.1 - production xCart Pro Version 4.5.1 - testing RHEL Platform |
|||||||
#30
|
|||||||||
|
|||||||||
Re: Order ID Random Incrementation...
Any chance this could be upgraded for v4.4.1?
I had trouble finding the code. Thanks.
__________________
Xcart V4.5.5 Gold seaCOAST "Live FREE or DIE!" |
|||||||||
|
|||
X-Cart forums © 2001-2020
|