diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 098a60b..17da035 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -132,3 +132,12 @@ function understrap_wc_form_field_args( $args, $key, $value = null ) { return $args; } + +/** +* Change loop add-to-cart button class to Bootstrap +*/ +add_filter( 'woocommerce_loop_add_to_cart_args', 'understrap_woocommerce_add_to_cart_args', 10, 2 ); +function understrap_woocommerce_add_to_cart_args( $args, $product ) { + $args['class'] = str_replace('button','btn btn-outline-primary', 'button'); + return $args; +} diff --git a/woocommerce/cart/cart-empty.php b/woocommerce/cart/cart-empty.php index 155ae52..fd722cb 100644 --- a/woocommerce/cart/cart-empty.php +++ b/woocommerce/cart/cart-empty.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.1.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -30,7 +30,7 @@ do_action( 'woocommerce_cart_is_empty' ); if ( wc_get_page_id( 'shop' ) > 0 ) : ?>

- +

diff --git a/woocommerce/cart/cart.php b/woocommerce/cart/cart.php index 31fe400..2c0cab8 100644 --- a/woocommerce/cart/cart.php +++ b/woocommerce/cart/cart.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -32,10 +32,10 @@ do_action( 'woocommerce_before_cart' ); ?>     - - - - + + + + @@ -53,45 +53,42 @@ do_action( 'woocommerce_before_cart' ); ?> ×', esc_url( wc_get_cart_remove_url( $cart_item_key ) ), - esc_attr__( 'Remove this item', 'understrap' ), + __( 'Remove this item', 'understrap' ), esc_attr( $product_id ), esc_attr( $_product->get_sku() ) ), $cart_item_key ); ?> - - get_image(), $cart_item, $cart_item_key ); + get_image(), $cart_item, $cart_item_key ); - if ( ! $product_permalink ) { - echo $thumbnail; - } else { - printf( '%s', esc_url( $product_permalink ), $thumbnail ); - } - ?> - + if ( ! $product_permalink ) { + echo $thumbnail; + } else { + printf( '%s', esc_url( $product_permalink ), $thumbnail ); + } + ?> - - get_name(), $cart_item, $cart_item_key ) . ' '; - } else { - echo apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ); - } + get_name(), $cart_item, $cart_item_key ) . ' '; + } else { + echo apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ); + } - // Meta data - echo wc_get_formatted_cart_item_data( $cart_item ); + // Meta data. + echo wc_get_formatted_cart_item_data( $cart_item ); - // Backorder notification - if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) { - echo '

' . esc_html__( 'Available on backorder', 'understrap' ) . '

'; - } - ?> - + // Backorder notification. + if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) { + echo '

' . esc_html__( 'Available on backorder', 'understrap' ) . '

