9 replies [Last post]
adrianmak's picture
Offline
Joined: 05/28/2008
Juice: 312
Was this information Helpful?

I am surprised that the Order number used in ubercart still using a sequential number.
For a real business, it is not quite be acceptable and really non-user friendly.

Anybody keep eyes on this matter ?

allanmayberry's picture
Offline
Joined: 03/09/2009
Juice: 116
Re: Format of an Order number (prefix or sufix)

+1 for this suggestion if nothing has already been implemented (I haven't been able to find anything much) although it looks as if it has been discussed here previously.

The idea suggested that the prefix is created as a seperate field looks ideal for what I need (need to be able to quickly identify where payments have came from [multiple web shops paying into the same bank account] in order to keep the books up to date). Has any work been done on this at all?

adamo's picture
Offline
Getting busy with the Ubercode.
Joined: 02/17/2009
Juice: 229
Re: Format of an Order number (prefix or sufix)

I also need this. Let's continue this discussion here.

Also I have uploaded a contrib module that does not solve the problem completely, but may be useful depending on your needs:
Order Number Prefix

allanmayberry's picture
Offline
Joined: 03/09/2009
Juice: 116
Re: Re: Format of an Order number (prefix or sufix)

Thanks for the contrib module, looks like it might actually cover what I need but I am an error when trying to allow the module:

Depends on: Array (Missing)

Any ideas?

Allan

adamo's picture
Offline
Getting busy with the Ubercode.
Joined: 02/17/2009
Juice: 229
Re: Re: Re: Format of an Order number (prefix or sufix)

Sounds like you running D5/UC1? This module is for D6/UC2.

allanmayberry's picture
Offline
Joined: 03/09/2009
Juice: 116
Re: Re: Re: Re: Format of an Order number (prefix or sufix)

That would be the problem! Am i right in saying that there is no backwards compatibility for this module at the moment then?

adamo's picture
Offline
Getting busy with the Ubercode.
Joined: 02/17/2009
Juice: 229
Re: Re: Re: Re: Re: Format of an Order number (prefix or sufix)

It would need to be backported to D5/UC1, which really should be pretty easy. The module is only 73 lines long. The implementation of hook_form_FORM_ID_alter would need to be replaced with an implementation of hook_form_alter, and the .info file would need to be changed to the D5 format. The module is really not super useful unless some things change in the core uc_orders module though, and if/when that happens those changes are probably not going to be backported to UC1. So I'm not sure it's worth doing. If a UC1 version of this would really be useful to you, I could backport it real quick and post it. You'd have to test it out on your own though, since I don't run D5, and don't expect it to be maintained.

allanmayberry's picture
Offline
Joined: 03/09/2009
Juice: 116
Re: Re: Re: Re: Re: Re: Format of an Order number (prefix or suf

To be honest, I think I can hold off until the prefix/alternate key can be in place instead (as is the discussion in the other thread).

Thanks for the offer though!

Allan

onewayticket's picture
Offline
Joined: 03/30/2009
Juice: 9
Hi adamo, I'd appreciate a

Hi adamo,

I'd appreciate a backport if you could post it up online. Thanks.

albies's picture
Offline
Joined: 01/02/2008
Juice: 90
Re: Format of an Order number (prefix or sufix)

small problem regards order number:
see that is an auto_increment value, every user can know which is the number of orders that the shop's owner have managed;
infact every user have in the list of own order the Order # ;
and also this isn't useful for user to have a number of orders that really is of the shop's owner;

possible solutions:
1-
in the view user not see the field of order but a field that number only the rows;
at click can always open the order (so in the url remain always total order of shop but is less evident )

2-
to have in the table uc_order in addition at fields
order_id
uid

a field uid_no (uid relative number order)

where is insert the number of order
example
order_id uid uid_no
10 2 1
11 2 2
12 2 3
13 3 1
14 4 1
15 2 4

tha for every user set the numbers of order;

so shop's owner can have in own view other at order_id, also the other two fields and with possibility of make order
not only on order_id but also with uid;