We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

Selection dependent choices???


Porthiir
Resolved

Likes # 0

I need to be able to create a selection process for ordering that is dependent on the previous choices.

The site will be selling custom made pens, so first option is Style of pen, each style comes in various metal finishes (but not all styles come in all finishes), then after style & finish are chosen, wood type is avail, once again certain lighter colored woods will have a stain option (but obviously darker colors have no need of a stain).

What I would like to know is should I go with a drop-down menu theme or simply create a check-box type of selection process?

Either way it needs to be so that as soon as you make one selection, the following selection is specifically geared towards that selection & not just general.

Furthermore, as I am new to this I would also love to know how to code it into my site.

Like this post
LastChip

Likes # 0

The most common (and sensible) way to do something like this, is to create a back-end database (identifying all the types, styles and options) and then make the calls as the customer selects each component.

So for example, if your customer choose style b, they may only be able to see finishes k, m and s, Having chosen s, perhaps they can now only have colours a1, b4 and d7 and so on. It's complex, but the database is written in such a manner as to only provide the correct options. The web page would interact with the database via php.

It could possibly be done with a series of php forms, but that's a cumbersome way of doing it. For example, if you had 3 styles, with 3 finishes and 3 wood types, you straight away have 27 potential combinations. Now if you expand that to 3 stains, you've got 81 potential options! I know you said some combinations are not available, but it's still a lot on only 3 base products!

If you're bright enough, you could probably create a php or javascript script to achieve the same ends. But the problem with that is, if you change (or add to) the products, the scripts would have to be rewritten.

Either way, you need some specialist coding skills to achieve your goal.

How you present it on your page is personal choice, but probably a tick box type of presentation is preferable. One system I came across recently presented the options as images, and you simply clicked on the image - very nice and I suspect, very expensive!

Like this post
LastChip

Likes # 0

After I wrote the above (which still stands) I got more curious about your post and came across this:

Drop down javascript

As I said, there are disadvantages, but if you've only a few products, maybe it'll work for you.

Like this post  
Porthiir

Likes # 0

Thank you so very much for your advice, this will do perfectly.

Fortunately I only have 5 styles of pen to choose from.

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Best Christmas 2014 UK tech deals, Boxing Day 2014 UK tech deals & January sales 2015 UK tech...

IDG UK Sites

Chromebooks: ready for the prime time (but not for everybody)

IDG UK Sites

Hands-on with Sony's latest smartglasses

IDG UK Sites

The 13 most inspirational Tim Cook quotes