Provides 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).
- It supports uc_donation products.
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)
5.x-1.2 2008-11-14
- minor styling modification: http://www.ubercart.org/contrib/7395
5.x-1.3 2009-02-17
- added even/odd class to table rows
5.x-1.4 2009-02-18
- added even/odd class to table columns (td)
6.x-2.0 2009-03-04 funded by data-scribe (www.datascribe.biz)
- Initial 6.x release
- Added support for uc_donation
6.x-2.1 2009-03-26
- Fixed compatibility with changes in uc_donation
6.x-2.2 2009-06-09
- Fixed compatibility issue with ubercart 6.x-2.x-rc3.
| Attachment | Size |
|---|---|
| uc_multibuy-5.x-1.4.tar.gz | 9.63 KB |
| uc_multibuy-6.x-2.2.tar.gz | 9.47 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)?
This module is fabulous--Just what I needed
But of course fabulous is not *quite* good enough . . I've spent half a day trying to rearrange the elements in the tapir table . . How would I output my table as:
[quantity=0] [weight] [sell_price] [title] ?
Many thanks for this heretofore-only-dreamed-of functionality.
Quantity as checkbox
#5: Providing an option to make the quantity field into a checkbox is a great idea and would be fairly easy to implement. However I'm pressed for time so can't afford to do this unless someone wants to fund it!
Re: This module is fabulous--Just what I needed
#6: Is [quantity=0] [weight] [sell_price] [title] the order you'd like columns to appear in a multibuy table layout?
Update: And are you using 5.x or 6.x?
e-geek -- great module. Had some support(?) questions...
I don't know if I'm simply kludging a solution or not, but put in a support request here.
Your module has already resolved several issues, particularly when combined with complicated requirements and a mix of product attributes, so thank you.
Re: Re: This module is fabulous--Just what I needed
#6: Is [quantity=0] [weight] [sell_price] [title] the order you'd like columns to appear in a multibuy table layout?
I'm using D6 with UC2. I sell soap. I want my users to see:
col1 | col2 | col3 | col4
[ 0] 4 oz. bars, $5.95 each. Product Name
[ 0] 4 oz. bars, $5.95 each. Product Name
[ 0] 5 oz. bars, $6.95 each. Product Name
--------------------
[ADD ALL TO ORDER]
Re: Multi-buy
Is there any documentation for this contrib? A user guide?
A couple questions about multi-buy...
Great contribution! Seriously-this is a life saver!! (And in this economy, proving to be a job-saver as well!)
I have a couple quick questions:
1. I've created a donation product via uc_donation, but I haven't been able to figure out how to add the donation product to the multi-buy display. In the donation content type, there isn't an option for choosing a catalog. Any ideas?
2. I don't need the product title to link back to it's node - how would I go about disabling the link?
Thanks for the help!!
Re: A couple questions about multi-buy...
Hi Melanie,
I don't remember having any trouble getting donation products to display in the catalog, I don't remember but it might be necessary to manually add the donation content type to the list of content types the catalog vocabulary can use.
I don't think there's an option to make the title not a link, wouldn't take much to make this an option but I don't have time to look at it now unless someone wants to pay me I'm afraid as I'm very busy with other work (paid, university, NFP stuff, children, etc!)
[In reply to a PM asking about teasers not working]: Regarding product teasers, it's been so long since I looked at that that I can't remember how it works, but I seem to remember it might have been a bit of a fudge to get it to work with a custom teaser cck field rather than the one generated by Drupal. Are you using Drupal 5 or 6?
Glad to hear this module is so useful to you! Donations welcome
Compatibility fix for UC-6.x-2.x-rc3
The new version, 6.x-2.2, fixes a compatibility issue with UC-6.x-2.x-rc3. This updates multi-buy to work with the modified theme_uc_product_price method in rc3 and resolves the error message about invalid operands on line 85 of uc_price.inc when viewing "multi-buy list format" catalogue pages.
Patch to Multi-Buy -- 3-part
This patch does three things:
The changes are provided as individual patches in the Issue Tracker. The patch attached here is for convenience sake, putting all three together.
Patch to remove required attribute and amount
Here's a patch from our team member, Aaron Wolfe.
The patch removes the required setting for attributes (in our case, the description) and amount only on the multibuy form. It checks to make sure that both values exist for an item if either value does. This allows these values to remain required in other places like checkout and cart update where they are necessary.
Thanks,
LJ