Hi, it is possible to show the stock level ONLY in product detail (and shopping cart) but not in category list?
Yes - you need to do a display template override
components\com_virtuemart\sublayouts\products.php
Comment this out:-
if ( VmConfig::get ('display_stock', 1)) { ?>
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
<?php }
echo shopFunctionsF::renderVmSubLayout('stockhandle',array('product'=>$product));
?>
Put the new changed file in:
templates\YOURTEMPLATE\html\com_virtuemart\sublayouts\products.php
Oh, please tell me how I comment this?
if ( VmConfig::get ('display_stock', 1)) { ?>
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
<?php }
echo shopFunctionsF::renderVmSubLayout('stockhandle',array('product'=>$product));
?>
Just delete it will work