Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46
  1. #1
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Cart Update checking qty

    just wondering how I could get this update done in the cart checkout process done by chance ?

    A minimum 6 items from caregory 130 OR if less than 6 then at least 1 other item from categories 129, 131, 132 must be added to checkout.


    The cart needs to show error if this category has less than the required amount or not added and will not allow the checkout to proceed until at least 6 from cat 130 are added or add at least 1 from the other IDs if the cart has anything from cat ID 130.


    Thx,
    Erick

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

    Default Re: Cart Update checking qty

    What happens if I only have 1 product from categories_id 129, 131 or 132 ...

    Are these the master_categories_id of the products?

    Are there other categories? If so, what happens if those are in the cart?
    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!

  3. #3
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Cart Update checking qty

    notthing happens now, I nned to have at least 6 items for checkout to proceed from this category ID 130 or at least 1 from the other IDs to make an order with any items from cat 130.

    yes, master cat IDs that hold the products.

    only worried about cat ID 130 as it is number 10 cans and it takes 6 to make an order OR if less than at least 1 other item from the other IDs for checkout to complete.

  4. #4
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Cart Update checking qty

    Can this be done here on the fourms ? as I will cancel the rentacoder bid..

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

    Default Re: Cart Update checking qty

    You can test this and see if it works ...

    add this code:
    Code:
    // bof: must have 6 130 or 1 129, 131, 132 if 1+ 130
      $valid_products_checkout = false;
      $chk_cat130 = $_SESSION['cart']->in_cart_check('master_categories_id','130');
      if ($chk_cat130 >= 6 || $chk_cat130 == 0) {
        $valid_products_checkout = true;
      } else {
        $chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','129');
        $chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','131');
        $chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','132');
        if ($chk_cat_other > 0) {
          $valid_products_checkout = true;
        }
        if ($valid_products_checkout == false) {
          $messageStack->add_session('header', 'Add more products', 'caution');
          zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
        }
      }
    // eof: must have 6 130 or 1 129, 131, 132 if 1+ 130
    above the line that reads:
    Code:
    // Stock Check
    in the files:
    /includes/modules/pages/checkout_shipping/header_php.php
    /includes/modules/pages/checkout_payment/header_php.php
    /includes/modules/pages/checkout_confirmation/header_php.php
    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!

  6. #6
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Cart Update checking qty

    HTTP 500 error
    try loging in with your account and add this item from ID 130
    https://www.efpsupply.com/food/harve...7-16-bean-soup

    then try to proceed with checkout

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

    Default Re: Cart Update checking qty

    Turn off your SEO/rewrites for a test if things work correctly ...
    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!

  8. #8
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Cart Update checking qty

    how do I do that ?

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

    Default Re: Cart Update checking qty

    No idea I did not set that up on your site ... you might see if in your Admin there is a setting for SEO under the Configuration menu ...
    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!

  10. #10
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Cart Update checking qty

    Got it, I think :-)
    Still errors.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Can't update QTY in shopping cart
    By dwdusharme in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 9 Jan 2009, 12:49 AM
  2. Automatic Cart Qty Update
    By cowspot in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Apr 2008, 02:47 AM
  3. Shopping Cart Qty Box doesn't update
    By littlegdesigns2004 in forum General Questions
    Replies: 0
    Last Post: 7 Nov 2007, 12:01 AM
  4. Shopping Cart: Update Qty Button Issue
    By webomat in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Nov 2006, 08:08 PM

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