welrachid
i see under your name : "3rd party plugin developer" so i have give you the minimum explains.
You have to add a specific position(or use a old one) and filter it if you are in virtuemart productdetails.
This is the fastest and best way, because you have not to use any plugin or other tircks, only check for the view= 'productdetails'.
To get it the shortest code that always work is for eg in templates/protostar/index.php to hide the left bar.
if(JFactory::getApplication()->input->get(view') !=='productdetails') {
if ($this->countModules('position-8')) : ?>
<!-- Begin Sidebar -->
<div id="sidebar" class="span3">
<div class="sidebar-nav">
<jdoc:include type="modules" name="position-8" style="xhtml" />
</div>
</div>
<!-- End Sidebar -->
<?php endif;
}
In protostart $view exist and is set with $view = $app->input->getCmd('view', '');
so you can simplify it with if($view !=='productdetails') {