SS 2.4.5
ecommerce v0.81
Heres a wierd error that im getting with ecommerce v0.81, it did work fine up until tonight, had a week off and added the featured products widget and right away i got this error when adding a product to cart:
Uncaught Exception: Object->__call(): the method 'total' does not exist on 'DataObjectSet'
i removed the widget thinking this could have been a cause, ran a /dev/build and a ?flush=all to clear anything left behind and im still getting it, i can trace it to here in ecommerce/code/model/order.php
function ModifiersSubTotal($excluded = null, $onlyprevious = false) {
$total = 0;
if($modifiers = $this->Modifiers()) {
foreach($modifiers as $modifier) {
if(is_array($excluded) && in_array($modifier->class, $excluded)) {
if($onlyprevious)
break;
continue;
} elseif($excluded && ($modifier->class == $excluded)) {
if($onlyprevious)
break;
continue;
}
$total += $modifier->Total();
}
}
return $total;
}
like i said it was working before, so im pretty stumped on how to get iy working again, any thoughts?
TY