Hi Guys,
i have a error in pricing configuration. but i dont know what this ist. Has Anyone same Problem?
Warning: Creating default object from empty value in .....\administrator\components\com_virtuemart\helpers\calculationh.php on line 1214
in this line stay:
$price = $baseprice;
$finalprice = $baseprice;
if (isset($rulesEffSorted)) {
foreach ($rulesEffSorted as $rule) {
if(isset($rule['subTotal'])){
$cIn = $rule['subTotal'];
}
else if ($relateToBaseAmount) {
$cIn = $baseprice;
} else {
$cIn = $price;
}
$cOut = $this->interpreteMathOp($rule, $cIn);
$tmp = $this->roundInternal($this->roundInternal($cOut) - $cIn);
if($setCartPrices){
$this->_cart->cartPrices[$rule['virtuemart_calc_id'] . 'Diff'] = $tmp;
}
//okey, this is a bit flawless logic, but should work
if ($relateToBaseAmount) {
$finalprice = $finalprice + $tmp;
} else {
$price = $cOut;
}
}
}
//okey done with it
if (!$relateToBaseAmount) {
$finalprice = $price;
}
return $finalprice;
}
Can anyone help?
Greatings Norman
Probably a PHP upgrade error. You för not tell much of yout Joomla, PHP, VM versions...
Jörgen
Hi
I assume this is now fixed
like so :
if($setCartPrices and isset($this->_cart->cartPrices)){
$this->_cart->cartPrices[$rule['virtuemart_calc_id'] . 'Diff'] = $tmp;
}