In order to hide the Ask question about this product button from the logged in VirtueMart users, you should edit the components/com_virtuemart/themes/YOUR_THEME/templates/product_details/flypage.tpl.php file.
In the above path replace the YOUR_THEME string with the actual VirtueMart theme name.
Find the following line:
<td colspan="2"><?php echo $ask_seller ?></td>
and replace it with:
<td colspan="2"><?php if ($_SESSION['auth']['user_id'] < 1) echo $ask_seller ?></td>
This way the corresponding button will be visible only for non-registered users.
You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!