From 71305b131ffea1d2ad10c93544712cac3cc1a7be Mon Sep 17 00:00:00 2001 From: Boro Sitnikovski Date: Fri, 29 Sep 2017 18:46:34 +0200 Subject: [PATCH] Treat values in cart_contents hash as arrays instead of objects --- includes/legacy/class-wc-legacy-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/legacy/class-wc-legacy-cart.php b/includes/legacy/class-wc-legacy-cart.php index 4bd85d22da2..adf181b21b2 100644 --- a/includes/legacy/class-wc-legacy-cart.php +++ b/includes/legacy/class-wc-legacy-cart.php @@ -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']; } /**