VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: komir on July 04, 2016, 19:44:16 PM

Title: Disable Product Availability
Post by: komir on July 04, 2016, 19:44:16 PM
Hi, how can disable display
-Product Availability

in product display?
Thank you
Title: Re: Disable Product Availability
Post by: jenkinhill on July 04, 2016, 20:47:50 PM
See http://forum.virtuemart.net/index.php?topic=128401.0

If using a recent VirtueMart version with default templates and you are asking about the category product display them deselect "Display stock level" in Configuration/Shopfront/Product Listing
Title: Re: Disable Product Availability
Post by: MagikCommerce on July 06, 2016, 10:39:24 AM
Hello komir,

In file /components/com_virtuemart/views/productdetails/tmpl/default.php following stockhandle code is written and its path is /components/com_virtuemart/sublayouts/stockhandle.php

           <?php
                     
.....

                     echo 
shopFunctionsF::renderVmSubLayout('stockhandle',array('product'=>$this->product));
                    .....
           
?>



In case of template overridation, use overrided file as /templates/selected_template/html/com_virtuemart/productdetails/default.php

Regards,
MagikCommerce