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