Post by cpsarros » Mon May 24, 2010 7:23 pm

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

New member

Posts

Joined
Fri May 14, 2010 3:55 pm

Post by jcybarns » Mon May 24, 2010 8:03 pm

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.

seo Key Biscayne


Newbie

Posts

Joined
Mon May 24, 2010 7:47 pm

Post by Xsecrets » Mon May 24, 2010 9:02 pm

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


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by cpsarros » Mon May 24, 2010 9:20 pm

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.
I will need the dependent options, not a site wide deal.

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.

New member

Posts

Joined
Fri May 14, 2010 3:55 pm

Post by cpsarros » Wed Aug 18, 2010 12:08 pm

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

New member

Posts

Joined
Fri May 14, 2010 3:55 pm

Post by andrathms » Thu Aug 26, 2010 5:28 pm

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.

fouts ventures


Newbie

Posts

Joined
Thu Aug 26, 2010 5:07 pm

Post by cpsarros » Thu Aug 26, 2010 5:43 pm

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

New member

Posts

Joined
Fri May 14, 2010 3:55 pm

Post by Qphoria » Thu Aug 26, 2010 10:05 pm

cpsarros wrote: Please see this page and you will see exactly what I mean http://www.promotomelb.com/cat.php
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.

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cpsarros » Fri Aug 27, 2010 3:45 am

Thanks for that reply Q.

If there is someone out there willing to make that mod to my OC install, please PM me.

New member

Posts

Joined
Fri May 14, 2010 3:55 pm

Post by nicudica » Sat Aug 28, 2010 4:58 am

Hi!!

It on the way such of module Con! :)
(Triple Chained select)

I'm almost ready with this ;) as we talk.

Best regards and take care Con!
Nicu

User avatar
Active Member

Posts

Joined
Wed Nov 11, 2009 9:20 pm
Location - Bucharest / Romania

Post by cpsarros » Sun Aug 29, 2010 7:52 pm

nicudica wrote:Hi!!

It on the way such of module Con! :)
(Triple Chained select)

I'm almost ready with this ;) as we talk.

Best regards and take care Con!
Nicu
Hi Nicu,

Thank you! I look forward to it so I can get my store up and running ;D

Regards
Con

New member

Posts

Joined
Fri May 14, 2010 3:55 pm

Post by sokpet » Mon May 09, 2011 2:36 pm

Hello

Somebody got the solution for dependant options???

I need it also....

Newbie

Posts

Joined
Sat Mar 12, 2011 7:59 pm

Post by aaamusements » Wed Oct 26, 2011 7:05 am

sokpet wrote:Hello

Somebody got the solution for dependant options???

I need it also....
You're not the only one!
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...
:(

Gamucci Electronic Cigarette Opencart Shop


New member

Posts

Joined
Fri Sep 23, 2011 4:14 am


Post by Xsecrets » Wed Oct 26, 2011 7:11 am

aaamusements wrote:
sokpet wrote:Hello

Somebody got the solution for dependant options???

I need it also....
You're not the only one!
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.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by aaamusements » Fri Oct 28, 2011 3:32 am

Simpler for the customer, which must surely be the priority.

Gamucci Electronic Cigarette Opencart Shop


New member

Posts

Joined
Fri Sep 23, 2011 4:14 am


Post by ensemble » Sun Oct 30, 2011 6:06 am

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.

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 } ?>

New member

Posts

Joined
Wed Oct 19, 2011 2:20 am
Who is online

Users browsing this forum: No registered users and 8 guests