How to hide the products price in VirtueMart

In order to hide the products' price open thecomponents/com_virtuemart/themes/YOUR_THEME/templates/browse/browse_1.php file.

Replace the YOUR_THEME string with your VirtueMart default theme name.

Change the following lines:

<div class="browsePriceContainer">
            <?php echo $product_price  ?>
        </div>

with:

<div class="browsePriceContainer">
            <?php /*echo $product_price*/  ?>
        </div>

Alternatively, open the theme CSS file components/com_virtuemart/themes/YOUR_THEME/theme.css and change the color of the price item to white. The code will be as follows:

.productPrice {
   color: white;
    font-weight:bold;
    white-space: nowrap;
}

This way the price will have the same color as the background and it will not be visible for the web site 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...