diff --git a/woocommerce/cart/cart.php b/woocommerce/cart/cart.php index 0d0b5d6..b710872 100644 --- a/woocommerce/cart/cart.php +++ b/woocommerce/cart/cart.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates - * @version 3.6.1 + * @version 3.8.0 */ defined( 'ABSPATH' ) || exit; @@ -30,7 +30,7 @@ do_action( 'woocommerce_before_cart' ); ?> - + @@ -48,14 +48,17 @@ do_action( 'woocommerce_before_cart' ); ?> ×', - esc_url( wc_get_cart_remove_url( $cart_item_key ) ), - __( 'Remove this item', 'understrap' ), - esc_attr( $product_id ), - esc_attr( $_product->get_sku() ) - ), $cart_item_key ); + echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + 'woocommerce_cart_item_remove_link', + sprintf( + '×', + esc_url( wc_get_cart_remove_url( $cart_item_key ) ), + esc_html__( 'Remove this item', 'understrap' ), + esc_attr( $product_id ), + esc_attr( $_product->get_sku() ) + ), + $cart_item_key + ); ?> @@ -102,20 +105,24 @@ do_action( 'woocommerce_before_cart' ); ?> if ( $_product->is_sold_individually() ) { $product_quantity = sprintf( '1 ', $cart_item_key ); } else { - $product_quantity = woocommerce_quantity_input( array( - 'input_name' => "cart[{$cart_item_key}][qty]", - 'input_value' => $cart_item['quantity'], - 'max_value' => $_product->get_max_purchase_quantity(), - 'min_value' => '0', - 'product_name' => $_product->get_name(), - ), $_product, false ); + $product_quantity = woocommerce_quantity_input( + array( + 'input_name' => "cart[{$cart_item_key}][qty]", + 'input_value' => $cart_item['quantity'], + 'max_value' => $_product->get_max_purchase_quantity(), + 'min_value' => '0', + 'product_name' => $_product->get_name(), + ), + $_product, + false + ); } echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok. ?> - + cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // PHPCS: XSS ok. ?> @@ -152,6 +159,8 @@ do_action( 'woocommerce_before_cart' ); ?> + +
?>
-