Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    East Lothian, Scotland
    Posts
    4
    Plugin Contributions
    0

    Default Display Stock Quantity at Checkout

    Hi Can I have the shopping cart display how many of a item are in stock. I dont want to show how many of a item I have in stock till checking out so have turned it of on product page but if a customer wants to buy more than I have I want them then to know how many they can buy rather than have to guess how many there is. Hope that makes sense.

    I have looked through this forum for ages to see if this has been answered, but if I have missed it I am sorry.

    Zen cart version 1.3.9d installed

    Thanks Elaine

  2. #2
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,954
    Plugin Contributions
    3

    Default Re: Display Stock Quantity at Checkout

    This doesn't make sense. If I get as far as checkout - only to discover that I can't actually buy what I thought I was buying, I'd get quite annoyed and probably abandon the site.

    Do what will please your customers - and as far as I can make out, that would be to tell them what's in stock BEFORE they go through the process of cart and checkout.

    Besides... the programming for this is contradictory, and would probably involve a fair number of conditional statements in order for it to function.
    Our latest project is Pet Tags.

  3. #3
    Join Date
    Jan 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Display Stock Quantity at Checkout

    Elaine,

    have you figured it out? I am having the same issue. I am testing an update to 1.39d (now using 1.38.)

    In 1.38, the shopping cart reveals the available quantity of products when more than available have been added to cart. This does not work anymore in 1.39d. When moving the missing code to 1.39d, it only shows zero, despite the availble stock.

    The missing code in 1.39d on template/my template/templates/tpl_shopping_cart_default.php on line 87-93


    <?php if ((STOCK_SHOW_LOW_IN_CART == 'true') && $product['flagStockCheck']) {
    echo '<span class="alert bold">';
    echo PWA_STOCK_AVAILABLE;
    echo ((isset($product['stockAvailable'])) ? $product['stockAvailable']0);
    echo '</span>';
    }
    ?>

    My guess is that the zero after ['stockAvailable'] on line 90 above should be replaced by some code to make it work again.
    Anyone can help out?

    Thanks, Ronald

  4. #4
    Join Date
    Jan 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Display Stock Quantity at Checkout

    Just found this thread, just might be the answer.

    http://www.zen-cart.com/forum/showth...ighlight=stock

 

 

Similar Threads

  1. quantity box to display 1 instead of blank -stock by attribs
    By aruleal in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Nov 2008, 01:41 PM
  2. Quantity in stock only on checkout (if not enough)
    By twdhosting in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 29 Oct 2008, 11:26 PM
  3. Manufactures pages: display products only if in stock (quantity =1+)
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Oct 2008, 09:52 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
  •