VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: gain on November 12, 2012, 15:44:16 PM

Title: order_number used for? Can I use it for something else?
Post by: gain on November 12, 2012, 15:44:16 PM
Hi,
in VM1 I wrote a script that import orders from another program into VM. I populated the order_number field as custom_<external_id> for keeping track of orders not from VM, and was ok.

Now I need to upgrade to VM2 and I see that order_number is changed.

So I'm wondering if I can use order_number field as I've done since now, or if  it's used for any purpose I dunno...

Thanks in advance, hoping in a reply...

Bye
Title: Re: order_number used for? Can I use it for something else?
Post by: chetanmadaan on November 22, 2012, 21:32:13 PM
You can.

in VM 1... it was just order number as a primary key used in all tables.

but in VM 2...  we have order id (not in sequence... as 1, 2, 3, 4....) and then we have order_pass.

but good news... you can still use the order number filed as it works the same way in the backend.
Title: Re: order_number used for? Can I use it for something else?
Post by: gain on November 24, 2012, 11:29:45 AM
Quote from: chetanmadaan on November 22, 2012, 21:32:13 PM
You can.

in VM 1... it was just order number as a primary key used in all tables.

but in VM 2...  we have order id (not in sequence... as 1, 2, 3, 4....) and then we have order_pass.

but good news... you can still use the order number filed as it works the same way in the backend.

Good to know, thank you very much... :)