From 690c5f784226776acb2343f64fdae6b85905f13e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 24 Dec 2013 13:57:07 +0000 Subject: [PATCH] Resolve permalink issues Fixes #4400 --- templates/cart/cart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/cart/cart.php b/templates/cart/cart.php index 34a5a06f832..9031080376e 100755 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -55,7 +55,7 @@ do_action( 'woocommerce_before_cart' ); ?> if ( ! $_product->is_visible() ) echo $thumbnail; else - printf( '%s', add_query_arg( $cart_item['variation'], $_product->get_permalink() ), $thumbnail ); + printf( '%s', $_product->get_permalink(), $thumbnail ); ?> @@ -64,7 +64,7 @@ do_action( 'woocommerce_before_cart' ); ?> if ( ! $_product->is_visible() ) echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ); else - echo apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', ( is_array( $cart_item['variation'] ) ? add_query_arg( $cart_item['variation'], $_product->get_permalink() ) : $_product->get_permalink() ), $_product->get_title() ), $cart_item, $cart_item_key ); + echo apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', $_product->get_permalink(), $_product->get_title() ), $cart_item, $cart_item_key ); // Meta data echo WC()->cart->get_item_data( $cart_item );