Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 70
  1. #21
    Join Date
    Feb 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: Show "in stock" instead of showing units in stock

    Thanks to all of you who did this made my site better

  2. #22
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: Show "in stock" instead of showing units in stock

    Hi,

    I want to know is there any way in place of In Stock or Out of Stock, we can add image?

    version 1.3.8a

    thanking you in advance

    ~ Time

  3. #23
    Join Date
    Jan 2009
    Location
    China
    Posts
    28
    Plugin Contributions
    0

    Default Re: Show "in stock" instead of showing units in stock

    Wow, finally find this useful post, it's also what I need. Thank you.

  4. #24

    Default Re: Show "in stock" instead of showing units in stock

    Hi,
    I'v found this thread very useful, but could I ask another question?

    regarding the "new products" and "all products" lists, how do I remove the "In Stock: 5" from these lists?

    I'v used the info in this thread to remove the stock information on the main product display, but I dont know how to remove it from the new and all products lists,

    could any one point me in the right direction as to what files to alter and what code to change?

    any help would be really appreciated

  5. #25

    Default Re: Show "in stock" instead of showing units in stock

    sorry, stupid question, my first post and I post a question I didnt need to ask,

    I apologise

    problem sorted

  6. #26
    Join Date
    May 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Show "in stock" instead of showing units in stock

    Hi,

    Could anyone help me with this functionality in the all products and new products page? I don't want to get rid of the quantity, I just want the same exact functionality as here where it shows in stock or out of stock. I believe one of the file is tpl_modules_products_new_listing but I have no idea what I need to change to get this same functionality as on the products info page. Thank you in advance for any help.

  7. #27
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    279
    Plugin Contributions
    3

    Default Re: Show "in stock" instead of showing units in stock

    How about a minor change to this by adding in a LOW stock warning. So in other words if inventory dropped below 10 units instead of saying instock it would say "Limited Availability"

    Hopefully this is just a bit more code any direction would be fantastic as usual.

  8. #28
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Show "in stock" instead of showing units in stock

    Can anyone verify if DrByte's mod in post #9 works on v1.38a As it was over 3 years ago LOL. I'm asking as I tried to apply it to my zen cart today but have so far failed Nothing seems to change at all?

    Thanks.

  9. #29
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Show "in stock" instead of showing units in stock

    Which files did you edit? Do you have any addons or override versions of those file in custom template folders which are maybe overruling your changes?
    .

    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.

  10. #30
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Show "in stock" instead of showing units in stock

    Heres what I've done:

    In File (override): includes/templates/mytemplate/templates/tpl_product_info_display.php

    Replaced
    <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>

    With
    <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . ($products_quantity > 0 ? TEXT_PRODUCT_IN_STOCK : TEXT_PRODUCT_NOT_IN_STOCK) . '</li>' : '') . "\n"; ?>



    In File (override): includes/languages/english/product_info.php

    Added
    define('TEXT_PRODUCT_IN_STOCK', 'In Stock');
    define('TEXT_PRODUCT_NOT_IN_STOCK', 'Out of Stock');

    Below
    define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');


    But still no change?

 

 
Page 3 of 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. To show "In stock" but not number of units?
    By Marre in forum Basic Configuration
    Replies: 6
    Last Post: 2 May 2011, 11:03 PM
  2. Show "Units In Stock" for certain product only.
    By laydiefa in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Nov 2008, 08:08 PM
  3. Scaling image instead of "units in stock?"
    By JHouse in forum General Questions
    Replies: 1
    Last Post: 12 May 2008, 06:48 PM
  4. How to NOT show "xxx units in stock"?
    By terrykiwi in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Apr 2008, 07:51 PM
  5. Display "Product is in Stock" instead of units?
    By Corys8646 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jul 2006, 01:20 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR