Changing option value after first selection displays out-of-stock options
| Project: | UC Attribute Stock Filter |
| Version: | 6.x-1.0-beta12 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | henrrrik |
| Status: | active |
Jump to:
When one first selects an attribute's option, other options are filtered appropriately based on stock levels, as they should be. However if after the user selects their initial option choices, they decide to select a different option, all options are displayed (regardless of stock level) instead of being filtered as they should be.
For example:
Two attributes: Size and Color, where there are three options available for each attribute (Size: Large, Medium, and Small) & (Color: Red, Green, and Blue). There is no stock of Large Red, Medium Green, or Small Blue items. Selecting large as your size properly filters your options for color to green and blue. Suppose you select blue. If you then decide you really want green and try to change your selection, red will suddenly be in the list of available choices -- even though it is not available.

#1
#2
Automatically closed -- issue fixed for 2 weeks with no activity.
#3
This is an AWESOME MODULE!!! Extremely useful and exactly what i was looking for. This kind of module is what blows ZenCart (definately) and Magento (i believe_ out of the water!!! BUT... i'm having the exact same issue described very well above by TwistedLincoln
I have a fresh install of the following, everything else is working:
Drupal 6.14
Ubercart 6.x-2.0-rc7
Ajax Attribute Calculations 6.x-1.x-dev
Out of stock notificator 6.x-1.4
Using theme Minelli
Attribute Stock Filter 6.x-1.0-beta12
See my example of this happening here: http://www.schwebdesign.com/countryinspirationsdrupal5/content/wooden-si...
Any thoughts? I appreciate any advice you may have.
#4
UPDATE, this seems to be a compatibility issue with Ubercart Ajax Attribute Calculations 6.x-1.x-dev
I disabled the Ajax Attribute Calculations 6.x-1.x-dev module and then this UC Attribute Stock Filter module performed as expected (so far anyway) and no longer performed the behavior described up top by TwistedLincoln.
It seems the Ajax Attribute Calculations 6.x-1.x-dev was refreshing the same select elements after this module filtered them out, essentially putting them "back in" to the DOM. (let me know if what i'm describing doesn't make sense and i will reenable the Ajax Attribute Calculations module so you can see what i'm talking about) Would it be possible to make this module compatible with the Ajax Attribute Calculations module and have the Ajax Attribute Calculations perhaps done BEFORE this module's refresh of the attribute select elements so they filtered out attribute selections don't show up again?
It would be a killer combination to use this module in conjunction with Ajax Attribute Calculations!!!
I am submitting this as a feature request on the Ajax Attribute Calculations issue queue as well- as I'm not sure the best place for this issue.
I appreciate any feedback, thanks!