Results 1 to 6 of 6
  1. #1
    Join Date
    May 2008
    Posts
    13
    Plugin Contributions
    0

    Default Show "Units In Stock" for certain product only.

    Hi,

    I sell few types of product.
    However I want to display one of the product without "Units In Stock" notification.

    I've tried Catalog >> Product Type >> Edit Layout >> Show Quantity in Stock = '0'.. but this thing turn off quantity display for EVERY product.

    Then I tried Catalog >> Categories/Products >> Product Settings = 'No, Do not show Quantity Box'.... was given the following warning:

    Warning: Does not show Quantity Box, Default to Qty 1
    but the "units in stock" is still there.

    any idea how i can turn this off only for this particular product?

  2. #2
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Show "Units In Stock" for certain product only.

    Did you figure this out? I have the same question.

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Show "Units In Stock" for certain product only.

    When you want to do something like this for only one product, and there is no switch in admin product details to do it, use the custom page-specific stylesheet, as discussed in the readme file in your css folder.

    For example, to turn off, say, the Add To Cart button for product ID# 23 you create a stylesheet called p_23.css and put only this definition in it...
    #cartAdd { display: none; }

    So you just have to figure out the id or class of the part you want to remove, substitute that for #cartAdd in my example, and name the css file with the proper page id number, and upload that custom stylesheet to your css folder.

    Rob

  4. #4
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Show "Units In Stock" for certain product only.

    Quote Originally Posted by rstevenson View Post
    So you just have to figure out the id or class of the part you want to remove.

    Rob
    Thanks Rob. Now the question is, how do you figure out the id for things?

    After I posted last night, I did more digging and found that since the product I want to have this exception for is virtual, I can change the layout for virtual products. I did what the book said for "services", under catalog<product types<Product free shipping. Then I clicked on edit layout and changed "Show Quantity in Stock" to false, but the quantity still shows for that product, even though I have it as:
    "Product is Virtual:"--yes
    "Always Free Shipping:"--no

  5. #5
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Show "Units In Stock" for certain product only.

    Also, if I did it this way, doesn't that mean for each product that I don't want the stock qty to show, I'd have to make a style sheet for it? I'd like to set it up so that for each service (or virtual product) that I offer, it doesn't show.

  6. #6
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Show "Units In Stock" for certain product only.

    With some searching, I found a thread with a solution that worked for me. I'll post the link in case someone has the same situation.

 

 

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. v138a "Units in Stock" on Certain Cats Only?
    By KittieMD in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 22 Jan 2013, 07:41 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. Replies: 3
    Last Post: 2 Dec 2010, 09:52 AM
  5. How to remove "Units in Stock" in show product info page?
    By explorer1979 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 26 Nov 2008, 08: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