VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: spyderwebdesign on April 28, 2012, 18:06:46 PM

Title: How do delete Price: from product decription page?
Post by: spyderwebdesign on April 28, 2012, 18:06:46 PM
On the product description page, I have the following:

Product SKU: 846137000137
Product Style & Color: AUDREY Black/Wht Pt. Combo
Rating: Not Rated Yet
Price:
Sales price: $49.99

How do I delete the empty price?
I also want a to get a better understanding of this "Price:" Is this suppose to have a value next to it? If so, is that the full price? If so, where do I set full price?

In the admin side I have Cost price, Base Price, and Final Price all filled in. The Price: remains to be empty.

[attachment cleanup by admin]
Title: Re: How do delete Price: from product decription page?
Post by: spyderwebdesign on May 02, 2012, 22:19:01 PM
Surely someone has to know how to make this edit.
Title: Re: How do delete Price: from product decription page?
Post by: anupam_sam on May 02, 2012, 22:35:13 PM
QuoteIs this suppose to have a value next to it?
i don't think so.

Its a kind of heading/title for the various kind of prices that comes below (base price, discounted price, sales price, etc.)
Title: Re: How do delete Price: from product decription page?
Post by: spyderwebdesign on May 02, 2012, 22:45:12 PM
Quote from: anupam_sam on May 02, 2012, 22:35:13 PM
QuoteIs this suppose to have a value next to it?
i don't think so.

Its a kind of heading/title for the various kind of prices that comes below (base price, discounted price, sales price, etc.)

Thanks! That answers part of my question. I will fool with the css to see if I can get ride of it since I can't figure out what php code is making it appear.
Title: Re: How do delete Price: from product decription page?
Post by: anupam_sam on May 02, 2012, 23:04:20 PM
In VM 2.0.6

components/com_virtuemart/views/productdetails/tmpl/default_showprices.php

line no 28:
echo "<strong>" . JText::_('COM_VIRTUEMART_CART_PRICE') . "</strong>";

Thats where its coming from. You can well put a condition to show or hide it according to the prices.
Title: Re: How do delete Price: from product decription page?
Post by: spyderwebdesign on May 03, 2012, 00:09:16 AM
Quote from: anupam_sam on May 02, 2012, 23:04:20 PM
In VM 2.0.6

components/com_virtuemart/views/productdetails/tmpl/default_showprices.php

line no 28:
echo "<strong>" . JText::_('COM_VIRTUEMART_CART_PRICE') . "</strong>";

Thats where its coming from. You can well put a condition to show or hide it according to the prices.

THANK YOU!
Title: Re: How do delete Price: from product decription page?
Post by: spyderwebdesign on May 03, 2012, 04:11:57 AM
If I update components/com_virtuemart/views/productdetails/tmpl/default_showprices.php
won't it revert back when I update my VM? Will I have to update this file every single time there is a VM update?
Title: Re: How do delete Price: from product decription page?
Post by: anupam_sam on May 03, 2012, 05:54:57 AM
if you update files shall be overwritten.

its always a better practice to override the component's files in your template/html folder. Never modify the component's core.
Title: Re: How do delete Price: from product decription page?
Post by: spyderwebdesign on May 03, 2012, 10:06:55 AM
Quote from: anupam_sam on May 03, 2012, 05:54:57 AM
its always a better practice to override the component's files in your template/html folder. Never modify the component's core.

Is this thread http://forum.virtuemart.net/index.php?topic=90935.0 the best documentation that decribes how to override the component's files in our template/html folder?