Is it possible to have dependent options?
I am a big fan of this but I would like to take it a step further.
I sell motorcycle parts and would like to have 3 dependent options, Make, Model, Year and depending on which options are picked it then will display the correct images and also additional images.
I spoke with Q but he reckons this might be available when 1.5.x comes out.
Any idea when that might be or if anyone can help with having those dependent options available, $ is available.
Con
I am a big fan of this but I would like to take it a step further.
I sell motorcycle parts and would like to have 3 dependent options, Make, Model, Year and depending on which options are picked it then will display the correct images and also additional images.
I spoke with Q but he reckons this might be available when 1.5.x comes out.
Any idea when that might be or if anyone can help with having those dependent options available, $ is available.
Con
I think that you should inter-relate all the three as that would sound to be a very good option and would also provide some very good results. The result that is filtered. Inter-relating all the three will help filter on every step, for instance selecting the year would automatically filter the results for make and model and vice-versa. Hope that it helps.
well sounds like there are two different things being talked about here. Dependant options for example you have to choose a motherboard first then the available processors that fit a selectable. And then there's filter options like year make and model. Seems to me like your year make and model should be a sitewide filter option not individual product options.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I will need the dependent options, not a site wide deal.Xsecrets wrote:well sounds like there are two different things being talked about here. Dependant options for example you have to choose a motherboard first then the available processors that fit a selectable. And then there's filter options like year make and model. Seems to me like your year make and model should be a sitewide filter option not individual product options.
The reason is I have multiple products that require you to choose a make, then model depending on which make you chose and which product you are in, and then a year depending on the above two.
Can someone explain to me the site wide option vs the filtered option.
I will be selling various parts and not all needing to have the dependent options.
For instance, you have Part A and Part B. A and B have the same need for make, model, year, but both will have different options once make is selected and flowing down from there.
I am not sure which is the best route to take. Can someone please explain it to me and by no means as I proficient in mySQL or PHP.
Please see this page and you will see exactly what I mean http://www.promotomelb.com/cat.php
I will be selling various parts and not all needing to have the dependent options.
For instance, you have Part A and Part B. A and B have the same need for make, model, year, but both will have different options once make is selected and flowing down from there.
I am not sure which is the best route to take. Can someone please explain it to me and by no means as I proficient in mySQL or PHP.
Please see this page and you will see exactly what I mean http://www.promotomelb.com/cat.php
I just checked the sit e you provided and I must say that this is indeed a very good one that would be of a very good use to make it dependent on the first one selected. I think that you could do it with PHP and mySQL also and as you are more proficient with those I would suggest you to go with them. it would be easier for you.
That site was just an example of what I need, by no means am I an expert and I would require someone to help with the mods. Perhaps to explain how to do it once and I should be able to pick it up from there.
Here is a mode a user on here did for me, it changes the image and also adds an optional description, the layout has also change slightly.
http://www.houseofspeed.com.au/hos_stor ... duct_id=50
Here is a mode a user on here did for me, it changes the image and also adds an optional description, the layout has also change slightly.
http://www.houseofspeed.com.au/hos_stor ... duct_id=50
This is pretty easy to do and is a popular 3-tiered dependent select box. But when talking about opencart options, typically it has to do with Product page options.cpsarros wrote: Please see this page and you will see exactly what I mean http://www.promotomelb.com/cat.php
I spent some time racking my brain lastweek on this and perhaps I am trying to do the impossible, but I'd like to have a dynamically expanding dependent option system. These 3-tiered examples everyone shows are very common and all of them use 3 separate tables and are limited to exactly 3 levels. More level can be added but require a new table for each level and that is not what I'm after. This is very limiting and specific. In a cart you need something that is dynamic and expandable for all users with different specifications.
So one store might have
Product: T-shirt
- Size: S/M/L
- Color: R/G/B
First choose size, then the color would be dependent on the size, there may only be 5 Red shirts in small, but 10 Red shirts in Medium, etc
Another store might have
Product: Lightbulb
- Model: 410/420/430
- Size: S/L
- Color: White/Blue
- Wattage: 15w/40w/60w
the 410 might only be in stock in small, white, 40w & 60w
the 420 might only be in stock in large, white, 15w
So we need a way for all people to use it dynamically.
I'm certain there must be some way to have a parent system, similar to the category system but for options. But I've not yet been able to grasp a database table structure which is the first step.
So if anyone has some developer knowledge and an idea on setting it up I am all ears
Hi Nicu,nicudica wrote:Hi!!
It on the way such of module Con!
(Triple Chained select)
I'm almost ready with thisas we talk.
Best regards and take care Con!
Nicu
Thank you! I look forward to it so I can get my store up and running

