http://www.appelsiini.net/2010/jquery-chained-selects
<script type="text/javascript">
$("#option-A").chained("#option-C");
$("#option-D").chained("#option-A");
</script>
and so...
<script type="text/javascript">
$("#option-A").chained("#option-C");
$("#option-D").chained("#option-A");
</script>
and so...
Celestial - Martín Abel Rosales
WhatsApp: 50671482211
Email: martinrosales2012@hotmail.com
Skype: martin.abel.rosales
San José , Costa Rica
The mod I'm working on is actually based on jQuery chained selects using product_option_id and product_option_value_id.
I've received a lot of messages from people interested in the project so I figured I'd throw up a screenshot of progress on the Admin side.
I've received a lot of messages from people interested in the project so I figured I'd throw up a screenshot of progress on the Admin side.
Attachments
dependent_options2.jpg (80.81 KiB) Viewed 5390 times
-Ryan
ah great.. I really would like to see this working (so people stop asking for it
). My attempts and trying to make sense of it always started with the parent option id (similar to the category table) but I could never get all the pieces to make sense to me. This will be huge rph.. you can get rich from this mod.

This is my situation exactly.blackhalo wrote:
To be devils advocate, here's an example...
I have 200 products that have 5 different shirt 'Styles' (Mens, Womens, LongSleeve, Tanktop, Babydoll, etc)... each of those styles has a different combination of 'Sizes' available (XS, S, M, L, XL, 2XL, 3XL, etc)...
and each has a different combination of 'Colors' for each style (huge list).
The reality of hand-picking each option, for each of the 200 products... is like 200,000+ mouse-clicks (we're talking months of work!)... that's just as bad as Magento's method... creating a new product for each option, then linking the 200,000 products.
Ideally, I would need to be able to set up 'sets' of options and then with one click of the mouse be able to add the relevant set of options to a product (or a number of products).
I'm not being pessimistic or a defeatist here but If creating sets can't be done for whatever reason. Will it be possible to create several different 'template' products which have all the dependant option combinations that you need.
Then, if possible, clone/duplicate the template product with the correct options onto a new product?
Then, if possible, clone/duplicate the template product with the correct options onto a new product?
Yeah, I definitely appreciate the amount of grunt work that involves but that is the framework OpenCart uses. I'm just working within it.blackhalo wrote:The reality of hand-picking each option, for each of the 200 products... is like 200,000+ mouse-clicks (we're talking months of work!)... that's just as bad as Magento's method... creating a new product for each option, then linking the 200,000 products.
-Ryan
That's really creating two different mods, conditional options and bulk product option creation with conditional options. I wouldn't rule it out as a possible future project but generally speaking I stay away from making mods that are substantially similar to those already on the market.
-Ryan
I figured I'd ask for some feedback on this as a number of people are following development. Right now the conditional options mod works by having a child option (such as Color) "chained" to a parent option (such as Size). When they're chained the parent option values you choose (Medium, Large, etc.) directly effect which child option values (Black, Red, etc.) are shown.
I think this method will work fine for most people but there are instances where it will come up short. For example, if you have four large tshirts:
Women's large black
Women's large pink
Men's large white
Men's large black
When color is chained to size black, white, and pink will always be displayed when large is selected regardless of whether it's a women's or men's style tshirt. Luckily chained selects allows you to designate two parent options for a child which would solve the problem. Color would have both Style and Size as parent options then you could set black to be displayed when large is chosen, white to display when men's/large is chosen, and pink to display when women's/large is chosen.
It seems like a no-brainer feature to add but the problem is I can't seem to come up with a decent admin user interface for this to save my life. They always turn into a big, convoluted mess. I looked at a Magento implementation of dependent option but that's less advanced than what I already have.
So is this a feature that's worth taking the time to get done or is the current one-parent option setup going to work for most people?
I think this method will work fine for most people but there are instances where it will come up short. For example, if you have four large tshirts:
Women's large black
Women's large pink
Men's large white
Men's large black
When color is chained to size black, white, and pink will always be displayed when large is selected regardless of whether it's a women's or men's style tshirt. Luckily chained selects allows you to designate two parent options for a child which would solve the problem. Color would have both Style and Size as parent options then you could set black to be displayed when large is chosen, white to display when men's/large is chosen, and pink to display when women's/large is chosen.
It seems like a no-brainer feature to add but the problem is I can't seem to come up with a decent admin user interface for this to save my life. They always turn into a big, convoluted mess. I looked at a Magento implementation of dependent option but that's less advanced than what I already have.
So is this a feature that's worth taking the time to get done or is the current one-parent option setup going to work for most people?
-Ryan
That's just the way OpenCart works (it looks like Magento works almost the same way too). It's more work but it's also much more power.blackhalo wrote:That's a little hard to visualize without some hands-on... but honestly, it starts to make the case for entirely removing the option for 'granular' editing... that's the part that really brings dread into the picture, it's so involved to setup each option one-at-a-time.
Chained Selects work on the option value level, not the option level. The options (size, color) are always there, it's just the option values in them (medium, large, black, white) that are hidden or shown accordingly.The chaining should be as simple as pie... only allow chaining on a Group level, not an Option level... force the user to create Option "Groups" based on the Chains they need... then just use a simple dropdown menu for the linking structure in the admin (as shown on the jquery page: http://www.appelsiini.net/2010/jquery-chained-selects).
I believe there would be required option issues with this. Also you're missing that this still have to map to option values (at some point you have to pick Men's Style or Women's Style).So if I set "Mens Style" (Group) to parent "Mens Size" (Group) and that parents "Mens Colors" (Group)... all you need is three dropdown menus to setup those relationships... for Womens, you allow the creation of a second row of dropdown menus... rinse/repeat, but with "Womens Style" (Group) parenting "Womens Size" (Group), etc, etc.
-Ryan
Then you'd lose finite control over things like quantity and option price.blackhalo wrote:Meh, that gets kinda complicated...
I really just wish options were built in a staging area (then applied afterwards),
that would simplify things sooooo much.
I think you've got the same amount of work there, just in a different way. You're either mapping all your options out to option values or you're putting all your options in option groups then mapping those groups to option values.The very first Option Level MUST be granular...
but then everything after that could be chosen on the Parent level...
almost like an automatic "Select All" button when you choose the next option.
After thinking about it I'm going to dump the multi-parent idea. For those that need it the same thing can be achieved with multiple option values. If you need to be able to split options at large, for instance, you create two of them. You can call them Men's Large or Women's Large or I might have the option value id displayed like:
or possibly add an alias option for display in Admin like:
-Ryan
Lots of progress this weekend. I'm at the point where nothing is going to be changed now. The only programming left is product form validation. Then it's a few rounds of bug testing, creating the VQMod script, writing documentation, and publishing. After that I'll start working on an advanced version for setting conditional options en masse.
-Ryan
For the product you set one option as a "parent" then specify which of the parent option values need to be selected in order for the child option value to appear.
That's correct. Admin development is at a suitable place for people to check it out.
http://options-demo.opencarthelp.com/admin/
user: demo
password: demo
And of course the front-end is still in action at:
http://options-demo.opencarthelp.com
http://options-demo.opencarthelp.com/admin/
user: demo
password: demo
And of course the front-end is still in action at:
http://options-demo.opencarthelp.com
-Ryan
This looks great. I'm ready to buy
Will this work with Price Update (would be almost essential for me)? And will it be possible to hide the option prices in the dropdowns (i.e. I don't want any prices to display next to each option)?
Can't wait for this release!

Will this work with Price Update (would be almost essential for me)? And will it be possible to hide the option prices in the dropdowns (i.e. I don't want any prices to display next to each option)?
Can't wait for this release!

nice work rph...
As with most of the others, I've been looking for this solution for one of my clients. I know that you've posted you should be finished in Feb, but any ideas which end so I can massage my clients expectations of the delivery date.
Have you any idea of what you plan to sell this for?
Also, have you do any testing with 'Options Boost' module?
If you need some testing done, I'd be happy to help
Keep up the good work.
Opencart Version 1.5.1.3
As with most of the others, I've been looking for this solution for one of my clients. I know that you've posted you should be finished in Feb, but any ideas which end so I can massage my clients expectations of the delivery date.
Have you any idea of what you plan to sell this for?
Also, have you do any testing with 'Options Boost' module?
If you need some testing done, I'd be happy to help

Keep up the good work.
Opencart Version 1.5.1.3
All options will show all the time. What you can do is put the option values that would occur for yes and no into the same option and have them display depending on whether yes or no is selected.scomth wrote:Is it possible to have say only 1 box up with a yes or no option? If yes is selected it opens another option etc and if No is selected or defaulted then no other options become available?
-Ryan
Who is online
Users browsing this forum: Majestic-12 [Bot], paulfeakins and 34 guests