silvershop / silvershop-core

SilverShop is an e-commerce shopping cart module for the SilverStripe CMS
http://silvershop.github.io
BSD 2-Clause "Simplified" License
113 stars 119 forks source link

Best way to handle variation dropdowns #662

Open acndr opened 6 years ago

acndr commented 6 years ago

First time using this module and so-far it's great. We have typically used Magento for ecommerce in the past and while it's super feature rich, it's heavy and time consuming so this is nice to work with!

The website we are working on will have quite a few variations available, perhaps even as many as 10 on a single product (length, width etc). This means we have a bit of an issue with the select fields on the product as each select gives you every possible option, rather than the options related to the previous selected variation. E.g. if you select length A then widths B and D are the only available product but it shows widths B C D E.

The side effect of this is you constantly pick products that are not available and when you add to cart you are just redirected back with no error, so when you have as many as 10 dropdowns it becomes nearly impossible to pick the variation combination that actually exists.

I assumed that there would be a javascript file available within the module to account for this, considering you are bothering to output the json into the VariationOptions field in the first place, but I can't find anything.

Do you have an example for this?

sparkcom commented 6 years ago

You may consider dependable dropdown such as http://plugins.krajee.com/dependent-dropdown/demo