Zen Cart Logo
Forums / General Questions / help - order number problems after upgrade

help - order number problems after upgrade

Locked

Views: 1,201

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
23 Jul 2007, 6:17 PM
#1
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

help - order number problems after upgrade

ok

I upgraded the shop to the latest version from 1.2.4

Customer placed order but had problems so I logged in as himand finished it. It created a new order as order number 0.

I used the 'change order number feature' and re numbered 0 to 2500. Then I created a test order to test it. the test order is order number 0 again

Where does it get the next order number from?

TIA

23 Jul 2007, 6:38 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: help - order number problems after upgrade

There are a huge number of possibilities here.

What payment module are you using when doing these tests?
What addons/contributions are installed?
What customizations exist in this store?
What procedures did you follow to do the upgrade?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jul 2007, 6:54 PM
#3
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: help - order number problems after upgrade

DrByte:

There are a huge number of possibilities here.

What payment module are you using when doing these tests?
What addons/contributions are installed?
What customizations exist in this store?
What procedures did you follow to do the upgrade?

Protx
master password, multisite and column layout
mostly just css stuff
started with a new store and added my template

trying to find where it actually creates the order. Shirley that's one page?

Thanks

23 Jul 2007, 7:39 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,650
Plugin Contributions:
0

Re: help - order number problems after upgrade

Try check/money order to see if it is the payment

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

23 Jul 2007, 8:21 PM
#5
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: help - order number problems after upgrade

Kim:

Try check/money order to see if it is the payment

:) I did

ok it seems that my orders table needed the orders id to be set to autoincrement and I needed to add and orders_id field to the beginning of the $sql_data_array

I'm pretty sure I've just bodged it but it's working right now.

thanks

23 Jul 2007, 8:46 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,650
Plugin Contributions:
0

Re: help - order number problems after upgrade

:clap::clap::clap:

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

24 Jul 2007, 11:09 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: help - order number problems after upgrade

Chrome Orange:

ok it seems that my orders table needed the orders id to be set to autoincrementYes, and in fact, if your orders table "lost" its auto-increment configuration, you might be advised to check out all your tables and make sure the appropriate ones have appropriate auto_increment settings in them.
Sometimes doing export/imports between MySQL versions will drop that setting, leaving you with odd results.

Chrome Orange:

and I needed to add and orders_id field to the beginning of the $sql_data_arrayDepending on your module, that may or may not matter much.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.