VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: jimpett81 on November 04, 2015, 11:17:09 AM

Title: Order ID
Post by: jimpett81 on November 04, 2015, 11:17:09 AM
Hi All,

I would like to set a specific start point for the order number in virtuemart. The problem is that I have some old orders with old order id's, when I pull in new orders some match the old ones and my database can't import them as they are duplicates. So what I need is a way to set a start point of the order numbers so that it is a high number and won't match any old ones. How can this be done? I was pointed to this file - administrator/components/com_virtuemart/helpers/config.php but could not find the variables mentioned within it?

Thanks,

James
Title: Re: Order ID
Post by: AH on November 04, 2015, 11:50:13 AM
Version of Vm would help.

Are you talking about the order_number or order_id

order_number is not the primary key for the orders file and is not used for "matching"

To adjust the order_id to a start at a higher number change the database table #_virtuemart_orders

Set the "Auto increment:"  to a value required
Title: Re: Order ID
Post by: jimpett81 on November 04, 2015, 12:50:59 PM
Sorry VirtueMart 3.0.10

Are you refering to a table in the database? Can you elaborate?
Title: Re: Order ID
Post by: AH on November 04, 2015, 12:57:54 PM
QuoteChange the database table #_virtuemart_orders

Yes it is the table above.

If you do not know how to set the  "Auto increment:"  to a value required - then I cannot be of any more help as it would not be wise for me to "guide" you through the process.
Title: Re: Order ID
Post by: jimpett81 on November 04, 2015, 15:00:10 PM
Thanks for that, I managed to make the changes and all is well.

Regards,

James
Title: Re: Order ID
Post by: AH on November 04, 2015, 15:55:48 PM
Great - thanks for the update