Community Forums

[RELEASED] Dependent Options

IMPROVE VISIBILITY! LIST YOUR COMMERCIAL MOD IN THE
OPENCART EXTENSION STORE!

[RELEASED] Dependent Options

Postby rph » Thu Mar 01, 2012 1:03 am

Also called conditional options or chained selects, Dependent Options allows you to control which option values are displayed for a product based on those selected in a "parent" option. This decreases complexity for your customers and helps keep down the total number of option values in your store.

dependent_options_example.jpg
dependent_options_example.jpg (81.18 KiB) Viewed 7327 times


parent_child.png
parent_child.png (15.42 KiB) Viewed 7327 times

Demo
Check out the online demo at:
Store: options-demo.opencarthelp.com
Admin: options-demo.opencarthelp.com/admin (user/password: demo)

Requirements
-OpenCart 1.5.1.3 and later
-VQMod 2.1.5 (http://vqmod.com)
-Chained Selects jQuery Plugin (included with download; http://www.appelsiini.net/2010/jquery-chained-selects)

PURCHASE NOW

Please Note
Dependent Options works on Select-type options only! It does not work on Image, Radio, Checkbox or Input, File, and Date-type options. All options (e.g. Size, Color) for a product will be displayed to customers. Only option values (e.g. Large, Black) will be hidden or shown depending on customer choice.

Stores with greater than 500 total option values may see slowdowns when adding an option value row in the Admin product form depending on your computer speed and total number of option values. This is due to javascript having to dynamically create large blocks of HTML and does not effect server or store speed. Please ask if you have any questions on these limitations.

Dependent Options is a VQMod script. It can be quickly enabled or disabled at any time without interrupting store functionality.

If you have any questions on whether Dependent Options is right for your store please ask.

FREQUENTLY ASKED QUESTIONS

Can I track stock levels?
Dependent Options uses the standard OpenCart options stock method which means options quantities are subtracted individually rather than cumulatively. For instance, if you were to order a small black t-shirt and a large black t-shirt the cart would subtract 1 from "small", 1 from "large", and 2 from the "black".

A way to work around this is to create an absolutely unique option value at the end of an option chain for each possible combination. For instance, you would replace "black" with "black (small)" and "black (large)". The disadvante to this is it can get very complicated and greatly increase the number of options you have to manage but it will let you control stock levels.

Why can't I have an option more than once?
It causes potential errors with option chains. If a duplicate option was ever used as a parent Dependent Options wouldn't know which one to use.

Why doesn't Dependent Options work with other types of options?
Dependent Options uses the Chained Selects jQuery plugin which is limited to select-type (i.e. dropdown) options only.

Why are there advisory limits on the number of options Dependent Options can handle in Admin?
The Chained Selects jQuery plugin works by having a set of all possible options for a dropdown then showing or hiding them based on user input. This means the number of options your browser is working with is:

Total number of select-type option value for the store * Total number of select-type option values for the product

You'll usually start to see slowdowns when the figure exceeds 10,000 (500 possible option values in the store * 20 product option values being used) though this figure can vary. I've experimented with using the remove version of Chained Selects but it has unfortunately proven to be too slow updating for practical use when many options are used.

Will Dependent Options work with [third-party mod]?
Unfortunately there is no way to know without installing both. Generally speaking if a mod modifies product options using jQuery (such as image switching or price updating) there are likely to be conflicts and it should be considered NOT compatible.

Does Dependent Options work with Mijoshop / Aceshop?
AceShop and MijoShop should not be considered equivalent to OpenCart. They are a Joomla-OpenCart merge which may or may not work with mods designed for OpenCart standard. I've made changes to the script loading method in Dependent Options 1.1.7 which may make it compatible with AceShop / MijoShop. This is untested and both platforms remain officially unsupported by Dependent Options.

Is Shoppica supported?
Dependent Options v1.1.6 is the end of life for official Shoppica support. While the code remains as of Dependent Options 1.1.7b, commercial support will be required for any issues that occur and future versions of Dependent Options will no longer include free support for highly non-standard templates. For more info on the subject see: http://forum.opencart.com/viewtopic.php?f=20&t=86401

DEPENDENT OPTIONS 2.0

I'm currently working on the next version of Dependent Options as time permits. Its goal is to work around many of the above limitations. Unfortunately I do not have an ETA as this is complex work with many starts and stops between other projects. Below is a screenshot of preliminary work:

dependent_options_v2.png
dependent_options_v2.png (33.54 KiB) Viewed 1043 times
Last edited by rph on Mon Mar 26, 2012 9:35 pm, edited 4 times in total.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby Lisaweb » Thu Mar 01, 2012 2:04 am

Vry Nice! Want to use it. Do you happen to know whether this product is compatible with Options Boost by Qphoria?
Using OC v1.5.4.1 with Evisu Theme
User avatar
Lisaweb
 
Posts: 123
Joined: Tue Dec 06, 2011 4:01 pm

Re: [RELEASED] Dependent Options

Postby rph » Thu Mar 01, 2012 2:23 am

Lisaweb wrote:Do you happen to know whether this product is compatible with Options Boost by Qphoria?

Not yet.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby rph » Fri Mar 02, 2012 7:07 am

I've just released a small update with v1.0.1. It adds slightly improved compatibility with third-party mods in Admin.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby rph » Thu Mar 08, 2012 12:36 am

Dependent Options v1.1.0 is released. It includes a bug fix for new product option rows not properly saving and compatibility with OpenCart 1.5.2.x. I've also started working on making Dependent Options compatible with Qphoria's Option Boost/Option Price Update Redux extensions but I don't have an ETA on when it might be done.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby Lisaweb » Thu Mar 08, 2012 12:40 am

Awesome! Please keep us posted. As soon as it is compatible with Option Boost, I am snatching this one up! :-)

rph wrote:Dependent Options v1.1.0 is released. It includes a bug fix for new product option rows not properly saving and compatibility with OpenCart 1.5.2.x. I've also started working on making Dependent Options compatible with Qphoria's Option Boost/Option Price Update Redux extensions but I don't have an ETA on when it might be done.
Using OC v1.5.4.1 with Evisu Theme
User avatar
Lisaweb
 
Posts: 123
Joined: Tue Dec 06, 2011 4:01 pm

Re: [RELEASED] Dependent Options

Postby arch72 » Sun Mar 11, 2012 7:13 pm

hi,



Lisaweb wrote:Awesome! Please keep us posted. As soon as it is compatible with Option Boost, I am snatching this one up! :-)

