Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to change Order ID#

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-31-2006, 09:36 AM
 
jfilardo jfilardo is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 50
 

Default How to change Order ID#

Hello all,

I'm trying to figure out how to modify x-cart to display the Order ID# as an alpha-numberic value. Currently my Order ID# is number ic only, counting up from, 1, 2, 3, 4, etc. What I would actually like is something like US1, US2, US3, US4, etc.

I plan on having multiple country specific stores and am trying to avoid duplicate Order ID#'s so the prefix US or CAN before the actual number would be beneficial.

Thaank in advance,
Jason.
__________________
www.coopersport.com
North America's Premiere MINI Outfitter

X-Cart Gold v4.0.19 [Apache/Linux]
Reply With Quote
  #2  
Old 09-21-2006, 09:13 AM
  Ana's Avatar 
Ana Ana is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Hurricane Alley, South Florida USA
Posts: 186
 

Default Re: How to change Order ID#

Agreed, an order prefix would be great to separate different stores' orders. When running multiple shops, it can get confusing.

Ana
__________________
"Real knowledge is to know the extent of one's ignorance."-- Confucius

X-Cart 4.4.4
MySQL 5.0.92
Apache/2.0.64 (Unix)
PHP 5.3.6
CentOS 5.5

MODS:
Template Mela- Theme XCT010002
Altered Cart- CheckoutOne
BCS Engineering- Back In Stock Notification
X-Cart Mods- Thumbnail Candy
X-Cart Mods-Advanced Shop Closed
Google Site Search
Reply With Quote
  #3  
Old 09-29-2006, 04:28 PM
  Ana's Avatar 
Ana Ana is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Hurricane Alley, South Florida USA
Posts: 186
 

Default Re: How to change Order ID#

I just used a numeric code for each store. there is a 9 prefix for one, 8 for another resulting in 9000001 etc. If you have over 8,999,999 orders in a short amount of time (averaging 24658 orders a day in a year), I would think you might want to pay for some serious programmer to build your own place (by that time, you sure as hell should be able to afford it!)



Just a blonde suggestion.

Ana
__________________
"Real knowledge is to know the extent of one's ignorance."-- Confucius

X-Cart 4.4.4
MySQL 5.0.92
Apache/2.0.64 (Unix)
PHP 5.3.6
CentOS 5.5

MODS:
Template Mela- Theme XCT010002
Altered Cart- CheckoutOne
BCS Engineering- Back In Stock Notification
X-Cart Mods- Thumbnail Candy
X-Cart Mods-Advanced Shop Closed
Google Site Search
Reply With Quote
  #4  
Old 10-07-2006, 05:53 AM
 
jfilardo jfilardo is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 50
 

Default Re: How to change Order ID#

Thanks Ana. What I ended up doing is changing the Label Tag for Order ID to Read "Order ID (USA):" and "Order ID (CAN):" in the Languages section in Admin.

Now my orders and Invoices come out looking like... Order ID (USA): #486

Be sure to do a label search for "Order" and change all occurances of the Order ID label. There are several.

Cheers,
Jason.
__________________
www.coopersport.com
North America's Premiere MINI Outfitter

X-Cart Gold v4.0.19 [Apache/Linux]
Reply With Quote
  #5  
Old 10-07-2006, 08:12 PM
 
katoby katoby is offline
 

Member
  
Join Date: Aug 2006
Posts: 15
 

Default Re: How to change Order ID#

Just wondering where you go to change the order ID prefix or starting # (i.e. I don't want my orders starting off at #1)... I want to have the order ID's start where my old shopping cart left off.
__________________
X-Cart Gold V. 4.1.2 [Win]
Reply With Quote
  #6  
Old 10-08-2006, 05:54 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How to change Order ID#

Quote:
Originally Posted by katoby
Just wondering where you go to change the order ID prefix or starting # (i.e. I don't want my orders starting off at #1)... I want to have the order ID's start where my old shopping cart left off.

A list of things asked a million times
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 10-08-2006, 08:10 AM
 
katoby katoby is offline
 

Member
  
Join Date: Aug 2006
Posts: 15
 

Default Re: How to change Order ID#

Thanks!
__________________
X-Cart Gold V. 4.1.2 [Win]
Reply With Quote
  #8  
Old 10-09-2007, 11:39 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: How to change Order ID#

Is there a way to put an order prefix? I want my orders to be prefixed with AIW-
__________________
xcart 5.1.2
Reply With Quote
  #9  
Old 10-09-2007, 01:36 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How to change Order ID#

You can make the order prefix separate from the database... if ALL orders in your store begin with AIW- then the way I would do it:

1. Determine where order numbers are displayed.
2. Change the template that dispalys order numbers.

For example - in /skin1/main/orders_list.tpl

find:
Code:
<td><a href="order.php?orderid={$orders[oid].orderid}">#{$orders[oid].orderid}</a></td>

instead of #{$orders[oid].orderid} - you want it to be:

#AIW-{$orders[oid].orderid}

yes?

Find all the other places that an order # is displayed (use webmaster mode) and go to town.

That's the "easy" way. The hard way will be to create a table and append alpha characters to the table and I wouldn't know where to start. Beyond me. This makes your order number a simple display/template fix, not the underlying order number.

Will this work?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #10  
Old 10-09-2007, 04:26 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: How to change Order ID#

Sounds like it might. I'll give it a shot. If I get it to work I'l post my findings here.
__________________
xcart 5.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:57 PM.

   

 
X-Cart forums © 2001-2020