Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: How to disable stock quantity

    Quote Originally Posted by fshn2day View Post
    Found the answer! WooHoo!

    Go go under Product Types under the Catalog header and then click the "edit layout", You will see the line to change so the "In Stock:" quantity does not show.


    Bless you! I've been looking for that answer for 3 days lol

  2. #2
    Join Date
    Jul 2009
    Location
    Maryland
    Posts
    65
    Plugin Contributions
    0

    Default Re: How to disable stock quantity?

    I have some products I DO NOT want to display the quantity and other I DO.

    I figure out how to turn on/off the stock quantity, but it affects all products. Any suggetions?

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

    Default Re: How to disable stock quantity?

    What distinguishes the Products that should show the quantity from the Products that should not show the quantity?
    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!

  4. #4
    Join Date
    Jul 2009
    Location
    Maryland
    Posts
    65
    Plugin Contributions
    0

    Default Re: How to disable stock quantity?

    Quote Originally Posted by Ajeh View Post
    What distinguishes the Products that should show the quantity from the Products that should not show the quantity?
    H Ajeh,

    I have three categories, the one I don't want the quantity to show is the photograph category. What distinguuishes which should or not have quanitty? the photographs have attributes (print sizes) attached to them while the other categories don't. I am able to change layouts for the photograph specific category using css, but cannot figure out how to disable the quantity just for the photographs category?

    Any ideas?

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

    Default Re: How to disable stock quantity?

    Do these Products all belong to the same master_categories_id or do you mean the only Products with Attributes should not show the quantities?
    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!

  6. #6
    Join Date
    Jul 2009
    Location
    Maryland
    Posts
    65
    Plugin Contributions
    0

    Default Re: How to disable stock quantity?

    Quote Originally Posted by Ajeh View Post
    Do these Products all belong to the same master_categories_id or do you mean the only Products with Attributes should not show the quantities?
    Only products with attributes should not show the quantities.

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

    Default Re: How to disable stock quantity?

    You could use a function to see if there are attributes and if so, then do not display the stock:
    Code:
      function zen_has_product_attributes($products_id, $not_readonly = 'true') {
    Using that function on your templates and overrides such as:
    Code:
      <?php echo (($flag_show_product_info_quantity == 1 && !zen_has_product_attributes((int)$_GET['products_id'])) ? '<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!

 

 

Similar Threads

  1. How can I dispaly stock quantities only if quantity in stock is greater than zero?
    By Liamv in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Feb 2013, 12:39 AM

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