View Full Version : Masking Order & Customer Quantities

02-07-2013, 03:55 PM
ne of the issues I had with OSC is the incremental numbers for orders_id and customers_id. For small sites this shows anybody who registers that they are customer 21 for example and placed order 52. They place another order next week and they get 57, thereby giving away you've only had 5 orders.

I know there are other contribs which may give far more elegant solutions but I came up with this as it is really simple to do (only 2 files to modify) and requires no database modding. What it does is just add a 4digit random number to the newly created order or customer id, so that customer_id & order_id will always be in the thousands even if orders are placed consecutively.

I've had it running and don't have any issues, but don't offer any guarantees.

More... (http://addons.oscommerce.com/info/8694)