'; + } + ?> ?> - - 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, false ); - } + 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 ); + } - echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); - ?> - + echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); + ?>
- +
- + @@ -156,12 +152,12 @@ do_action( 'woocommerce_before_cart' ); ?>
diff --git a/woocommerce/cart/mini-cart.php b/woocommerce/cart/mini-cart.php index 4134062..1dc5561 100644 --- a/woocommerce/cart/mini-cart.php +++ b/woocommerce/cart/mini-cart.php @@ -15,7 +15,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; @@ -43,7 +43,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> ×', - esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), + esc_url( wc_get_cart_remove_url( $cart_item_key ) ), __( 'Remove this item', 'understrap' ), esc_attr( $product_id ), esc_attr( $cart_item_key ), @@ -57,7 +57,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> - cart->get_item_data( $cart_item ); ?> + ' . sprintf( '%s × %s', $cart_item['quantity'], $product_price ) . '', $cart_item, $cart_item_key ); ?> diff --git a/woocommerce/cart/proceed-to-checkout-button.php b/woocommerce/cart/proceed-to-checkout-button.php index 510437c..344bf7d 100644 --- a/woocommerce/cart/proceed-to-checkout-button.php +++ b/woocommerce/cart/proceed-to-checkout-button.php @@ -15,14 +15,14 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 2.4.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } ?> - - + + diff --git a/woocommerce/checkout/form-checkout.php b/woocommerce/checkout/form-checkout.php index 80a9608..7081da9 100644 --- a/woocommerce/checkout/form-checkout.php +++ b/woocommerce/checkout/form-checkout.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 2.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -24,8 +24,8 @@ wc_print_notices(); do_action( 'woocommerce_before_checkout_form', $checkout ); -// If checkout registration is disabled and not logged in, the user cannot checkout. -if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! is_user_logged_in() ) { +// If checkout registration is disabled and not logged in, the user cannot checkout +if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_required() && ! is_user_logged_in() ) { echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'understrap' ) ); return; } @@ -34,7 +34,7 @@ if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! is_us
- checkout_fields ) > 0 ) : ?> + get_checkout_fields() ) : ?> diff --git a/woocommerce/checkout/form-coupon.php b/woocommerce/checkout/form-coupon.php index 17edb2d..f45d0bb 100644 --- a/woocommerce/checkout/form-coupon.php +++ b/woocommerce/checkout/form-coupon.php @@ -13,11 +13,11 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } if ( ! wc_coupons_enabled() ) { @@ -37,7 +37,7 @@ if ( empty( WC()->cart->applied_coupons ) ) {

- +

diff --git a/woocommerce/checkout/form-pay.php b/woocommerce/checkout/form-pay.php index 53b46ec..5212773 100644 --- a/woocommerce/checkout/form-pay.php +++ b/woocommerce/checkout/form-pay.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -26,31 +26,33 @@ if ( ! defined( 'ABSPATH' ) ) { - - - + + + - get_items() ) > 0 ) : ?> + get_items() ) > 0 ) : ?> get_items() as $item_id => $item ) : ?> - - + + @@ -59,8 +61,8 @@ if ( ! defined( 'ABSPATH' ) ) { get_order_item_totals() ) : ?> - - + + @@ -71,13 +73,13 @@ if ( ! defined( 'ABSPATH' ) ) { needs_payment() ) : ?> @@ -88,7 +90,7 @@ if ( ! defined( 'ABSPATH' ) ) { - ' ); ?> + ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?> diff --git a/woocommerce/checkout/payment.php b/woocommerce/checkout/payment.php index a1ec857..69a0d3c 100644 --- a/woocommerce/checkout/payment.php +++ b/woocommerce/checkout/payment.php @@ -13,8 +13,9 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ + if ( ! defined( 'ABSPATH' ) ) { exit; } @@ -27,27 +28,27 @@ if ( ! is_ajax() ) { cart->needs_payment() ) : ?>
- ' ); ?> + ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?> diff --git a/woocommerce/global/form-login.php b/woocommerce/global/form-login.php index 26b5231..88163ea 100644 --- a/woocommerce/global/form-login.php +++ b/woocommerce/global/form-login.php @@ -13,11 +13,11 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } if ( is_user_logged_in() ) { @@ -25,18 +25,18 @@ if ( is_user_logged_in() ) { } ?> -> +> - +

- +

- +

@@ -44,15 +44,15 @@ if ( is_user_logged_in() ) {

- - + + -

- +

diff --git a/woocommerce/global/quantity-input.php b/woocommerce/global/quantity-input.php index ccc39da..5f5ebd6 100644 --- a/woocommerce/global/quantity-input.php +++ b/woocommerce/global/quantity-input.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -30,7 +30,7 @@ if ( $max_value && $min_value === $max_value ) { ?>
- +
%s
', + +echo apply_filters( 'woocommerce_loop_add_to_cart_link', // WPCS: XSS ok. + sprintf( '
%s
', esc_url( $product->add_to_cart_url() ), - esc_attr( $product->get_id() ), - esc_attr( $product->get_sku() ), - esc_attr( isset( $quantity ) ? $quantity : 1 ), - $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', + esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), + $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', esc_attr( $product->get_type() ), - $product->get_type() == 'simple' ? 'ajax_add_to_cart' : '', + $product->get_type() == 'simple' ? 'ajax_add_to_cart' : '', + isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), - $product ); +$product, $args ); diff --git a/woocommerce/loop/orderby.php b/woocommerce/loop/orderby.php index 96d2dfc..577995d 100644 --- a/woocommerce/loop/orderby.php +++ b/woocommerce/loop/orderby.php @@ -13,11 +13,11 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; } ?> @@ -27,19 +27,6 @@ if ( ! defined( 'ABSPATH' ) ) { - $val ) { - if ( 'orderby' === $key || 'submit' === $key ) { - continue; - } - if ( is_array( $val ) ) { - foreach( $val as $innerVal ) { - echo ''; - } - } else { - echo ''; - } - } - ?> + + diff --git a/woocommerce/myaccount/downloads.php b/woocommerce/myaccount/downloads.php index 9ceb4db..7904946 100644 --- a/woocommerce/myaccount/downloads.php +++ b/woocommerce/myaccount/downloads.php @@ -15,7 +15,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.2.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -38,7 +38,7 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
- +
diff --git a/woocommerce/myaccount/form-edit-account.php b/woocommerce/myaccount/form-edit-account.php index b1d38ba..431f4ce 100644 --- a/woocommerce/myaccount/form-edit-account.php +++ b/woocommerce/myaccount/form-edit-account.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -26,34 +26,34 @@ do_action( 'woocommerce_before_edit_account_form' ); ?> -

- +

+

-

- +

+

-

- +

+

- + -

- +

+

-

- +

+

-

- +

+

@@ -63,7 +63,7 @@ do_action( 'woocommerce_before_edit_account_form' ); ?>

- +

diff --git a/woocommerce/myaccount/form-edit-address.php b/woocommerce/myaccount/form-edit-address.php index 6ca221d..edfb325 100644 --- a/woocommerce/myaccount/form-edit-address.php +++ b/woocommerce/myaccount/form-edit-address.php @@ -1,7 +1,7 @@ -

+

$field ) { - if ( isset( $field['country_field'], $address[ $field['country_field'] ] ) ) { - $field['country'] = wc_get_post_data_by_key( $field['country_field'], $address[ $field['country_field'] ]['value'] ); - } - woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) ); + foreach ( $address as $key => $field ) { + if ( isset( $field['country_field'], $address[ $field['country_field'] ] ) ) { + $field['country'] = wc_get_post_data_by_key( $field['country_field'], $address[ $field['country_field'] ]['value'] ); } + woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) ); + } ?>

