VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: wbyers on January 07, 2020, 19:25:44 PM

Title: Pending Order numbers not being reused
Post by: wbyers on January 07, 2020, 19:25:44 PM
Back in November, we upgraded to VirtueMart 3.4.5. Since then intermittently we've had issues where the order number skips 1 to the next order when it fails to reach our payment processor.
We use PHP 7.3.6, Joomla 3.9.13, and open tools advanced order number plugin version: 4.0.6.
From what I have managed to learn supposedly there is a configuration option that tells Virtuemart to re-use pending order numbers if they fail.
Is it possible that the update has shut off this configuration, and if it has is there anything we can do to turn it back on?   
Title: Re: Pending Order numbers not being reused
Post by: GJC Web Design on January 07, 2020, 22:54:01 PM
is it add the variable reuseorders=1 in your virtuemart.cfg file ?

Title: Re: Pending Order numbers not being reused
Post by: wbyers on January 07, 2020, 22:55:23 PM
It might be, Where would the cfg file be located?
Title: Re: Pending Order numbers not being reused
Post by: jenkinhill on January 07, 2020, 23:31:29 PM
See http://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
Title: Re: Pending Order numbers not being reused
Post by: wbyers on January 08, 2020, 14:18:47 PM
okay, I think I found the configuration file however I don't see the resendorder variable.
So the next set of questions should probably be: Should I be looking at the config file under the administrator directory and can I add the variable because it's not there? 
Title: Re: Pending Order numbers not being reused
Post by: GJC Web Design on January 08, 2020, 15:00:37 PM
yes and yes
Title: Re: Pending Order numbers not being reused
Post by: wbyers on January 08, 2020, 15:02:35 PM
Okay, great does it go in under the shop settings or shop front, or does that not matter?
Title: Re: Pending Order numbers not being reused
Post by: GJC Web Design on January 08, 2020, 15:03:12 PM
doesn't matter
Title: Re: Pending Order numbers not being reused
Post by: wbyers on January 08, 2020, 15:38:48 PM
It should be set to 1 right? Just to make sure
Title: Re: Pending Order numbers not being reused
Post by: GJC Web Design on January 08, 2020, 18:06:48 PM
yes
Title: Re: Pending Order numbers not being reused
Post by: wbyers on January 08, 2020, 19:11:23 PM
Great, thanks. I'll let you know if this solved our issue.