Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    May 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Show Available Stock Level in Cart -- addon Not Functioning in 1.39d?

    its not the template that is faulty, the value of $product['flagStockCheck'] should be allocated in the order.php file, so i guess that file is faulty at some point. im using the merged fileset of ideashop.

  2. #12

    customer issue Re: Show Available Stock Level in Cart -- addon Not Functioning in 1.39d?

    I running 1.39h and I just installed SBA 1.4.13. Everything appears to be working except 2 issues. One is the previously mentioned item on this thread, which is that my available stock does not show in the shopping cart when the quantity exceeds the current stock level for that attribute. I have been comparing all the files 2 to3 times and I am pretty sure i merged it correctly.

    The other issue is more of a behavior problem. I have my setting set to not go to the shopping cart every time you add an item but if the first item added has insufficient stock they all show up as insufficient subsequently.

    Any help would be much appreciated.
    Cooler0918

    www.ahaccessories.com

  3. #13
    Join Date
    Dec 2005
    Posts
    64
    Plugin Contributions
    1

    Default Re: Show Available Stock Level in Cart -- addon Not Functioning in 1.39d?

    I found a solution to the problem of 'stock available' not showing on the shopping cart page when a customer places more items in the cart than are available. Using latest stock by attributes contrib with zen version 1.3.9h.

    In the file: /includes/modules/pages/shopping_cart/header_php.php

    Around line line 130 after:

    Code:
      if (STOCK_CHECK == 'true') {
        $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
        if ($flagStockCheck == true) {
          $flagAnyOutOfStock = true;
        }
    Insert this line:

    Code:
    $stockAvailable = zen_get_products_stock($products[$i]['id']);
    Hope that helps.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 8 Oct 2015, 11:40 PM
  2. Show available stock level in cart when less than order
    By Scott Benton in forum General Questions
    Replies: 8
    Last Post: 6 Aug 2013, 04:23 AM
  3. Show available stock level when less than order
    By Dunk in forum General Questions
    Replies: 4
    Last Post: 10 Feb 2009, 02:39 PM
  4. Do not want to show stock level
    By mredellis in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Jun 2007, 12:06 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