Results 1 to 10 of 46

Hybrid View

  1. #1
    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!

  2. #2
    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

  3. #3
    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!

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

    Default Re: Cart Update checking qty

    how do I do that ?

  5. #5
    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!

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

    Default Re: Cart Update checking qty

    Got it, I think :-)
    Still errors.

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

    Default Re: Cart Update checking qty

    Sounds like you have supplied invalid master_categories_id ...

    The master_categories_id is the immediate categories_id that the Product belongs to ...

    As to the error, check that you have customize the correct file and that it has properly loaded to the server ... sounds like it could be missing ...

    Also, look in the directoru:
    /cache

    Do you have debug logs in there? If so, what do they say?
    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. 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