- +

diff --git a/woocommerce/myaccount/form-login.php b/woocommerce/myaccount/form-login.php index 22ef787..62bd7c9 100644 --- a/woocommerce/myaccount/form-login.php +++ b/woocommerce/myaccount/form-login.php @@ -13,11 +13,11 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } ?> @@ -34,32 +34,32 @@ if ( ! defined( 'ABSPATH' ) ) { -

+

- - + +

- - + +

- +

- +

@@ -72,7 +72,7 @@ if ( ! defined( 'ABSPATH' ) ) {
-

+

@@ -81,22 +81,22 @@ if ( ! defined( 'ABSPATH' ) ) {

- - + +

- - + +

- - + +

@@ -105,7 +105,7 @@ if ( ! defined( 'ABSPATH' ) ) {

- +

diff --git a/woocommerce/myaccount/form-lost-password.php b/woocommerce/myaccount/form-lost-password.php index 230cc5b..8ac095b 100644 --- a/woocommerce/myaccount/form-lost-password.php +++ b/woocommerce/myaccount/form-lost-password.php @@ -1,7 +1,7 @@ -

+

-

- +

+

@@ -37,7 +37,7 @@ wc_print_notices(); ?>

- +

diff --git a/woocommerce/myaccount/form-reset-password.php b/woocommerce/myaccount/form-reset-password.php index dbadc61..576faa8 100644 --- a/woocommerce/myaccount/form-reset-password.php +++ b/woocommerce/myaccount/form-reset-password.php @@ -1,7 +1,7 @@ -

+

-

- +

+

- +

@@ -44,7 +44,7 @@ wc_print_notices(); ?>

- +

diff --git a/woocommerce/myaccount/my-address.php b/woocommerce/myaccount/my-address.php index 65b0c3d..e511eb4 100644 --- a/woocommerce/myaccount/my-address.php +++ b/woocommerce/myaccount/my-address.php @@ -1,8 +1,7 @@

-'; ?> + +
+ $title ) : ?> @@ -51,30 +52,14 @@ $col = 1;

-
- get_user_meta( $customer_id, $name . '_first_name', true ), - 'last_name' => get_user_meta( $customer_id, $name . '_last_name', true ), - 'company' => get_user_meta( $customer_id, $name . '_company', true ), - 'address_1' => get_user_meta( $customer_id, $name . '_address_1', true ), - 'address_2' => get_user_meta( $customer_id, $name . '_address_2', true ), - 'city' => get_user_meta( $customer_id, $name . '_city', true ), - 'state' => get_user_meta( $customer_id, $name . '_state', true ), - 'postcode' => get_user_meta( $customer_id, $name . '_postcode', true ), - 'country' => get_user_meta( $customer_id, $name . '_country', true ), - ), $customer_id, $name ); - - $formatted_address = WC()->countries->get_formatted_address( $address ); - - if ( ! $formatted_address ) - _e( 'You have not set up this type of address yet.', 'understrap' ); - else - echo $formatted_address; - ?> -
+
-'; ?> + +
+ '_customer_user', 'meta_value' => get_current_user_id(), 'post_type' => wc_get_order_types( 'view-orders' ), - 'post_status' => array_keys( wc_get_order_statuses() ) + 'post_status' => array_keys( wc_get_order_statuses() ), ) ) ); if ( $customer_orders ) : ?> -

