Downloads
This module was created to allow attribute options to have quantities assigned to them at the add to cart stage. An example of how to use this module would be: a store, which allows you to create your own book. The book is the product and certain attribute options can be chosen, in this case: Binding Type, Cover Colour and Pages. We could add the attribute quantitiy field to the pages option and allow users to choose a type of page eg: white, cream, gold edged and input an amount for it.
This module is compatible with uc_aac, uc_dependant_attributes & uc_node_checkout.
Now Available!
Development
| Preview | Attachment | Size |
|---|---|---|
![]() | Sample Screenshot | 72.12 KB |
| UC Attribute Quantity (tar) | 34.5 KB |


Before I delve deep into the code, it might be easier for you to know: is there a way to specify the attr quantity programmatically? Passing the following array to uc_cart_add_item() gives warnings and doesn't actually calculate with the quantities (although it does appear in the cart in the product description):

