Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    10
    Plugin Contributions
    0

    Default Display "Product is in Stock" instead of units?

    Hello,
    I did some searching and not finding a solution to this...

    what I would like is it to not show how many units I have in stock but rather just show that it is in stock, but if the product is out of stock (less than 1) it will show different text, but still allow the customer to buy it.

    basically this:
    if quantity is more than 0 show Product in Stock ready to ship
    if quantity is less than 1 show, Product out of stock, will ship in 3-5 days

    is there an easy way to implement this? I don't really want people to know how deep my stock levels are.

    thanks!
    cory

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Display "Product is in Stock" instead of units?

    I am guessing you mean on the tpl_products_info_default.php

    You can copy that to your overrides directory ...

    Then customize the line for:
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Display "Product is in Stock" instead of units?

    I need the same function but I'm not really comfortable with editing the code. Can anyone give me a tip what i should edit the line to if i want to leave out the "units" but show the TEXT_PRODUCT_QUANTITY text.
    I would really appreciate the help.
    /Gustaf

 

 

Similar Threads

  1. Show "in stock" instead of showing units in stock
    By gustafr in forum Templates, Stylesheets, Page Layout
    Replies: 69
    Last Post: 7 Aug 2015, 04:26 AM
  2. Display - units amount purchased instead of units in stock
    By evok20 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Aug 2011, 05:15 PM
  3. How do I disable the "Units In Stock" display for each product?
    By Seanmyr in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 29 Mar 2011, 07:20 PM
  4. how do I remove "x Units in Stock" and "Write a Review"?
    By n_kip in forum General Questions
    Replies: 1
    Last Post: 11 Jun 2008, 05:47 PM
  5. Scaling image instead of "units in stock?"
    By JHouse in forum General Questions
    Replies: 1
    Last Post: 12 May 2008, 06:48 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