Hi
VM 3.0.14
Joomla 3.6.2
I have removed "no additional charge" from the custom fields by editing the language file. How do I remove "+£10" from the custom fields?
Thanks, Paul
can anyone help with this please?
Paul
exactly want custom field? There's loads of them
url? screenshot? info?
the custom filed is a "string" showing different prices for different variations on each product. See attached screen shot. I want to remove the +£20 but still want the displayed price to change when each variation is selected.
I was able to remove "no additional charge" if the price is the same but can't find where to hide the plus or minus amount.
thanks, Paul
any further thoughts on this??
what is the name of custom field and what type of custom field you are using ? It is probably the default value set in the custom field
Thank
Kishore
the custom filed is a "string" showing different prices for different variations on each product. See attached screen shot attached in earlier post. I want to remove the +£20 but still want the displayed price to change when each variation is selected.
I was able to remove "no additional charge" if the price is the same but can't find where to hide the plus or minus amount.
Think it has something to do with editing line 906 in /administrator/components/com_virtuemart/models/customfields.php but not exactly sure which code to remove.
Paul
906 in /administrator/components/com_virtuemart/models/customfields.php
static function _getCustomPrice($customPrice, $currency, $calculator) {
if ((float)$customPrice) {
$price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($customPrice)));
if ($customPrice >0) {
$price ="+".$price;
}
}
remove the + and .$price from the above and it removes the price variation
paul
Yup, like this http://forum.virtuemart.net/index.php?topic=133755.msg464202#msg464202 - but it is a hack that needs re-applying whenever VM is updated.
Or this is a config option in https://breakdesigns.net/extensions/customfields-for-all
or use a override for the sublayout customfield.php and remove the $price around line 526/528