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

Remove price from a custom field value

Started by misterpo, May 09, 2014, 08:56:45 AM

Previous topic - Next topic

misterpo

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

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;