If this is your first visit, check our documentation. To post, register or login.

Qty box per attribute?

Started by cunningstunt2 on 12 Oct 2023, 11:14 AM · Views: 1,583

Results 1 to 6 of 6
12 Oct 2023, 11:14 AM
#1
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Qty box per attribute?

Hi Guys and Gals

Does anyone know if there is an easy way to have a quantity box next to each attribute instead of just one qty box after the attributes section??

I am working on a site that is used for trade customers to quickly place orders and we would like to make the process as streamlined as possible to make things easy for the customer, currently I have a lot of products which have attributes for variations in pack sizes and colours, etc and my attributes section appears like this

Attachment 20404

What I would like to do if it is possible is have a quantity box next to each attribute so the customer can quickly select how many of each attribute to add to cart.

The site in question is using ZC 1.5.6c

Thanks

Jon

12 Oct 2023, 11:29 AM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Qty box per attribute?

CunningStunt2:

Hi Guys and Gals

Does anyone know if there is an easy way to have a quantity box next to each attribute instead of just one qty box after the attributes section??

I am working on a site that is used for trade customers to quickly place orders and we would like to make the process as streamlined as possible to make things easy for the customer, currently I have a lot of products which have attributes for variations in pack sizes and colours, etc and my attributes section appears like this

Attachment 20404

What I would like to do if it is possible is have a quantity box next to each attribute so the customer can quickly select how many of each attribute to add to cart.

The site in question is using ZC 1.5.6c

Thanks

Jon

There is no plugin that I am aware of for this. Maybe a stock by attribute mod? Lat has one I believe

12 Oct 2023, 11:50 AM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Qty box per attribute?

I'm not aware of anything for Zen Cart 1.5.6.

13 Oct 2023, 4:16 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Qty box per attribute?

I haven't fiddled with it in quite a while, but the program product attributes grid supports what it is I believe you seek: https://www.zen-cart.com/downloads.php?do=file&id=618

I haven't seen requests to update it, though would say that most likely in more recent zencart versions there would be no edited edited file other than the css file.

Interfaces with stock by attributes (free version).

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

13 Oct 2023, 9:15 AM
#5
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Qty box per attribute?

I might have to do a little tweaking with the layout, but yes, that seems to be exactly what I was looking for.
Thank you so much.

Attachment 20405

14 Oct 2023, 3:19 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Qty box per attribute?

CunningStunt2:

I might have to do a little tweaking with the layout, but yes, that seems to be exactly what I was looking for.
Thank you so much.

Attachment 20405

Good to know. BTW, I took a look at the attributes.php file in that package and it appears to me that there are no changes made specific to the module. The included changes appear to only be associated with stock by attributes.

Understanding that using zencart v1.5.6, if not using Stock By Attributes, then could use the default attributes.php file instead of the one modified here.

As of ZC 1.5.7, there is no longer an attributes.php modification needed as the combination of the "core" file and how Stock By Attributes has been written doesn't require a modification of the file.

Also, I'm not (yet) 100% sure how php 8.x compatible the other code is, but in most cases I use very little "unusual" code. Complex maybe but I believe I've stuck to standards.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...