Hi. I have VM3 eshop and need hide custom fields cart variants price.
I know, how i can make it in VM2 . . . http://forum.virtuemart.net/index.php?topic=107506.0
But, i cant change it in VM3.
I found on line 871 this:
static function _getCustomPrice($customPrice, $currency, $calculator) {
if ((float)$customPrice) {
$price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($customPrice)));
if ($customPrice >0) {
$price ="+".$price;
}
}
else {
$price = ($customPrice === '') ? '' : vmText::sprintf('COM_VIRTUEMART_CART_PRICE_FREE',$currency->getSymbol());
}
return $price;
}
I try add and delete any part, but all time i have white page. I try change:$price ="+".$price;
to:
$price ="//+".$price;
but i have white page too. How i can disable it?
Thx
Hello
You are breaking the PHP-code.
$price ="+".$price;
Should be changed to
$price = ''; // "+".$price;
This solves Your White page, You can only judge if it solves Your other task. If You don´t want to display the text FREE then You can simplify this much more and always set $price = '';
regards
Jörgen @ Kreativ Fotografi
thx. work it :)
I wonder if we should change it so, that we just use Language key and so people can just write an override for it.