Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Sub Attributes on Zen Cart
Old 04-18-2008, 12:56 PM Sub Attributes on Zen Cart
Experienced Talker

Posts: 31
Name: Eduardo Soledad
Location: Triycycle Capital of the World
Trades: 0
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
 
 
Register now for full access!
Old 04-18-2008, 07:26 PM Re: Sub Attributes on Zen Cart
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
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 |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-18-2008, 10:02 PM Re: Sub Attributes on Zen Cart
Experienced Talker

Posts: 31
Name: Eduardo Soledad
Location: Triycycle Capital of the World
Trades: 0
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, 07:09 PM Re: Sub Attributes on Zen Cart
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
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 |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-20-2008, 11:57 PM Re: Sub Attributes on Zen Cart
Experienced Talker

Posts: 31
Name: Eduardo Soledad
Location: Triycycle Capital of the World
Trades: 0
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, 06:19 PM Re: Sub Attributes on Zen Cart
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
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 |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Sub Attributes on Zen Cart
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.17629 seconds with 12 queries