Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    14
    Plugin Contributions
    0

    Default Negative Stock Levels

    I allow people to order items even when they are out of stock.

    The problem I am having is that people do not seem to notice the - sign in front of numbers when the QTY is below zero.

    "Well it shows you have 7 on hand why haven't your shipped"

    "Sorry, but we have -7 on hand"

    How can I change the font color on the qty to red when the qty<0?

    I know its just going to be a simple line if php code

    if(product_qty<)
    {
    //display red
    }
    else
    {
    //code as it is now
    }

    But I am not sure where to place it or the exact specifics

    Thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Negative Stock Levels

    You would need to alter the tpl_product_info_display.php and catch the value of:
    $products_quantity

    The line reads something like:
    PHP Code:
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' $products_quantity TEXT_PRODUCT_QUANTITY '</li>'  '') . "\n"?>
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. negative stock
    By dimar in forum General Questions
    Replies: 6
    Last Post: 3 Jul 2008, 08:44 PM
  2. allow negative stock or disregard stock level
    By chuender in forum General Questions
    Replies: 3
    Last Post: 28 Mar 2008, 07:05 AM
  3. Negative Stock Could Be Useful
    By Zinfandel in forum General Questions
    Replies: 1
    Last Post: 7 May 2007, 03:15 AM

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
  •