CJDarling:
This is probably a really stupid question, but I really could use some help. I'm putting together a shopping cart for a candy store (https://www.candyland-sweets.com/index.php) using v2.0.1 which I downloaded and installed today. The lady wants to offer most candies, nuts, and fruits in half-pound and one-pound amounts. I looked at the link above (https://github.com/mc12345678/Stock_By_Attributes_Combined) but I simply couldn't make sense of what I'm supposed to do. I'm not fluent in php, so it pretty much looked like Sanskrit to me.
Could someone please tell me how to add different sizes/prices for the items in her cart? Thank you!!
Shop Suey:
You can do it with the built-in attributes options. No need for additional plugins.
Here's an example: https://www.roller-aus-blech.de/index.php?main_page=product_info&cPath=65_82_142&products_id=2906&language=en
You can set default values and individual prices (see the manufacturer attributes) for each attribute of course.
BTW You really should write a new post for your issue next time.
The plugin referenced supports controlling and tracking inventory of product sold dependent on attributes. E.g. if only have X half pound quantities, then helps to prevent overselling that many.
By general default, Zen Cart supports selling items that have attributes, but limits the inventory to however many purchases are made, independent of what data is represented in the attributes.
For the general purpose of attributes, may I suggest beginning at: https://docs.zen-cart.com/user/products/attributes_info/
Then following the link in the list section about adding attributes to products.
Maybe after that and learning more about attributes, perhaps the plugin may be helpful; however, I note that if product is sold by both the half pound and whole pound that the plugin considers those two types effectively as two different product quantities. E.g. Y half pound quantities and Z whole pound quantities.