Results 1 to 10 of 25

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Location
    Sterling, PA 18463
    Posts
    5
    Plugin Contributions
    0

    Default Re: Out of Stock When Placing Order - IS Checking by Product and Attribute.

    Still adds it to the cart, but stops it at check out.

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

    Default Re: Out of Stock When Placing Order - IS Checking by Product and Attribute.

    That is all it does ... flag the products that cause the problem and not allow checkout until the quantity is fixed ...
    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
    Mar 2012
    Location
    Sterling, PA 18463
    Posts
    5
    Plugin Contributions
    0

    Default Re: Out of Stock When Placing Order - IS Checking by Product and Attribute.

    Thanks, You were quick to find a solution for the bug and fix it. It'll help a lot of people keep from selling products they don't have.

    Wish I was working so I could afford to send you a donut and coffee.

    Who do I send a request for a few more generic flat rate shipping modules ?

    One flat.php for usps flatrate boxs and packages aren't enough.
    I took flat.php and edited it and it worked fine, but wouldn't go past the select shipping page.

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

    Default Re: Out of Stock When Placing Order - IS Checking by Product and Attribute.

    You would have to post a new thread and what you are trying to do and perhaps the code that you are using to see why it is broken with details on how to you need it to work and maybe someone will look at it and try to help you ...

    Otherwise, you can look at the Recommended services for any that help write custom code for hire ...
    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!

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

    Default Re: Out of Stock When Placing Order - IS Checking by Product and Attribute.

    NOTE: these would be better checks on the extra stock check:

    Code:
    //        if ( (zen_get_products_stock($products[$i]['id']) - ($_SESSION['cart']->in_cart_mixed($products[$i]['id']) - $_SESSION['cart']->get_quantity($products[$i]['id']))) <= 0) {
              if ($_SESSION['cart']->in_cart_mixed($products[$i]['id']) > zen_get_products_stock($products[$i]['id'])) {
    Code:
    //      if ( (zen_get_products_stock($order->products[$i]['id']) - ($_SESSION['cart']->in_cart_mixed($order->products[$i]['id']) - $_SESSION['cart']->get_quantity($order->products[$i]['id']))) <= 0) {
          if ($_SESSION['cart']->in_cart_mixed($order->products[$i]['id']) > zen_get_products_stock($order->products[$i]['id'])) {
    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
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Out of Stock When Placing Order - IS Checking by Product and Attribute.

    I believe that the same issue applies to the quantity in cart feature on the product_info page. By which I mean that with two identical products, except for text attributes that differ, the quantity in cart is shown as 1. I am working on a 'far from clean' install so perhaps I am mistaken.

    I also wonder if corresponding changes need to be made to ipn_main_handler.php ? Sort of similar to the changes required by stock by attributes.

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

    Default Re: Out of Stock When Placing Order - IS Checking by Product and Attribute.

    Make sure that in the Configuration ... Stock ... you have turned on the Stock Check:
    Check stock level
    Check to see if sufficent stock is available
    true
    Subtract stock
    Subtract product in stock by product orders
    true
    Allow Checkout
    Allow customer to checkout even if there is insufficient stock
    false
    Make sure that on the Product you have set:
    Product Qty Min/Unit Mix: Yes
    Make sure that you made the extra stock check on the:
    /includes/modules/pages/shopping_cart/header_php.php
    /includes/modules/pages/checkout_shipping/header_php.php
    /includes/modules/pages/checkout_payment/header_php.php
    /includes/modules/pages/checkout_confirmation/header_php.php

    I am also assuming that you are using the current Zen Cart v1.5 ...

    from above ...
    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. Requiring some text (attribute) when placing order...
    By rebekah in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 12 Dec 2011, 09:11 AM
  2. Stock by Attribute setup and product has stock when added to card says out of stock
    By kwrosenzweig in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 9 Jun 2011, 06:18 PM
  3. error when checking out with stock by attribute mod
    By zoaconner in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 2 Feb 2010, 07:02 AM
  4. Replies: 4
    Last Post: 22 Jan 2010, 10:43 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