Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Allow quantity input for attributes

Allow quantity input for attributes

Locked

Views: 3,806

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
30 Jun 2006, 2:58 AM
#1
jonathan_pohl avatar

jonathan_pohl

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Allow quantity input for attributes

I was wondering if there was any way to set up the attributes display on the product info page so that attributes displayed with a checkbox followed by an input field for the quantity desired. I know that this probably goes a lot deeper than just changing the layout of tpl_modules_attributes. For a better idea of what I'm looking for, check out this site:

http://www.rebelshots.com/action_sports_gallery/index.php?pageId=100&id=193084&start=0&lightbox=&search_mode=

Thanks!

2 Jul 2006, 5:41 PM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Allow quantity input for attributes

I have someone else currently looking looking for this exact same thing. I'm looking at it this week, and I'll let you know if I make any progress with it.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

18 Jul 2006, 7:00 PM
#3
jonathan_pohl avatar

jonathan_pohl

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Allow quantity input for attributes

did you have any luck figuring things out?

thanks,
Jonathan

19 Jul 2006, 1:14 AM
#4
jonathan_pohl avatar

jonathan_pohl

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Allow quantity input for attributes

I posted earlier about creating an attribute listing like the one seen on this page:

http://www.rebelshots.com/surf_photo_gallery/index.php?pageId=100&id=69074&category=gallery/surfing/A_AZublics/0614P_W&start=0

but I didn't receive any responses. Since all of my products will have the same attributes, and I am new to php, I figured it might be easier to just add the attribute grid into tpl_product_info_display.php. I was wondering if anyone else has done the same or has some knowledge as to how product attributes are processed from the product display to the cart. I've looked at the form fields within the product display page, but didn't see how the cart was using these fields.

Thanks,
Jonathan

22 Jul 2006, 5:29 PM
#5
jonathan_pohl avatar

jonathan_pohl

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Allow quantity input for attributes

I was wondering if there was any way to set up the attributes display on the product info page so that attributes displayed with a checkbox followed by an input field for the quantity desired. I know that this probably goes a lot deeper than just changing the layout of tpl_modules_attributes. For a better idea of what I'm looking for, check out this site:

http://www.rebelshots.com/action_sports_gallery/index.php?pageId=100&id=193084&start=0&lightbox=&search_mode=

Thanks!

26 Jul 2006, 3:19 PM
#6
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Allow quantity input for attributes

At the moment, I have coded in an attribute quantity, so that the store admin can set product 1 has 4 x Attrib A, and 2 x Attrib B

I need to look at this a little further to get the user to select the amount, which is a little harder.

One way you could do it, would be to have the sizes as the products, under a final category which was the image name. Then you would need to alter the category display page, so that if it was a final level category, then it displayed the image, and the proudcts beneath. That way, if your customer chose 1 image, in 10 formats, they would infact add 10 items to a cart, rather than 1item, with 10 attributes.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

6 Aug 2006, 4:31 PM
#7
jonathan_pohl avatar

jonathan_pohl

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Allow quantity input for attributes

How would I go about checking if a category is a final level category?

9 Aug 2006, 4:27 PM
#8
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Allow quantity input for attributes

Sorry for the delay in response.

Final level categories in Zen 1.3 or above have the products in. I think they have removed the ability to place products and sub cats in the same category. Even so, just check ofr the presence of a product, and if it is there, then just show the 1 image, and the 6 separate products underneath.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

31 Aug 2006, 3:11 PM
#9
jonathan_pohl avatar

jonathan_pohl

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Allow quantity input for attributes

Finally got that done, now all that's left is changing the add to cart functionality, so that it doesn't "add" things to the cart, rather it sets the quantity in the cart equal to the quantity in the input boxes, but that's for another thread.

Thanks for the help Absolute

4 Sep 2006, 11:49 AM
#10
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Allow quantity input for attributes

I'm actually looking to do the same thing...

http://www.zen-cart.com/forum/showthread.php?p=256094

any luck on getting the qty boxes ?

Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca

For IT solutions how you want IT, when you want IT, TRUST IT.

4 Sep 2006, 2:26 PM
#11
jonathan_pohl avatar

jonathan_pohl

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Allow quantity input for attributes

I never found a way to assign seperate quantities to attributes, but I did make it work based on absolute's suggestions. Basically I modified the product listing page (I think its tpl_product_listing.php). Once you reach a category that has no more subcategories, only products, this is the page that displays. I then made it so that each of the attributes i wanted to sell were their own product, so I would have a category for a photograph and then each photo would have products like 5x7, 8x10, etc. I had to change the tabular_display under the common folder as well and modify the category_rows file. To check out the finished product go to:

sphotos.biz

Hope this helps