Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Show Quantity in Stock

    Thanks for the replies mate, but unfortunately they don't do the trick for me.. Seems like we're running different versions since the closest I get to your description is:
    Code:
    <td class="main" align="center"><?php echo ((SHOW_PRODUCT_INFO_QUANTITY == '1') ? $products_quantity . TEXT_PRODUCT_QUANTITY : '&nbsp;'); ?></td>
    on line 128. I've tried modifying that line in approx. a million different ways, there have been a lot of errors and the closest I get is when there is no errorbut the "stock message" is totally gone as well..

    Running on 1.2.7..

  2. #12
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Show Quantity in Stock

    I found the command at line 203 in my old test install of v1.2.7 (downloaded in March 2006). I can't run it to test, but try this:

    [OLD:]
    <tr>
    <td >&nbsp;</td>
    <td class="main" align="center"><?php echo ((SHOW_PRODUCT_INFO_QUANTITY == '1') ? $products_quantity . TEXT_PRODUCT_QUANTITY : '&nbsp;'); ?></td>
    </tr>

    [CHANGE TO:]
    <tr>
    <td >&nbsp;</td>

    <td class="main" align="center">

    <?php echo ((SHOW_PRODUCT_INFO_QUANTITY == '1' and $products_quantity >0) ? $products_quantity . TEXT_PRODUCT_QUANTITY : '&nbsp;'); ?>

    <?php echo ((SHOW_PRODUCT_INFO_QUANTITY == '1' and $products_quantity <=0) ? TEXT_PRODUCT_O_O_S : '&nbsp;'); ?>

    </td>

    </tr>



    * Add a new line in /includes/languages/english/your_template/product_info.php:

    define ('TEXT_PRODUCT_O_O_S', 'Your OOS message');


    Let me know how it works - there are a couple of possible tweaks I can think of if it doesn't work this way.

  3. #13
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Show Quantity in Stock

    Thank you soooo much for putting in some effort in helping out!
    It did the trick!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Cant turn off Show Quantity in Stock
    By gunnvidr in forum General Questions
    Replies: 2
    Last Post: 10 May 2010, 11:43 AM
  2. Show stock quantity at top level
    By wyzman in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 10 Apr 2008, 05:00 PM
  3. Show Images for quantity stock
    By gibsonshop in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Sep 2007, 09:31 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