Thread: products

Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2010
    Posts
    109
    Plugin Contributions
    0

    Default products

    OK I am trying to help my friends put this is the way she wants. I have the store ok , just the way she wants the sales. :

    They are selling "bundles" of chocolate. there are 4 different bundles to chose from. They want to have it set to where they HAVE to buy 2 bundles at a time. But they want them to be able to mix n match their bundle choices. Which means I just cant change the minimum quantity to 2 on a particular bundle.

    For example:
    1 fruit bundle , 1 nut bundle. But they HAVE TO BUY 2 bundles at a time.

    HELP!!!!

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

    Default Re: products

    Are there just the 4 Products?
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Sep 2010
    Posts
    109
    Plugin Contributions
    0

    Default Re: products

    no, are many others.

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

    Default Re: products

    Well ... you might be able to adapt the Minimum Order add on to check the cart and if 1 if the Products is in the cart then it checks how many of the 4 Products are in the cart and if less than 4 it takes the user back to the shopping cart with a message that there is a minimum of 2 that has to be purchased ...
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Sep 2010
    Posts
    109
    Plugin Contributions
    0

    Default Re: products

    please explain how to do that?

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

    Default Re: products

    You would need to download the add on on see if you can customize it for your needs ...

    You can use the function:
    $chk_products_count = $_SESSION['cart']->get_quantity($products_id);

    where $products_id is the products_id you want to check ...

    Something like this can count how many for products_id 10 and 12 are in the cart:
    Code:
      $chk_product_count = 0;
      $chk_product_count += $_SESSION['cart']->get_quantity(12);
      $chk_product_count += $_SESSION['cart']->get_quantity(10);
      
    echo 'Products Count 10, 12: ' . $chk_product_count . '<br>';
    You could then use the value of $chk_product_count and if > 1 but less than 4, the person cannot checkout ...

    The add on is for a minimum amount but you can adapt it to be whatever you want ...
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Sep 2010
    Posts
    109
    Plugin Contributions
    0

    Default Re: products

    Quote Originally Posted by Ajeh View Post
    You would need to download the add on on see if you can customize it for your needs ...

    You can use the function:
    $chk_products_count = $_SESSION['cart']->get_quantity($products_id);

    where $products_id is the products_id you want to check ...

    Something like this can count how many for products_id 10 and 12 are in the cart:
    Code:
      $chk_product_count = 0;
      $chk_product_count += $_SESSION['cart']->get_quantity(12);
      $chk_product_count += $_SESSION['cart']->get_quantity(10);
      
    echo 'Products Count 10, 12: ' . $chk_product_count . '<br>';
    You could then use the value of $chk_product_count and if > 1 but less than 4, the person cannot checkout ...

    The add on is for a minimum amount but you can adapt it to be whatever you want ...

    in what page should I put this code?

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

    Default Re: products

    Looking at the add on, I would say you would need to customize the code in:
    /includes/classes/observers/config.minimum_order_amount.php

    and build your counts into there, rather than use the amount that it is currently calculating ...

    Without actually writing this code, I really cannot say if there are more changes that would need to be done ...
    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: v1.5.5]
    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. Replies: 18
    Last Post: 10 Feb 2015, 04:34 PM
  2. Stop Disabled Products From Showing in New Products for Category?
    By way10c in forum Customization from the Admin
    Replies: 10
    Last Post: 14 Mar 2011, 03:52 AM
  3. Replies: 0
    Last Post: 1 Sep 2009, 11:26 PM
  4. Replies: 13
    Last Post: 4 Aug 2009, 02:04 AM
  5. Moving main featured products box above new products on homepage
    By keylesslocks in forum Customization from the Admin
    Replies: 1
    Last Post: 4 Oct 2007, 08:07 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR