Forums / Setting Up Categories, Products, Attributes / Turn Off Units in Stock line

Turn Off Units in Stock line

Locked

Views: 6,049

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Aug 2006, 10:30 AM
#1
jayson_gurney avatar

jayson_gurney

Zen Follower

Join Date:
May 2006
Location:
UK
Posts:
101
Plugin Contributions:
0

Turn Off Units in Stock line

Hi folks I want to turn the units in stock line off a selection of products - how is this done please?

Regards
Jayson

31 Aug 2006, 10:33 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn Off Units in Stock line

You can turn it off for all products entered as a certain product type by going to Admin->Catalog->Product Types->Product General->Edit Layout ... "Show Quantity in Stock" and setting it to False.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Aug 2006, 2:24 PM
#3
jayson_gurney avatar

jayson_gurney

Zen Follower

Join Date:
May 2006
Location:
UK
Posts:
101
Plugin Contributions:
0

Re: Turn Off Units in Stock line

Hi i have found what you are referring too many thanks. BUT is there a way that I can disable the quantity for a small selection of products that are listed as Product Type - Product General.

90% of my products are ok to have their qty listed/displayed but 10 other 10% i do not want anyone to see my qty etc. How do I do this?
Regards
Jayson

31 Aug 2006, 6:52 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn Off Units in Stock line

There is nothing built-in to do that. You could always write code to make it happen.

One approach could be to edit your tpl_product_info_display.php template and change the logic to exclude certain products. This is the code that does the display:```

<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . '</li>' : '') . "\n"; ?>

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Sep 2006, 1:08 AM
#5
jayson_gurney avatar

jayson_gurney

Zen Follower

Join Date:
May 2006
Location:
UK
Posts:
101
Plugin Contributions:
0

Re: Turn Off Units in Stock line

Thanks for the reply Dr Byte but at the moment my coding skills do not warrant this so I will just have to wait until someone else submits something along these lines or I get the chance to learn more about the coding required.
Many thanks for all the replies :)