Do Not Show "in Stock" On Product Page

[color=#1A1A1A][font=Arial, Helvetica, sans-serif][size=3]Availability: [/size][/font][/color][color=#62AD00][font=Arial, Helvetica, sans-serif][size=3]In stock[/size][/font][/color]



I have to “Enable inventory tracking” but I do not want to show the “In stock” message. I can prob. just delete from language translations, but what about the [size=2] [size=3][font=Arial, Helvetica, sans-serif][color=#1a1a1a]“Availability part? From any templates?[/color][/font][/size][/size]



[size=2][size=3][font=Arial, Helvetica, sans-serif][color=#1a1a1a]Update: I found Design-themes-basic-templates-common-product_data.tpl and deleted the"Availability” (line 344) and this works but may not be the best way, huh?[/color][/font][/size][/size]

To disable this feature for the product template only, please open the /design/themes/THEME/templates/blocks/product_templates/default_template.tpl file and replace:



{include file="common/product_data.tpl" product=$product separate_buttons=$separate_buttons|default:true but_role="big" but_text=__("add_to_cart")}




with:



{include file="common/product_data.tpl" product=$product separate_buttons=$separate_buttons|default:true but_role="big" but_text=__("add_to_cart") show_product_amount=false}




And clear the cache

[quote name='eComLabs' timestamp='1407137870' post='188746']

To disable this feature for the product template only, please open the /design/themes/THEME/templates/blocks/product_templates/default_template.tpl file and replace:



{include file="common/product_data.tpl" product=$product separate_buttons=$separate_buttons|default:true but_role="big" but_text=__("add_to_cart")}




with:



{include file="common/product_data.tpl" product=$product separate_buttons=$separate_buttons|default:true but_role="big" but_text=__("add_to_cart") show_product_amount=false}




And clear the cache

[/quote]Thanks, but this change made the product page blank.

[quote name='jimmyod' timestamp='1407153421' post='188769']

Thanks, but this change made the product page blank.

[/quote]



What CS-Cart version do you use?

[quote name=‘eComLabs’ timestamp=‘1407160839’ post=‘188789’]

What CS-Cart version do you use?

[/quote]v4.1.5

My bad…forgot to cc.

Thank you :grin:

You are welcome!

Thanks for this - it helped me too. But a supplementary question: what line of code (and where) do I change to also remove the 'In Stock' from products when in Products List.

There is any setting/easier option (except altering the code) to hide in Stock" On Product Page on newer cs cart version eg. current version cs cart 4.9.3?

In views/products/view.tpl

change

show_product_amount=true

to

show_product_amount=false

How would one go about having it show 'Availability: Good Stock' for anything set to 'do not track'?