love this extension, want to buy in now, would do so if i could work with Options Boost

rph wrote:Dependent Options v1.1.0 is released. It includes a bug fix for new product option rows not properly saving and compatibility with OpenCart 1.5.2.x. I've also started working on making Dependent Options compatible with Qphoria's Option Boost/Option Price Update Redux extensions but I don't have an ETA on when it might be done.


am kinda stuck because i also MUST have the openbay ebay module which requires it's own option openstock to work.

any way i could manually blend two/three together,
ideally use Dependent options instead of openstock for openbaypro?
that would be dream ticket .

any advice/help greatly appreciated

really need help don't want to buy all and find none are compatable happy to buy all three if i know could get them all to work, could do manually myself if possiable with advice/guidance.

thanks
arch72
 
Posts: 39
Joined: Fri Jul 30, 2010 11:00 pm

Re: [RELEASED] Dependent Options

Postby rph » Sun Mar 11, 2012 7:18 pm

I already responded twice in the Extension store comments arch. Asking a third time isn't going to change the answer.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby rph » Wed Mar 14, 2012 4:40 am

An Options Boost compatible version of Dependent Options has been released!
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby Lisaweb » Wed Mar 14, 2012 5:21 am

Yay! I have a couple of site issues I need to wrap up first, but after that I will be purhasing! Thanks very much! :-)
Using OC v1.5.4.1 with Evisu Theme
User avatar
Lisaweb
 
