abantecart-src icon indicating copy to clipboard operation
abantecart-src copied to clipboard

No provision to put prefix for Order Id

Open hb007006 opened this issue 8 years ago • 4 comments

Abantecart v1.2.8

In abantecart, prefix with invoice is allowed. However abantecart doesn't have provision to put prefix along with order id e.g. YDFO-12762871-130701

Most of the carts provides this feature

hb007006 avatar Dec 04 '16 06:12 hb007006

Order ID is unique in the system. How do you see this working?

abantecart avatar Dec 08 '16 13:12 abantecart

I agree, order id is unique in the system. But there should be provision in the system to put prefix along with order id as most of the carts provides this feature

There could be multiple ways to implement this. One of the approach could be YDFO-12762871-11, here 11 is order id and YDFO-12762871- is order fix. May be you can have two columns in DB one for order id (already existing) and another for order prefix (new).

hb007006 avatar Dec 09 '16 09:12 hb007006

Order ID can not be alphanumeric unless it is a new field. Why Invoice ID does not work as it is now? It generates as unique and Invoice prefix can start with anything custom.

abantecart avatar Jan 17 '17 03:01 abantecart

Most of the carts provide this feature. They support order id and invoice id both alpha numeric. Invoice id comes in picture only when order gets completed.

Can't we have a new field for order id prefix in database (may be in settings table)? Order id and current logic will remain as is. New prefix database field can be used to display order id along with prefix on user screens and to send notifications.

hb007006 avatar Jan 19 '17 09:01 hb007006