News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How not to display stock

Started by Stannite, May 15, 2012, 11:58:22 AM

Previous topic - Next topic

Stannite

Hi All,

When i am seeing productys in a category, i always see the stock for products. When i uncheck the display stock checkbox in the configuration the stock still displays. I tried to set the variable display_stock in the database but it still displays the stock. What can i do to hide the stock for a product?

Stannite

#1
I just found it myself,

Make an override for: components\com_virtuemart\views\category\tmpl\default.php
and Change the line: <?php if (!VmConfig::get('use_as_catalog')) {?>
To: <?php if (!VmConfig::get('use_as_catalog') && VmConfig::get('display_stock',1)){?>

This seems to be solved in 2.0.6


greets.