+

get_name() ), $item, false ); // @codingStandardsIgnoreLine - do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order ); - $order->display_item_meta( $item ); - do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order ); + do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false ); + + wc_display_item_meta( $item ); + + do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false ); ?> ' . sprintf( '× %s', esc_html( $item['qty'] ) ) . '', $item ); ?>get_formatted_line_subtotal( $item ); ?>' . sprintf( '× %s', esc_html( $item->get_quantity() ) ) . '', $item ); ?>get_formatted_line_subtotal( $item ); ?>
@@ -56,44 +56,26 @@ if ( $customer_orders ) : ?> - + - get_status() ); ?> + get_status() ) ); ?> - get_formatted_order_total(), $item_count ); ?> + get_formatted_order_total(), $item_count ); + ?> array( - 'url' => $order->get_checkout_payment_url(), - 'name' => __( 'Pay', 'understrap' ) - ), - 'view' => array( - 'url' => $order->get_view_order_url(), - 'name' => __( 'View', 'understrap' ) - ), - 'cancel' => array( - 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), - 'name' => __( 'Cancel', 'understrap' ) - ) - ); - - if ( ! $order->needs_payment() ) { - unset( $actions['pay'] ); - } - - if ( ! in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { - unset( $actions['cancel'] ); - } - - if ( $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ) ) { - foreach ( $actions as $key => $action ) { - echo '' . esc_html( $action['name'] ) . ''; - } + $actions = wc_get_account_orders_actions( $order ); + + if ( ! empty( $actions ) ) { + foreach ( $actions as $key => $action ) { + echo '' . esc_html( $action['name'] ) . ''; } + } ?> diff --git a/woocommerce/myaccount/navigation.php b/woocommerce/myaccount/navigation.php index 41283a9..edb1a7d 100644 --- a/woocommerce/myaccount/navigation.php +++ b/woocommerce/myaccount/navigation.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 2.6.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/woocommerce/myaccount/orders.php b/woocommerce/myaccount/orders.php index 1e2921f..56c4ae9 100644 --- a/woocommerce/myaccount/orders.php +++ b/woocommerce/myaccount/orders.php @@ -15,7 +15,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.2.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/woocommerce/product-searchform.php b/woocommerce/product-searchform.php index d72f72d..77e60d4 100644 --- a/woocommerce/product-searchform.php +++ b/woocommerce/product-searchform.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -23,11 +23,11 @@ if ( ! defined( 'ABSPATH' ) ) { ?>
- + - - + +
diff --git a/woocommerce/single-product/add-to-cart/simple.php b/woocommerce/single-product/add-to-cart/simple.php index 42dc91d..9471285 100644 --- a/woocommerce/single-product/add-to-cart/simple.php +++ b/woocommerce/single-product/add-to-cart/simple.php @@ -1,7 +1,7 @@ is_in_stock() ) : ?> - + is_in_stock() ) : ?> do_action( 'woocommerce_after_add_to_cart_quantity' ); ?> - + get_gallery_image_ids(); - -if ( $attachment_ids && has_post_thumbnail() ) { - foreach ( $attachment_ids as $attachment_id ) { - $full_size_image = wp_get_attachment_image_src( $attachment_id, 'full' ); - $thumbnail = wp_get_attachment_image_src( $attachment_id, 'shop_thumbnail' ); - $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], - 'data-large_image_height' => $full_size_image[2], - ); - - $html = ''; - - echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, $attachment_id ); - } -} diff --git a/woocommerce/single-product/rating.php b/woocommerce/single-product/rating.php index b52103b..297111a 100644 --- a/woocommerce/single-product/rating.php +++ b/woocommerce/single-product/rating.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.2 + * @version 3.1.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/woocommerce/single-product/review-rating.php b/woocommerce/single-product/review-rating.php deleted file mode 100644 index b25dd36..0000000 --- a/woocommerce/single-product/review-rating.php +++ /dev/null @@ -1,28 +0,0 @@ -comment_ID, 'rating', true ) ); - -if ( $rating && 'yes' === get_option( 'woocommerce_enable_review_rating' ) ) { - echo wc_get_rating_html( $rating ); -} diff --git a/woocommerce/single-product/short-description.php b/woocommerce/single-product/short-description.php deleted file mode 100644 index d320c1b..0000000 --- a/woocommerce/single-product/short-description.php +++ /dev/null @@ -1,32 +0,0 @@ -post_excerpt ) { - return; -} - -?> -
- post_excerpt ) ?> -