Contrib type:
ModuleModeration:
Failed code reviewStatus:
Initial uploadSponsored by:
e-geekCompatibility:
Ubercart 1.0 RCLatest version:
1.0Provides two catalog display types that allow buying multiple items with one click. The catalog display types look the same as the default list table and grid formats, but without the add to cart buttons for individual products and with a button at the bottom of the catalog page instead. When the button is pressed all products with positive quantity field values will be added to the cart.
There are several things to note:
- This module requires this patch to work.
- It adds a quantity field for each product (just in the multi-buy catalog pages) regardless of whether it's usually a hidden default value).
- All quantity fields in the multi-buy catalog pages are set to 0 regardless of default quantities set for the products.
- The multi-buy list table and multi-buy grid formats use all the corresponding settings for the default list table and grid formats.
- It works with attributes (uc_extra_column for table list).
- Attribute option select fields that are required are set to their default option rather than the normal "Please select" option. This is so that standard Drupal form validation doesn't balk when an option isn't selected on products where the quantity is set to 0 (ie the customer doesn't want to purchase the product but the form validation requires an option be selected for it's required attribute(s)). It's not an elegant solution but there were time constraints... For this reason it's recommended to not have "required" attributes (the user still has to select an option anyway, and in this context it produces more sensible possible form values).
Changelog:
5.x-1.0 2008-05-23
- initial release
5.x-1.1 2008-09-03
- added option to display product teaser (multi-buy grid view only)
- removed incorrect functions from uc_multibuy.install (TR: www.ubercart.org/contrib/4937#comment-21995)
| Attachment | Size |
|---|---|
| uc_multibuy-5.x-1.1.tar.gz | 9.43 KB |



Re: Multi-buy
The uc_multibuy.install file should be deleted from the tarball - it contains routesearch_install() and routesearch_uninstall(), which aren't part of this module.
Hi there, Firstly thanks for
Hi there,
Firstly thanks for a great module - invaluable for what I'm doing.
With the release of Ubercart 5.x-1.3, your module doesn't work anymore, even when reapplying the patch.
In the new version of Ubercart, the Catalog display type is missing, and a "View Grid" checkbox has been introduced.
If you get round to adapting your module, that would be great!
Thanks...
Hi Dubs, I've got it working
Hi Dubs,
I've got it working on 1.3, but I think I manually applied the patch (because I'm using several other patches as well). There are instructions for manually applying patches on drupal.org. If you patch it successfully (on clean uc_catalog.module v1.3 code) could you generate and post an updated patch here?
Patch
Hi Oliver,
I've got it working too - I did not apply the patch correctly last time (using GNU32 tools) but it's fine now!
Thanks again, and here is the uc_catalog file for 1.3.
Dubs
Hey, Great module. Works
Hey,
Great module. Works great with the patch. I was wondering is there anyway to make the quantity field into a checkbox (so customers can only purchase one of each product)?