Alright, I believe I found the issue (and an odd one it seems to be at that).
First, the auto-increment script worked. Thank you. After that, I removed all side effects in the database from the Group Pricing Per Item mod, then deleted all customers and recreated a standard new one from scratch so I had, effective, a clean, unaltered install of the ZenCart code, plus a 'standard, default' database. The problem still existed. That indicated a problem with the product configuration, which is where I found this:
There appears to be a problem in ZenCart when parsing attributes in a certain way. I was able to reproduce the problem from scratch. It's remarkably simple (leading me to wonder if it's just on my install, if no one has just accidentally stumbled on it yet, or if they have, that for their configuration it actually mattered). This is how I reproduced the problem (I'll try to make this verbose so it can be produced without ambiguity):
I set up an item (priced at $6,522.22). For attributes, I included a checkbox attribute (with 2 items, pricing doesn't seem to matter, my example was vehicle chassis options), and then a radio attribute (with 2 items, pricing doesn't seem to matter, my example was colors). No images or other modifications are made (or needed). Order is important. I found though that the problem still exists if you insert another attribute (say a dropdown) between the checkbox and radio attributes, however only one checkbox and one radio is needed (for simplicity sake).
Reproducing the behavior of the issue: Make sure shopping cart is clear. (I did this next part logged in with a login that had Authorization Status 'Approved'.) Go to the product, select one checkbox attribute item (doesn't matter which one), and one radio attribute item (doesn't matter which one). Add to cart. Immediately return to item (doesn't matter how), and make sure the same checkbox attribute item is checked (no changes on the checkbox attribute should be made from the first product placed in the shopping cart). Select a different radio item. Add to cart. Now the cart groups the products together as a single order, quantity 2, of the last radio item selected. If a different checkbox item was selected, the cart breaks out the products correctly.
This problem works even if no radio option is selected the first time, then one is selected the second. What seems to matter is that the checkbox item stays the same (but checked), while the radio changes, on consecutive 'add to cat' operations.
The problem, fortunately, is easy to get around. I moved my color radio to the top, and it worked. I was seeing the problem largely because I had both the checkbox and radio items with a default item selected.
I hope this is clear enough. Can you reproduce this issue? If so, does anyone know a fix? If not, what would you suggest?
Thanks for all the help! :smile: