VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: misterpo on May 09, 2014, 08:56:45 AM

Title: Remove price from a custom field value
Post by: misterpo on May 09, 2014, 08:56:45 AM
Hi there,

I run Joomla 2.5.19 and VM 2.6 and I would like to remove the price from a custom field value (I'd like to remove "-3000,00 €" from the button label in http://www.rallye1000bornes.fr/web/index.php/paiement-en-ligne/highlands-tour-18-25-mai-2014-detail.html).

Editing administrator/components/com_virtuemart/models/customfields.php as described in this thread (http://forum.virtuemart.net/index.php?topic=102314.0) does not work for me.

Any workaround ?
Title: Re: Remove price from a custom field value
Post by: misterpo on May 12, 2014, 10:35:38 AM
Hi,

I have finally sorted it out by upgrading to VM 2.6.0a and modifying /administrator/components/com_virtuemart/models/customfields.php :

Line 886 : $productCustom->text = vmText::_($productCustom->custom_value);
Lines 902, 928 : $productCustom->text = $productCustom->custom_value;