Order ID number

This forum is dedicated to discussions about shopping carts/ecommerce.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
Bill Kaye

Order ID number

Post by Bill Kaye » Thu Mar 24, 2011 6:41 pm

The php code for the shopping cart creates an Order ID number. I would like to shorten the number generated. Does anyone know where this is located in the php code?
Thanks

User avatar
Patrik iden
 
 
Posts: 530
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Order ID number

Post by Patrik iden » Thu Mar 24, 2011 9:57 pm

Hi i think it's this code in the thankyou.php page. It starts on line 27

// create unique order id
$orderid = strtotime("now").$_SERVER['REMOTE_ADDR'];
$orderid = str_replace(".", "", "$orderid");

I dont know exactly how to chang it, just try somthing.

Post Reply