diff --git a/readme.txt b/readme.txt index 7edd6a97..e68a351e 100644 --- a/readme.txt +++ b/readme.txt @@ -104,6 +104,9 @@ Original design files are available on [Google Drive](https://drive.google.com/f == Changelog == += 1.19.13 - 05 November 2022 = +* WooCommerce: Updated bundled templates to `7.0.1`. + = 1.19.12 - 27 October 2022 = * SiteOrigin Settings: Updated Google Fonts array. * SiteOrigin Settings: Resolved potential Google Fonts empty response. diff --git a/woocommerce/cart/cart.php b/woocommerce/cart/cart.php index 98515e28..3dba46e9 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 4.4.0 + * @version 7.0.1 */ defined( 'ABSPATH' ) || exit; @@ -28,12 +28,12 @@
+ | + | - | + | - | ||||
---|---|---|---|---|---|---|---|---|
+ ×', + esc_url( wc_get_cart_remove_url( $cart_item_key ) ), + esc_html__( 'Remove this item', 'siteorigin-north' ), + esc_attr( $product_id ), + esc_attr( $_product->get_sku() ) + ), + $cart_item_key + ); + ?> + | +get_image(), $cart_item, $cart_item_key ); @@ -64,9 +80,9 @@ | get_name() ), $cart_item, $cart_item_key ) . ' ' ); + echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) . ' ' ); } else { - echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), esc_html( $_product->get_name() ) ), $cart_item, $cart_item_key ) ); + echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) ); } do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key ); @@ -81,62 +97,51 @@ ?> | ++ cart->get_product_price( $_product ), $cart_item, $cart_item_key ); // PHPCS: XSS ok. + ?> + | +is_sold_individually() ) { - $product_quantity = sprintf( '1 ', $cart_item_key ); + $min_quantity = 1; + $max_quantity = 1; } 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 - ); + $min_quantity = 0; + $max_quantity = $_product->get_max_purchase_quantity(); } + $product_quantity = woocommerce_quantity_input( + array( + 'input_name' => "cart[{$cart_item_key}][qty]", + 'input_value' => $cart_item['quantity'], + 'max_value' => $max_quantity, + 'min_value' => $min_quantity, + '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_price( $_product ), $cart_item, $cart_item_key ); // PHPCS: XSS ok. - ?> - | -cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // PHPCS: XSS ok. ?> | - -- ×', - esc_url( wc_get_cart_remove_url( $cart_item_key ) ), - esc_html__( 'Remove this item', 'siteorigin-north' ), - esc_attr( $product_id ), - esc_attr( $_product->get_sku() ) - ), - $cart_item_key - ); - ?> - | |
@@ -144,14 +149,15 @@
-
+
+
+
@@ -168,11 +175,8 @@
|