VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: broc93 on September 13, 2012, 00:10:57 AM

Title: Remove price indication from custom field cart variant
Post by: broc93 on September 13, 2012, 00:10:57 AM
Hello! I've created this product http://prova-herbalife.netsons.org/homepage/colazione-equilibrata/formula1-detail
I don't want prices to be showed in the drop-down menu "Scegli il gusto" or, at least, I don't want to see "no additional charge" but, at least, 0.00€. Anyway, removing the price would be really better. Could you help me?
Title: Re: Remove price indication from custom field cart variant
Post by: VernSouthern on April 27, 2013, 00:11:28 AM
I would also like to know if this is possible. It causes customer confusion.
Title: Re: Remove price indication from custom field cart variant
Post by: CSPS on April 28, 2013, 04:41:33 AM
I also want to achieve this if anyone can help.

I found this post with seems to point in the right direction but wouldn't this file as it is under/administrator be overwritten with updates?

http://forum.virtuemart.net/index.php?topic=112838.msg379601#msg379601
Title: Re: Remove price indication from custom field cart variant
Post by: CSPS on April 28, 2013, 09:07:45 AM
This post says how to remove 'no additional charge' using the language file or language overide.
http://forum.virtuemart.net/index.php?topic=102042.0

but still can't find out how to remove the +£?? numbers all together.  :(
Title: Re: Remove price indication from custom field cart variant
Post by: CSPS on April 28, 2013, 09:33:37 AM
Finally found it here http://forum.virtuemart.net/index.php?topic=112001.0
But not sure if there is a risk of this being overwritten with updates?
Title: Re: Remove price indication from custom field cart variant
Post by: nebojsaZR on March 19, 2014, 12:48:30 PM
Hear is solution for VM 2.0.26:

in administrator -> components -> com_virtuemart -> models -> customfields.php  find line  near 886
$productCustom->text = JText::_($productCustom->custom_value) . ' ' . $price;

and turn it into

$productCustom->text = JText::_($productCustom->custom_value); // . ' ' . $price;

This is also not happy solution because it will be overwritten on update, so I ask for developers to add possibility to remove this in config for it is really not necessary.