Regards
Con
You're not the only one!sokpet wrote:Hello
Somebody got the solution for dependant options???
I need it also....
I did think that Opencart was the free-ish solution to all my problems, so the lack of dependant options came as a big disappointment.
Don't get me wrong, I still think it's brilliant compared to what I am using at the moment (OS Commerce, which just fundamentally doesn't work properly) but having dependant options would make a couple of my product listings so much simpler and more elegant...

I don't see how dependent options will make anything simpler and more elegant. It is an absolute nightmare to manage on any cart I've ever seen it on, and that's not very many.aaamusements wrote:You're not the only one!sokpet wrote:Hello
Somebody got the solution for dependant options???
I need it also....
I did think that Opencart was the free-ish solution to all my problems, so the lack of dependant options came as a big disappointment.
Don't get me wrong, I still think it's brilliant compared to what I am using at the moment (OS Commerce, which just fundamentally doesn't work properly) but having dependant options would make a couple of my product listings so much simpler and more elegant...
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Simpler for the customer, which must surely be the priority.
I'm looking for dependent options, too. From reading the forums, I understand it's not really an option right now for a fully dynamic system, but I am wondering if there is a possibility to add one dependent option on the product.tpl that is part of the radio button option.
example of what I need:
Select One (this is the initial option)
• A (sort order "0" - selected by default - adds to cart no options required)
• B (sort order >"0" - if selected then all options are required)
Next Option
Next Option
etc.
I got the idea from this post http://forum.opencart.com/viewtopic.php?t=35652 about making a default option and thought it might be adaptable. Could this code be modified to include -and if radio other than lowest sort order is selected, then all options are required? I'm not a programmer, and don't know enough php to hack this out, but this would work for me right now and might help others for the time being.
This is the "default option" code posted by +nrb - I added it to my product.tpl and it works great. If anyone can add the dependent functionality that would be awesome.
P.S. running oc1.5.1.3 + Qphoria's "Option Price Update (Redux)" mod.
example of what I need:
Select One (this is the initial option)
• A (sort order "0" - selected by default - adds to cart no options required)
• B (sort order >"0" - if selected then all options are required)
Next Option
Next Option
etc.
I got the idea from this post http://forum.opencart.com/viewtopic.php?t=35652 about making a default option and thought it might be adaptable. Could this code be modified to include -and if radio other than lowest sort order is selected, then all options are required? I'm not a programmer, and don't know enough php to hack this out, but this would work for me right now and might help others for the time being.
This is the "default option" code posted by +nrb - I added it to my product.tpl and it works great. If anyone can add the dependent functionality that would be awesome.
P.S. running oc1.5.1.3 + Qphoria's "Option Price Update (Redux)" mod.
Code: Select all
<?php if ($option['type'] == 'radio') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<?php
$i = 0;
$len = count($option['option_value']);
foreach ($option['option_value'] as $option_value) {
if ($i == 0) {?>
<input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" checked/>
<label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</label>
<br />
<?php } else { ?>
<input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
<label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</label>
<br />
<?php }
$i++;
}?>
</div>
<br />
<?php } ?>
Who is online
Users browsing this forum: No registered users and 8 guests