Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    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.

  2. #12
    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!

  3. #13
    Join Date
    Feb 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: How to disable stock quantity?

    Thanks so much for finding the "stock quantity" for us. really appreciate it.

    #########

    ネイル用品通販
    Professional Nail Supplies

  4. #14
    Join Date
    Aug 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: How to disable stock quantity?

    Lol, I found it on the Text Book and then forgot how to do it. But you just reminded me, thanks a bunch!

  5. #15
    Join Date
    Nov 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: How to disable stock quantity?

    Hi,
    I'm running zencart on 2 shopping carts and this is the first time I've run into this. When adding a new item, I checked it by acting as if I were going to purchase it by adding it to the cart. I get this message:

    Please update your order ...
    Product Name: 5 Gallon Value Package ... Quantity Units errors -
    You ordered a total of: 1 Units: 30

    Comes up in a yellow warning box. I've gone thru the admin section and changed everything I can find under Configuration and Catalog but it still keeps coming up. When I had quantity set to 0, I got a Sold Out icon. Are you saying I need to change the source code? If so, which file do I change?

    Thanks!

 

 
Page 2 of 2 FirstFirst 12

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