diff --git a/woocommerce/cart/cart-empty.php b/woocommerce/cart/cart-empty.php index 1f495be..07a5fd1 100644 --- a/woocommerce/cart/cart-empty.php +++ b/woocommerce/cart/cart-empty.php @@ -13,24 +13,21 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 2.0.0 + * @version 3.1.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly. + exit; // Exit if accessed directly } wc_print_notices(); -?> +/** + * @hooked wc_empty_cart_message - 10 + */ +do_action( 'woocommerce_cart_is_empty' ); -
- -
- - - - 0 ) : ?> +if ( wc_get_page_id( 'shop' ) > 0 ) : ?>' . esc_html__( 'Available on backorder', 'understrap' ) . '
'; - } - ?> -' . esc_html__( 'Available on backorder', 'understrap' ) . '
'; + } + ?> + -: cart->get_cart_subtotal(); ?>
+: cart->get_cart_subtotal(); ?>
- + + + + + diff --git a/woocommerce/single-product/product-thumbnails.php b/woocommerce/single-product/product-thumbnails.php index ace91d0..ad0bce8 100644 --- a/woocommerce/single-product/product-thumbnails.php +++ b/woocommerce/single-product/product-thumbnails.php @@ -1,7 +1,7 @@ $image_title, + $attributes = array( + 'title' => get_post_field( 'post_title', $attachment_id ), + 'data-caption' => get_post_field( 'post_excerpt', $attachment_id ), 'data-src' => $full_size_image[0], 'data-large_image' => $full_size_image[0], 'data-large_image_width' => $full_size_image[1], diff --git a/woocommerce/single-product/rating.php b/woocommerce/single-product/rating.php index b09056d..297111a 100644 --- a/woocommerce/single-product/rating.php +++ b/woocommerce/single-product/rating.php @@ -10,10 +10,10 @@ * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * - * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes - * @package WooCommerce/Templates - * @version 2.3.2 + * @see https://docs.woocommerce.com/document/template-structure/ + * @author WooThemes + * @package WooCommerce/Templates + * @version 3.1.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) { global $product; -if ( get_option( 'woocommerce_enable_review_rating' ) === 'no' ) { +if ( 'no' === get_option( 'woocommerce_enable_review_rating' ) ) { return; } @@ -32,14 +32,9 @@ $average = $product->get_average_rating(); if ( $rating_count > 0 ) : ?> -