Posts: 123
Joined: Tue Dec 06, 2011 4:01 pm

Re: [RELEASED] Dependent Options

Postby scottincham » Sat Mar 24, 2012 9:08 pm

Hi rph

Do you have any update on the compatibility with:

"Option Price Update (Redux)"

I've set your product up on my site and it works great, but the "Option Price Update" gets confused and presents the wrong prices as I select from the different menu options.

I'm hoping your compatibility work will resolve this.

Great module by the way!

Kind regards,
Scott
User avatar
scottincham
 
Posts: 7
Joined: Wed Jan 18, 2012 11:09 am
Location: United Kingdom

Re: [RELEASED] Dependent Options

Postby rph » Sat Mar 24, 2012 10:22 pm

Not yet. Let me check with Q about getting this done.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby scottincham » Sat Mar 24, 2012 10:31 pm

Many thanks, looking forward to hearing back.
User avatar
scottincham
 
Posts: 7
Joined: Wed Jan 18, 2012 11:09 am
Location: United Kingdom

Re: [RELEASED] Dependent Options

Postby rph » Mon Mar 26, 2012 9:32 pm

Dependent Options 1.1.2 has been released which adds compatibility with Option Price Update Redux.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby BruceT » Tue Apr 03, 2012 10:44 pm

Hey guys,

Opencart Version 1.5.2.1

VQmod version 2.1.6

Am getting this error in admin when editing options (Catalogue > Options > Any Option) just below the sort order field.

Notice: Undefined variable: parent_option_values in /home/shedsnst/public_html/vqmod/vqcache/vq2-admin_view_template_catalog_option_form.tpl on line 100Warning: Invalid argument supplied for foreach() in /home/shedsnst/public_html/vqmod/vqcache/vq2-admin_view_template_catalog_option_form.tpl on line 100

(VQmod is actually installed in admin this time heh)

The parent option appears in the products page.

Also the error "Undefined index..." is appearing on the drop down menus on the products page.

http://shedsnstuff.com.au/index.php?rou ... duct_id=52

Any ideas?
BruceT
 
Posts: 3
Joined: Mon Apr 02, 2012 5:03 pm

Re: [RELEASED] Dependent Options

Postby rph » Tue Apr 03, 2012 10:51 pm

Looks like there's an issue with the changes being made to the product controller. Send FTP login credentials to the support email listed in the readme file and I'll take a look.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: [RELEASED] Dependent Options

Postby BruceT » Tue Apr 03, 2012 11:01 pm

Sent. Thanks Ryan!
BruceT
 
Posts: 3
Joined: Mon Apr 02, 2012 5:03 pm

Re: [RELEASED] Dependent Options

Postby BruceT » Wed Apr 04, 2012 12:33 am

Just a note to say many thanks to Ryan for his help. Great product and and great service!

Sincerely,

Bruce
BruceT
 
Posts: 3
Joined: Mon Apr 02, 2012 5:03 pm

Re: [RELEASED] Dependent Options

Postby DSGI » Fri Apr 06, 2012 12:08 am

RPH -

Will you be making dependent Options work for Image options as well as drop down (select) options? I really need this functionality with Image Options.

thanks!

DSGI
DSGI
 
Posts: 72
Joined: Wed Feb 08, 2012 9:28 am

Re: [RELEASED] Dependent Options

Postby rph » Fri Apr 06, 2012 12:16 am

Unfortunately image options use radio buttons rather than option selects so they're not compatible. It is compatible with Option Boost if you use that.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2722
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Next

Return to Commercial Contributions

Who is online

Users browsing this forum: labeshops and 8 guests

Hosted by Arvixe Web Hosting