From 73aa2fb165428fda4318cc91a2ecad804cae69a3 Mon Sep 17 00:00:00 2001 From: linuxwebexpert Date: Mon, 24 Sep 2018 13:30:38 +0000 Subject: [PATCH 1/2] Updated WooCommerce templates and Newswheel CSS --- .../woocommerce/archive-product.php | 181 ++++++++---------- .../woocommerce/auth/form-grant-access.php | 4 +- .../woocommerce/auth/form-login.php | 37 ++-- .../woocommerce/cart/cart-item-data.php | 4 +- .../woocommerce/cart/cart-shipping.php | 16 +- .../woocommerce/cart/cart-totals.php | 2 +- .../woocommerce/cart/cart.php | 111 +++++------ .../woocommerce/cart/mini-cart.php | 15 +- .../woocommerce/cart/shipping-calculator.php | 76 ++++---- .../woocommerce/checkout/form-coupon.php | 24 ++- .../woocommerce/checkout/form-login.php | 23 +-- .../woocommerce/checkout/form-pay.php | 58 +++--- .../woocommerce/checkout/order-receipt.php | 47 +++++ .../woocommerce/checkout/payment.php | 32 ++-- .../woocommerce/checkout/review-order.php | 6 +- .../woocommerce/checkout/terms.php | 55 +++--- .../woocommerce/checkout/thankyou.php | 19 +- .../woocommerce/content-product.php | 21 +- .../woocommerce/content-single-product.php | 50 ++--- .../woocommerce/content-widget-product.php | 18 +- .../woocommerce/content-widget-reviews.php | 34 ++++ .../emails/admin-cancelled-order.php | 2 +- .../woocommerce/emails/admin-failed-order.php | 2 +- .../woocommerce/emails/customer-invoice.php | 36 +++- .../emails/customer-reset-password.php | 2 +- .../woocommerce/emails/email-addresses.php | 24 ++- .../emails/email-customer-details.php | 14 +- .../woocommerce/emails/email-downloads.php | 68 +++++++ .../emails/email-order-details.php | 95 +++++---- .../woocommerce/emails/email-order-items.php | 96 ++++++---- .../woocommerce/emails/email-styles.php | 32 +++- .../emails/plain/admin-cancelled-order.php | 2 +- .../emails/plain/admin-failed-order.php | 2 +- .../emails/plain/customer-invoice.php | 18 +- .../emails/plain/customer-reset-password.php | 2 +- .../emails/plain/email-addresses.php | 29 ++- .../emails/plain/email-customer-details.php | 9 +- .../emails/plain/email-downloads.php | 50 +++++ .../emails/plain/email-order-details.php | 27 ++- .../emails/plain/email-order-items.php | 13 +- .../woocommerce/global/form-login.php | 24 +-- .../woocommerce/global/quantity-input.php | 31 ++- .../woocommerce/global/wrapper-end.php | 9 +- .../woocommerce/global/wrapper-start.php | 9 +- .../woocommerce/loop/add-to-cart.php | 15 +- .../woocommerce/loop/loop-end.php | 4 + .../woocommerce/loop/loop-start.php | 8 +- .../woocommerce/loop/orderby.php | 7 +- .../woocommerce/loop/pagination.php | 26 +-- .../woocommerce/loop/result-count.php | 18 +- .../woocommerce/myaccount/dashboard.php | 2 +- .../woocommerce/myaccount/downloads.php | 65 +------ .../myaccount/form-add-payment-method.php | 55 +++--- .../myaccount/form-edit-account.php | 45 +++-- .../myaccount/form-edit-address.php | 25 ++- .../woocommerce/myaccount/form-login.php | 46 ++--- .../myaccount/form-lost-password.php | 19 +- .../myaccount/form-reset-password.php | 23 +-- .../woocommerce/myaccount/my-address.php | 27 +-- .../woocommerce/myaccount/my-downloads.php | 4 +- .../woocommerce/myaccount/my-orders.php | 37 +--- .../woocommerce/myaccount/orders.php | 33 +--- .../woocommerce/myaccount/payment-methods.php | 4 +- .../woocommerce/notices/error.php | 6 +- .../woocommerce/notices/success.php | 6 +- .../woocommerce/order/form-tracking.php | 20 +- .../order/order-details-customer.php | 66 ++----- .../woocommerce/order/order-details-item.php | 7 +- .../woocommerce/order/order-details.php | 57 ++++-- .../woocommerce/order/order-downloads.php | 74 +++++++ .../woocommerce/product-searchform.php | 6 +- .../woocommerce/single-product-reviews.php | 8 +- .../single-product/add-to-cart/external.php | 28 +-- .../single-product/add-to-cart/grouped.php | 130 +++++++------ .../single-product/add-to-cart/simple.php | 50 ++--- .../single-product/add-to-cart/variable.php | 38 ++-- .../variation-add-to-cart-button.php | 40 ++-- .../single-product/add-to-cart/variation.php | 20 +- .../woocommerce/single-product/photoswipe.php | 29 --- .../woocommerce/single-product/price.php | 2 +- .../single-product/product-image.php | 34 ++-- .../single-product/product-thumbnails.php | 28 +-- .../single-product/review-meta.php | 25 +-- .../single-product/short-description.php | 16 +- .../woocommerce/single-product/tabs/tabs.php | 2 +- .../woocommerce/single-product/up-sells.php | 2 +- .../themes/customizr-pro-newswheel/style.css | 8 +- 87 files changed, 1390 insertions(+), 1204 deletions(-) create mode 100644 wp-content/themes/customizr-pro-child/woocommerce/checkout/order-receipt.php create mode 100644 wp-content/themes/customizr-pro-child/woocommerce/content-widget-reviews.php create mode 100644 wp-content/themes/customizr-pro-child/woocommerce/emails/email-downloads.php create mode 100644 wp-content/themes/customizr-pro-child/woocommerce/emails/plain/email-downloads.php create mode 100644 wp-content/themes/customizr-pro-child/woocommerce/order/order-downloads.php diff --git a/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php b/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php index ada4a8f..41b6c89 100644 --- a/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php +++ b/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php @@ -10,121 +10,98 @@ * 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.0.0 + * @see https://docs.woocommerce.com/document/template-structure/ + * @package WooCommerce/Templates + * @version 3.4.0 */ -if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly -} +defined( 'ABSPATH' ) || exit; + +get_header( 'shop' ); -get_header( 'shop' ); ?> +/** + * Hook: woocommerce_before_main_content. + * + * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) + * @hooked woocommerce_breadcrumb - 20 + * @hooked WC_Structured_Data::generate_website_data() - 30 + */ +do_action( 'woocommerce_before_main_content' ); + +?> +
+ +

