If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Field available to enter product size/liquid measure, not product weight

Field available to enter product size/liquid measure, not product weight

Locked

Started by patmanami on 25 Oct 2010, 2:15 AM · Views: 1,500

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
25 Oct 2010, 2:15 AM
#1
patmanami avatar

patmanami

New Zenner

Join Date:
Jul 2010
Posts:
6
Plugin Contributions:
0

Field available to enter product size/liquid measure, not product weight

Is there an add-on or location for entering in a product's size and/or type of container, without just adding this information into the product description html? This would be separate from the product shipping weight.

For example, a product may have 4oz of liquid in the bottle, but the bottle itself weighs 10oz (which would get put into the Products Shipping Weight field); I'd like to have the ability to put the 4oz somewhere and pull it into the product page (et al) when needed.

This value doesn't necessarily need to be just an weight measurement, it could also have something like '1/2 oz pump' or other.

If this exists I apologize, the terms have been painful to search for.

Thanks much

25 Oct 2010, 2:30 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Field available to enter product size/liquid measure, not product weight

If these can be different sizes for the same product, or different containers for the same, then attributes are what you seek

https://www.zen-cart.com/tutorials/index.php?article=57

Zen-Venom Get Bitten

25 Oct 2010, 2:48 AM
#3
patmanami avatar

patmanami

New Zenner

Join Date:
Jul 2010
Posts:
6
Plugin Contributions:
0

Re: Field available to enter product size/liquid measure, not product weight

Hey kobra, thank you for the quick reply, but no that's not exactly what I'm looking for. I do have different option/attributes for a product that would have a different fragrance and/or color.

I don't see a database field for this in products, but it would likely be one similar to products_model, products_weight, perhaps 'products_measurement' for example. So, I may be suggesting a new field entirely. I guess I could always hijack the products_model field for this purpose, but I'd rather not if possible.

Of all of the fields that are possible to add for a product, I'm surprised that no one has had to, or wanted to, break this type of product based field out.

However, that all being said, if there is an easy way to create a new attribute for a product that would be an enter-able field for a newb/limited admin to enter in those values, please let me know how I should proceed.

25 Oct 2010, 3:02 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Field available to enter product size/liquid measure, not product weight

If to be visible to the customer and only as information one can sort order it to be first and only for display

The colored boxes at the bottom when assigning it - - first yellow one

Used For Display Purposes Only:

Zen-Venom Get Bitten

25 Oct 2010, 3:30 AM
#5
patmanami avatar

patmanami

New Zenner

Join Date:
Jul 2010
Posts:
6
Plugin Contributions:
0

Re: Field available to enter product size/liquid measure, not product weight

Hmm, that's a solution, but definitely not elegant, and would require that every single possible value for that option be entered, which could literally be 3 or 4 dozen. It would also be incredibly difficult for this option to be used by a non-technical person.

Also, since that would tie the attribute's display to the modules attributes template, I would have a very difficult time getting that single value to display where I want it (say next to a price in a specific part of the page); especially since a product can have more than one attribute associated with it, and that page is designed to loop and display them all.

I suppose I could write a new method to tie a few tables together (products_attributes, products_options*) and pull that value out so that I could add it anywhere on the page...but that could be painful.

Is this the best/only option?

25 Oct 2010, 3:33 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Field available to enter product size/liquid measure, not product weight

Zen-Venom Get Bitten

25 Oct 2010, 12:22 PM
#7
lat9 avatar

lat9

Administrator

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

Re: Field available to enter product size/liquid measure, not product weight

There's also been an on-going discussion of how to add new product fields: http://www.zen-cart.com/forum/showthread.php?t=120523

25 Oct 2010, 12:31 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Field available to enter product size/liquid measure, not product weight

There's also been an on-going discussion of how to add new product fields:
And when upgrading you will loose this customization and why a new product type is the recommended option
It can be based upon product general with one or more added records
It will not be a file(s) that are part of standard ZenCart and will not be over written later

Zen-Venom Get Bitten