So, I've been trying to get a moment to post this for a while now... But...
I ran a test on the product I setup to try to identify what aspect of the checkbox attribute was causing a problem. While the test was not exhaustive (ie., could have performed a larger number of operations), it appears that although the correct fee is applied to the purchase of any of the following, the stock quantity does not work out correctly.
The setup was essentially the following:
One product
One option name (checkboxes)
Two option values
Product is price by attribute
price of product is 0,
price of attribute one is $10
price of attribute two is $20
In attribute controller: Attribute 1 is identified as Base Price (2 is not)
Remaining settings for both: display only: off, Free: on, default: off, discounted: on, required: off.
quantity of stock was 10000 initially
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Product A has no check boxes checked |
|
|
|
|
|
|
|
|
|
|
|
|
Product B has first check box checked |
|
|
|
|
|
|
|
|
|
|
|
|
Product C has second check box checked |
|
|
|
|
|
|
|
|
|
|
|
|
Product D has both check boxes checked |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Product added to cart and quantity |
|
|
Sequence of adding product to cart |
Qty purchased |
Remaining Qty after purchase |
|
|
|
|
|
|
|
A |
B |
C |
D |
|
A |
B |
C |
D |
|
Used |
10000 |
|
1 |
1 |
1 |
2 |
|
4 |
1 |
2 |
3 |
4 |
3 |
9997 |
|
1 |
|
|
|
|
1 |
|
|
|
1 |
1 |
9996 |
|
|
|
|
1 |
|
|
|
|
1 |
1 |
1 |
9995 |
|
|
1 |
1 |
|
|
|
2 |
1 |
|
2 |
2 |
9993 |
|
|
1 |
|
1 |
|
|
2 |
|
1 |
2 |
2 |
9991 |
|
|
1 |
1 |
1 |
|
|
3 |
2 |
1 |
3 |
1 |
9990 |
|
1 |
1 |
1 |
1 |
|
2 |
3 |
4 |
1 |
4 |
2 |
9988 |
|
1 |
1 |
1 |
1 |
|
3 |
1 |
2 |
4 |
4 |
1 |
9987 |
Based on the above, the sequence of adding a product to the cart has an effect on the quantity that is then removed as part of the purchase. Specifically can easily see from the last two purchases that the quantity removed from the store changes from the sequence. Initially: DABC removed a quantity of two of the item, BCAD removed only one. I apologize for the first data, during testing, I thought that I only had selected one of each item, but apparently had selected two of item D.
This to me revises my previous statement. There does appear to be an error in the coding/handling of checkboxes at least on the inventory side. Cost wise, it comes out correctly, I was "charged" the amount expected for each of the above situations, but my stock would have been grossly in error if it was a real product.
For some reason I remember seeing something about this problem in the past, but I have spent several days looking for related discussions. Most times an alternate method of gathering data was used, ie. radio buttons, drop downs, etc...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...