Merge pull request #16997 from woocommerce/fix/cart_contents-is-array
Treat values in cart_contents hash as arrays instead of objects
This commit is contained in:
commit
68f75e9395
|
@ -290,7 +290,7 @@ abstract class WC_Legacy_Cart {
|
|||
$cart_item_key = $values['key'];
|
||||
$cart_item = $this->cart_contents[ $cart_item_key ];
|
||||
|
||||
return $cart_item->get_line_total();
|
||||
return $cart_item['line_total'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue