Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    1
    Plugin Contributions
    0

    Default 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..?..

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...

    PHP Code:
    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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Need to Offer Quantity Discount Depending on Total Cart Quantity
    By ikernbecauseicare in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 3 Feb 2011, 01:26 AM
  2. Linkpoint error: SGS-002301: Charge total must be the sum of subtotal...
    By largomike1 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 16 Dec 2009, 03:50 AM
  3. Total Number of Items in Cart must be a MULTIPLE of a stated value before checkout
    By schoolboy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Jun 2009, 05:36 PM
  4. Quantity Total in Shopping Cart Sidebox with Quantity Discount Contribution
    By maineiac13 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 14 Oct 2008, 08:40 PM
  5. Quantity of total products in cart?
    By ecobebe in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Aug 2007, 05:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg