News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to remove the "Price:" heading from the product detail page?

Started by creotom, March 03, 2012, 17:25:25 PM

Previous topic - Next topic

creotom

I'm sorry if this is answered elsewhere, I have spent a couple of hours trying to work this out on my own.

I would like to be able to remove the "Price:" text that appears over the pricing in the product detail page.

Many thanks in advance.

SamF

Assuming you use VM 2.0.2, in this file \components\com_virtuemart\views\productdetails\tmpl\default_showprices.php at about line 24 you will find the code:


if ($this->product->product_unit && VmConfig::get('price_show_packaging_pricelabel')) {
echo "<strong>" . JText::_('COM_VIRTUEMART_CART_PRICE_PER_UNIT') . ' (' . $this->product->product_unit . "):</strong>";
    } else {
echo "<strong>" . JText::_('COM_VIRTUEMART_CART_PRICE') . "</strong>";
    }


This code prints the word "Price:" in the product detail view.

creotom

Wow thank you so much!
I commented those lines out and the heading is gone.

Fantastic

creotom

Hi I'm wondering if you can point me in the right direction for the fields that display the "VISIBLE FILE NAME" for the image and thumbnails on the product detail page?
I'm using CSVI to import products and it populates this field by default and the only way to hide it is by modifying the template which I'm struggling with.

My sincere thanks in advance.


SamF

Quote from: creotom on March 04, 2012, 12:23:02 PM
"VISIBLE FILE NAME" for the image and thumbnails on the product detail page

I'm not sure there is a field like this. Have a look at http://forum.virtuemart.net/index.php?topic=92756.0

There are couple of fields to show main image and additional images, but they are not for displaying the file name.

The template, which is intended to show pictures is called \com_virtuemart\views\productdetails\tmpl\default_images.php