Zencart product attributes (OSCommerce Spinoff)

Hi guys,

I'm running up against a mean deadline with this website:

and I'm looking for some help with using zencart's product attributes (these may be the same as OSCommerce product attributes).

This company is a manufacturing company who produces its products in a variaty of colors, sized, materials, thicknesses etc. and so getting the attributes right can be tricky.

What I can't figure out is how I would set up this product:
"Sandell®'s pre-formed corners are available in: stainless steel - 26g, 28g; copper - 10oz, 12oz, 16oz, and 20oz"

What I need is something like a dropdown saying "What material" where you can choose either Stainless Steel or Copper.
Then after you select a material, you are only able to select the options that pertain to that specific material. Ex, if you choose stainless steel, you can only choose 26g, or 28g (10oz, 12oz, 16oz, and 20oz are not selectable), if you choose copper you can only choose 10oz, 12oz, 16oz, and 20oz (26g and 28g are not selectable).

Here is the new product page:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You haven't posted whether the select values have to be pulled from the database. Otherwise a single dropdown is adequate.

  <select name="material" id="material">
    <option value="null" selected="selected">-- What Material ? --</option>
    <option value="null">-- Stainless Steel --</option>
    <option value="ss-26">26g</option>
    <option value="ss-28">28g</option>
    <option value="null">-- Copper --</option>
    <option value="cu-10">10oz</option>
    <option value="cu-12">12oz</option>
    <option value="cu-16">16oz</option>
    <option value="cu20">20oz</option>

Javascript or server-side validation can check for 'null' value and return a warning to the user; else a switch:case can be used to redirect to the appropriate product detail page. If the latter is true - then the selected value can be concatenated to a redirected product detail URL.
blacksixAuthor Commented:
Yes the values have to be pulled from a database. I could do this easily if I had the option of writing the code myself, I'm pretty good with PHP etc., but I'm using the attributes manager built into zencart. Can this be done? Just looking for someone with zencart specific experience on this one (that's why its an easy question worth 500 pts, zencart is not exactly mainstream, but close).
blacksixAuthor Commented:
Thank you for the response though.
blacksixAuthor Commented:
Seems I have found the answer:

This has been referred to as "dependant attributes" in zencart.


It is not possible out of the box, but can be done with some modification to zencart as described in the post above.
Closed, 500 points refunded.
The Experts Exchange
Community Support Moderator of all Ages

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.