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 @@ - + + - + - @@ -41,14 +41,30 @@ cart->get_cart() as $cart_item_key => $cart_item ) { - $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); - $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); + $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); + $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_cart_item_visible', true, $cart_item, $cart_item_key ) ) { $product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key ); ?> + + + + - - - - + + +
   
+ ×', + 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 @@
- - - diff --git a/woocommerce/product-searchform.php b/woocommerce/product-searchform.php index 2a0c9ea2..3b2736f9 100644 --- a/woocommerce/product-searchform.php +++ b/woocommerce/product-searchform.php @@ -4,25 +4,24 @@ * * This template can be overridden by copying it to yourtheme/woocommerce/product-searchform.php. * - * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). - * will need to copy the new files to your theme to maintain compatibility. We try to do this. - * as little as possible, but it does happen. When this occurs the version of the template file will. - * be bumped and the readme will list any important changes. + * HOWEVER, on occasion WooCommerce will need to update template files and you + * (the theme developer) will need to copy the new files to your theme to + * maintain compatibility. We try to do this as little as possible, but it does + * happen. When this occurs the version of the template file will be bumped and + * the readme will list any important changes. * - * @see http://docs.woothemes.com/document/template-structure/ - * @author WooThemes - * @package WooCommerce/Templates - * @version 3.3.0 + * @see https://docs.woocommerce.com/document/template-structure/ + * @package WooCommerce\Templates + * @version 7.0.1 */ -// Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } ?> -