Reply
Sub Attributes on Zen Cart
Old 04-18-2008, 11:56 AM Sub Attributes on Zen Cart
Average Talker

Posts: 27
Name: Eduardo Soledad
Location: Triycycle Capital of the World
Hello, I'm wondering if it's possible to setup Zencart to have sub attributes

basically what I need is

Category-->Product1-->Attribute1-->Attribute2

And I need these in a drop down list that populates the sub attribute;
for example to match the above layout

Mens-->Hoodies-->Colour-->Size


The reason I need it like this is because certain colours only have certain sizes available. Where as others might have all sizes available.
__________________
PHP Programmer :: Coder :: Programmer
ICQ: 450712681
draude is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-18-2008, 06:26 PM Re: Sub Attributes on Zen Cart
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
I have a client on Zen Cart and I don't think you can do what you exactly what you want. I wanted to do something similar awhile back and ended up using some PHP to check the one attribute before presenting the other. It was something like that. It was awhile ago when I first started working on the site so my memory is a little fuzzy.

You should be able to code it things so that the sub attribute drop down is populated based on the choice of the attribute drop down.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-18-2008, 09:02 PM Re: Sub Attributes on Zen Cart
Average Talker

Posts: 27
Name: Eduardo Soledad
Location: Triycycle Capital of the World
got any idea how? using ajax right? and do i need to install additional plugin before i make a code for it?
__________________
PHP Programmer :: Coder :: Programmer
ICQ: 450712681
draude is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 06:09 PM Re: Sub Attributes on Zen Cart
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
I don't think you'd need to install any additional plugins. Search for dynamic forms or dynamic drop downs or similar. Add Ajax to the search, but if that doesn't work just try javascript.

There's a lot of info and code out there for having one drop down change dynamically in response to another. Most every javascript book I've seen covers it too.

The basic idea would be when someone makes a selection in the first drop down (color) it would trigger a call to the database and populate the second drop down with the available sizes.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-20-2008, 10:57 PM Re: Sub Attributes on Zen Cart
Average Talker

Posts: 27
Name: Eduardo Soledad
Location: Triycycle Capital of the World
Last thing you know which exact template i need to change or add the sub attribute?

Thanks alot bud!!!
__________________
PHP Programmer :: Coder :: Programmer
ICQ: 450712681
draude is offline
Reply With Quote
View Public Profile
 
Old 04-21-2008, 05:19 PM Re: Sub Attributes on Zen Cart
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
That's a good question. Now that I think about it the site I was working on was osCommerce. Everything above should still generally be the same, but I'll have to guess a little at the file(s) to change.

There's a product_listing.php under includes/modules that looks like a good candidate. If that's not it look for other product_ files in some of the other folders.

Zen Cart has a support forum on its site which will probably have info on the different files.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Sub Attributes on Zen Cart
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14863 seconds with 13 queries