Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Turn Off Units in Stock line

    Hi folks I want to turn the units in stock line off a selection of products - how is this done please?

    Regards
    Jayson

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

    Default Re: Turn Off Units in Stock line

    You can turn it off for all products entered as a certain product type by going to Admin->Catalog->Product Types->Product General->Edit Layout ... "Show Quantity in Stock" and setting it to False.
    .

    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.

  3. #3
    Join Date
    May 2006
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Turn Off Units in Stock line

    Hi i have found what you are referring too many thanks. BUT is there a way that I can disable the quantity for a small selection of products that are listed as Product Type - Product General.

    90% of my products are ok to have their qty listed/displayed but 10 other 10% i do not want anyone to see my qty etc. How do I do this?
    Regards
    Jayson

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

    Default Re: Turn Off Units in Stock line

    There is nothing built-in to do that. You could always write code to make it happen.

    One approach could be to edit your tpl_product_info_display.php template and change the logic to exclude certain products. This is the code that does the display:
    Code:
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . '</li>'  : '') . "\n"; ?>
    You could write some code to reset the indicated flag to 0 if the product currently being displayed should not show quantity.
    .

    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.

  5. #5
    Join Date
    May 2006
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Turn Off Units in Stock line

    Thanks for the reply Dr Byte but at the moment my coding skills do not warrant this so I will just have to wait until someone else submits something along these lines or I get the chance to learn more about the coding required.
    Many thanks for all the replies :)

 

 

Similar Threads

  1. v138a Can I turn off display of Units in stock remaining?
    By beadsplease in forum Basic Configuration
    Replies: 6
    Last Post: 14 Aug 2013, 08:32 PM
  2. Units In Stock - How To Turn Off?
    By solotripper in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 25 Aug 2011, 11:42 PM
  3. Units In Stock - turn off?
    By Schanz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Aug 2008, 01:14 AM
  4. Can't shut off Units in Stock line
    By Gart in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Aug 2006, 01:15 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