Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    5
    Plugin Contributions
    0

    Default stock options - levels

    Hi

    I have been searching the forum however I didn't find anything about my question.

    I want to put the following levels on the stock of my products:

    Normal Stock
    Low Stock
    Out of Stock

    How do I make it happen?

    Thanks in advance

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: stock options - levels

    a quick hack:

    /includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php
    around line 121 you have:
    Code:
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
    change to:
    Code:
    <?php $products_quantity_display = ($products_quantity > 0 ? ($products_quantity > 50 ? TEXT_IN_STOCK : TEXT_LOW_STOCK) : TEXT_OUT_OF_STOCK); ?>
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity_display . '</li>'  : '') . "\n"; ?>
    and then add definitions to your product_info.php language (override) file for:
    TEXT_IN_STOCK
    TEXT_LOW_STOCK
    TEXT_OUT_OF_STOCK
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Individual Stock Levels for Product Options
    By gadgetaccessorystore in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Jan 2011, 01:42 PM
  2. Product options and stock levels
    By femky in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 27 Dec 2009, 08:58 PM
  3. Please help me understand Stock Levels, Out of Stock, etc
    By ungarod in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 22 Feb 2008, 08:20 PM
  4. Options with individual stock levels
    By Kutuu in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 31 Dec 2007, 01:40 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