![]() |
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. |
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 |
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 |
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. |
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.
|
Re: How to change Order ID#
Quote:
A list of things asked a million times |
Re: How to change Order ID#
Thanks!
|
Re: How to change Order ID#
Is there a way to put an order prefix? I want my orders to be prefixed with AIW-
|
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? |
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. :)
|
All times are GMT -8. The time now is 12:47 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.