Author Topic: Remove price from a custom field value  (Read 524 times)

misterpo

  • Beginner
  • *
  • Posts: 25
Remove price from a custom field value
« 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 ?

misterpo

  • Beginner
  • *
  • Posts: 25
Re: Remove price from a custom field value
« Reply #1 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;