From 347cd43793a7e7626a660ed0c8c6ce5aa8c72197 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 22 Mar 2018 14:03:07 -0600 Subject: [PATCH] New Woo function Change to use new Woo function, per new Woo templates; --- woocommerce/cart/mini-cart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woocommerce/cart/mini-cart.php b/woocommerce/cart/mini-cart.php index 4134062..c91dc6c 100644 --- a/woocommerce/cart/mini-cart.php +++ b/woocommerce/cart/mini-cart.php @@ -43,7 +43,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> ×', - esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), + esc_url( wc_get_cart_remove_url( $cart_item_key ) ), __( 'Remove this item', 'understrap' ), esc_attr( $product_id ), esc_attr( $cart_item_key ), @@ -57,7 +57,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> - cart->get_item_data( $cart_item ); ?> + ' . sprintf( '%s × %s', $cart_item['quantity'], $product_price ) . '', $cart_item, $cart_item_key ); ?>