+ +
+ - - + /** + * Hook: woocommerce_before_shop_loop. + * + * @hooked wc_print_notices - 10 + * @hooked woocommerce_result_count - 20 + * @hooked woocommerce_catalog_ordering - 30 + */ + do_action( 'woocommerce_before_shop_loop' ); -

+ woocommerce_product_loop_start(); - + if ( wc_get_loop_prop( 'total' ) ) { + while ( have_posts() ) { + the_post(); - - - - - - - - - - - - - - - - - - - - - - - - - woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?> - - - - + do_action( 'woocommerce_shop_loop' ); + + wc_get_template_part( 'content', 'product' ); + } + } + + woocommerce_product_loop_end(); + + /** + * Hook: woocommerce_after_shop_loop. + * + * @hooked woocommerce_pagination - 10 + */ + do_action( 'woocommerce_after_shop_loop' ); +} else { + /** + * Hook: woocommerce_no_products_found. + * + * @hooked wc_no_products_found - 10 + */ + do_action( 'woocommerce_no_products_found' ); +} - +/** + * Hook: woocommerce_after_main_content. + * + * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content) + */ +do_action( 'woocommerce_after_main_content' ); - +/** + * Hook: woocommerce_sidebar. + * + * @hooked woocommerce_get_sidebar - 10 + */ +do_action( 'woocommerce_sidebar' ); - +get_footer( 'shop' ); diff --git a/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php b/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php index c7338d7..1a58595 100644 --- a/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php +++ b/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php @@ -22,11 +22,11 @@ -

+

-

' . esc_html( $app_name ) . '', '' . esc_html( $scope ) . '' ); ?>

+

' . esc_html( $app_name ) . '', '' . esc_html( $scope ) . '' ); ?>

diff --git a/wp-content/themes/customizr-pro-child/woocommerce/loop/loop-start.php b/wp-content/themes/customizr-pro-child/woocommerce/loop/loop-start.php index 2d9c5f5..34bbd5b 100644 --- a/wp-content/themes/customizr-pro-child/woocommerce/loop/loop-start.php +++ b/wp-content/themes/customizr-pro-child/woocommerce/loop/loop-start.php @@ -13,7 +13,11 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 2.0.0 + * @version 3.3.0 */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; +} ?> -