If this is your first visit, check our documentation. To post, register or login.

How to disable stock quantity?

Started by qwikstreet on 7 Jul 2007, 11:43 AM · Views: 7,760

Results 1 to 15 of 15
7 Jul 2007, 11:43 AM
#1
qwikstreet avatar

qwikstreet

New Zenner

Join Date:
May 2007
Posts:
8
Plugin Contributions:
0

Post #1 by qwikstreet

How can I disable the area where I list how many of a certain product. If I leave it blank it posts the Sold Out button. My stock varies and keeping track of it online will not be viable.

7 Jul 2007, 3:14 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,758
Plugin Contributions:
0

Post #2 by Kim

Perhaps a search of the forum or FAQs would answer a few of your questions? The e-Start Your Web Store book is a worthwhile investment too.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

7 Jul 2007, 5:39 PM
#3
fshn2day avatar

fshn2day

New Zenner

Join Date:
Apr 2005
Posts:
14
Plugin Contributions:
0

Post #3 by fshn2day

Kim:

Got the book and it does not say how to disable the "In Stock:" display. Also can not find any answer on the forum or tutorials. Any ideas on how we can get an answer on how to do this?

7 Jul 2007, 5:54 PM
#4
fshn2day avatar

fshn2day

New Zenner

Join Date:
Apr 2005
Posts:
14
Plugin Contributions:
0

Post #4 by fshn2day

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.

7 Jul 2007, 7:56 PM
#5
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

Post #5 by jund

You have a really neat looking site - And your Product descriptions (like a lot of others) is a very good description...
However, it is 'centered text' which makes it a bit ragged looking on both ends of each line. I am anal about text (and you do not have to be like me - smile)... but using your style sheet you can fix that to look correctly left-justified...

I found productListing-data in your style sheet. See below

.centeredContent, th, #cartEmptyText, #cartBoxGVButton, #cartBoxEmpty, #cartBoxVoucherBalance, #navCatTabsWrapper, #navEZPageNextPrev, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP, .center, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, .cartTotalsDisplay, #cartBoxGVBalance, .leftBoxHeading, .centerBoxHeading, .rightBoxHeading, .productListing-data, .accountQuantityDisplay, .ratingRow, label#textAreaReviews, #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .gvBal, .attribImg {

  • text-align: center;*
  • }

If you want to let the other data in the list remain centered and only have product listing left justified - perform the following:

cut productListing-data from where it is and paste it after the text-align: center; as shown below and change text-align from center to left as shown below:

.productListing-data {
text-align: left;
}

jund

19 Feb 2009, 4:27 AM
#6
daisesvoice avatar

daisesvoice

New Zenner

Join Date:
Feb 2009
Posts:
5
Plugin Contributions:
0

Post #6 by daisesvoice

fshn2day:

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

16 Sep 2009, 7:43 PM
#7
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Post #7 by je2009

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?

18 Sep 2009, 5:17 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

What distinguishes the Products that should show the quantity from the Products that should not show the quantity? :unsure:

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!

21 Sep 2009, 6:02 PM
#9
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Post #9 by je2009

Ajeh:

What distinguishes the Products that should show the quantity from the Products that should not show the quantity? :unsure:

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?

22 Sep 2009, 2:37 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #10 by ajeh

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!

22 Sep 2009, 4:33 AM
#11
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Post #11 by je2009

Ajeh:

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.

22 Sep 2009, 1:26 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #12 by ajeh

You could use a function to see if there are attributes and if so, then do not display the stock:

  function zen_has_product_attributes($products_id, $not_readonly = 'true') {

Using that function on your templates and overrides such as:

  <?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!

8 Aug 2011, 10:10 AM
#14
ryguylivinlife avatar

ryguylivinlife

New Zenner

Join Date:
Aug 2011
Posts:
6
Plugin Contributions:
0

Post #14 by ryguylivinlife

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

8 Aug 2011, 7:52 PM
#15
cmrsf1 avatar

cmrsf1

New Zenner

Join Date:
Nov 2008
Posts:
17
Plugin Contributions:
0

Post #15 by cmrsf1

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!