Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Total quantity must be dividable by 6.

Total quantity must be dividable by 6.

Locked

Views: 1,229

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
16 Sep 2006, 11:48 AM
#1
iain_nz avatar

iain_nz

New Zenner

Join Date:
Sep 2006
Posts:
1
Plugin Contributions:
0

Total quantity must be dividable by 6.

Hi,

I'm looking for a solution for a wine site I'm setting up, any help would be much apprecieted.

Basically, the minimum order through the site is 6 bottles of wine, if you hit checkout with only 4 bottles, you can't proceed.

The tricky part is a mix of say 2 merlots, 2 Sauv and 2 Pinot are also ok. So, Mixed quantities are required accross the entire 'shop'.

From what I gather, Zen has the ability to handle mixed quantities accross a single product's attributes, not a whole category of products.. right?

I've found an example order for that has pretty much the same rules as I require:

coulsonwinery.com/order_wine.htm

can anyone help me out on this one..?..

16 Sep 2006, 1:10 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Total quantity must be dividable by 6.

There is a minimum order add-on that might be able to be adapted to this ...

Otherwise, you could customize the checkout pages to prevent checkout unless this criteria is met ...

Follow the code for each of the /includes/pages/checkout_something/header_php.php files ...

if ($_SESSION['cart']->count_contents() <= 0) {
    zen_redirect(zen_href_link(FILENAME_TIME_OUT));
}

You can adapt the code here ...

You may wish to make it a function in case there are further criteria need later for future changes so you only need to change the code once vs all locations ...

This is not an override so you will need to save your files for future upgrades ...