How to hide the Ask question about this product button from logged in VirtueMart users

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!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to remove recently viewed products from the homepage in VirtueMart?

You can disable the visualization of the recently viewed products from your web site's front end...

How to set maximum purchase value in VirtueMart?

The VirtueMart script allows you to set the minimum sum per a purchase. This can be done from the...

How to hide the Add to Cart button for non-registered users in VirtueMart?

In order to hide the Add to Cart button for non-registered users edit...

How to install a language pack in VirtueMart?

First you should install the chosen language pack for Joomla. You can find detailed instructions...

How to change the ”Recommend to a friend” message in VirtueMart?

The Recommend to a friend link in the products details pages can be enabled from the Joomla...