diff --git a/.gitignore b/.gitignore index 8e42a23..8884fb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /.env /wp-content/** -!/wp-content/themes/mont58-coffee +!/wp-content/themes/mont58-coffee/** /data/** !/data/.gitkeep diff --git a/wp-content/themes/mont58-coffee/functions.php b/wp-content/themes/mont58-coffee/functions.php new file mode 100644 index 0000000..76372fb --- /dev/null +++ b/wp-content/themes/mont58-coffee/functions.php @@ -0,0 +1,45 @@ +get( 'Version' ) + ); +} +add_action( 'wp_enqueue_scripts', 'mont58coffee_enqueue_styles' ); + +add_filter( 'get_terms', 'ts_get_subcategory_terms', 10, 3 ); +function ts_get_subcategory_terms( $terms, $taxonomies, $args ) { +$new_terms = array(); +// if it is a product category and on the shop page +if ( in_array( 'product_cat', $taxonomies ) && ! is_admin() &&is_shop() ) { +foreach( $terms as $key => $term ) { +if ( !in_array( $term->slug, array( 'african-coffees' ) ) ) { //pass the slug name here +$new_terms[] = $term; +}} +$terms = $new_terms; +} +return $terms; +} + +/** + * Plugin Name: Extend WooCommerce Subscription Intervals + * Description: Add a "every 10 weeks" billing interval to WooCommerce Subscriptions + * Author: Brent Shepherd + * Author URI: http://brent.io + * Version: 1.0 + * License: GPL v2 + */ + +function eg_extend_subscription_period_intervals( $intervals ) { + + $intervals[10] = sprintf( __( 'every %s', 'my-text-domain' ), WC_Subscriptions::append_numeral_suffix( 10 ) ); + + return $intervals; +} +add_filter( 'woocommerce_subscription_period_interval_strings', 'eg_extend_subscription_period_intervals' ); diff --git a/wp-content/themes/mont58-coffee/screenshot.png b/wp-content/themes/mont58-coffee/screenshot.png new file mode 100644 index 0000000..b7a7ede Binary files /dev/null and b/wp-content/themes/mont58-coffee/screenshot.png differ diff --git a/wp-content/themes/mont58-coffee/style.css b/wp-content/themes/mont58-coffee/style.css new file mode 100644 index 0000000..531247e --- /dev/null +++ b/wp-content/themes/mont58-coffee/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Mont58 Coffee +Description: Theme for mont58coffee.com - child theme of Bridge +Template: bridge +Version: 1.0.0 +Text Domain: mont58coffee +*/ \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/template-order-label.php b/wp-content/themes/mont58-coffee/template-order-label.php new file mode 100644 index 0000000..af460e0 --- /dev/null +++ b/wp-content/themes/mont58-coffee/template-order-label.php @@ -0,0 +1,171 @@ + + + + + + + Coffee Label + + + + + + +
+ get_billing_first_name(); + $last_name = $order->get_billing_last_name(); + $postcode = $order->get_billing_postcode(); + $items = $order->get_items(); + $roast_date = (new DateTime())->modify('-3 days')->format('d/m/Y'); + $gift_message = $order->get_meta('_shipping_gift_message'); + + $order_subscription_coffees = get_field('coffees', $order_id); + + $j = 0; // Count order items + foreach ($items as $item) { + // checking if product is a coffee + $product_id = $item->get_product_id(); + $product_categories = get_the_terms($product_id, 'product_cat'); + $is_coffee = false; + $is_subscription = false; + + if (!empty($product_categories) && !is_wp_error($product_categories)) { + foreach ($product_categories as $product_category) { + if ($product_category->slug == 'coffee') { + $is_coffee = true; + break; + } else if ($product_category->slug == 'tasting') { + $is_subscription = true; + break; + } + } + } + + if ((!$is_coffee) && (!$is_subscription)) { + continue; + } + + $brew_method = $item->get_meta('pa_brew-method'); + $weight = $item->get_meta('weight'); + + if ($is_coffee) { + // Non-subscription order + $product_name = $item->get_name(); + $roast = get_field('roast_level', $product_id); + $is_organic = get_field('is_organic', $product_id); + } + + if ($is_subscription) { + $subscriptions = wcs_get_subscriptions_for_order($order_id, array( 'order_type' => 'any' )); + // TODO log / admin warning if there are >1 subscriptions + $subscription = array_pop($subscriptions); + $orders = $subscription->get_related_orders('ids', 'any'); + if (sizeof($orders) == 1) { + $is_new = true; + } + } + + $quantity = $item->get_quantity(); + for ($i = 0; $i < $quantity; $i++) { + if ($is_subscription) { + $coffee = $order_subscription_coffees[$i+$j]["coffee"]; + $product_name = $coffee->post_title; + $roast = get_field('roast_level', $coffee->ID); + $is_organic = get_field('is_organic', $coffee->ID); + } ?> +
+
+
+

+

+

+

Roast

+

Roasted on:

+

+
+
+

+

+

+
+
+
+ +
+ + diff --git a/wp-content/themes/mont58-coffee/woocommerce/archive-product.php b/wp-content/themes/mont58-coffee/woocommerce/archive-product.php new file mode 100644 index 0000000..998cd5c --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/archive-product.php @@ -0,0 +1,105 @@ + +
+ +

+ + + +
+ + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/auth/form-grant-access.php b/wp-content/themes/mont58-coffee/woocommerce/auth/form-grant-access.php new file mode 100644 index 0000000..0b67e7a --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/auth/form-grant-access.php @@ -0,0 +1,61 @@ + + + + +

+ +

+ + + +

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

+ + + +
+ ID, 70 ); ?> +

+ display_name ) ); + ?> + +

+
+ +

+ + +

+ + diff --git a/wp-content/themes/mont58-coffee/woocommerce/auth/form-login.php b/wp-content/themes/mont58-coffee/woocommerce/auth/form-login.php new file mode 100644 index 0000000..b514d99 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/auth/form-login.php @@ -0,0 +1,54 @@ + + +

+ +

+ + + +

+ cancel and return to %1$s', 'woocommerce' ), esc_html( wc_clean( $app_name ) ), esc_url( $return_url ) ) ); + ?> +

+ +
+

+ + +

+

+ + +

+

+ + + +

+
+ + diff --git a/wp-content/themes/mont58-coffee/woocommerce/auth/header.php b/wp-content/themes/mont58-coffee/woocommerce/auth/header.php new file mode 100644 index 0000000..e05ccc9 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/auth/header.php @@ -0,0 +1,33 @@ + +> + + + + + <?php esc_html_e( 'Application authentication request', 'woocommerce' ); ?> + + + + +

<?php esc_attr_e( 'WooCommerce', 'woocommerce' ); ?>

+
diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/cart-empty.php b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-empty.php new file mode 100644 index 0000000..2db3f1e --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-empty.php @@ -0,0 +1,35 @@ + + + +
+ + + + 0 ) : ?> +

+ + + +

+ +
\ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/cart-item-data.php b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-item-data.php new file mode 100644 index 0000000..d930009 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-item-data.php @@ -0,0 +1,26 @@ + +
+ +
:
+
+ +
diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/cart-shipping.php b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-shipping.php new file mode 100644 index 0000000..406b09e --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-shipping.php @@ -0,0 +1,77 @@ +countries->get_formatted_address( $package['destination'], ', ' ); +$has_calculated_shipping = ! empty( $has_calculated_shipping ); +$show_shipping_calculator = ! empty( $show_shipping_calculator ); +$calculator_text = ''; +?> + + + + + + +

+ ' . esc_html( $formatted_destination ) . '' ); + $calculator_text = esc_html__( 'Change address', 'bridge' ); + } else { + echo wp_kses_post( apply_filters( 'woocommerce_shipping_estimate_html', esc_html__( 'Shipping options will be updated during checkout.', 'bridge' ) ) ); + } + ?> +

+ + ' . esc_html( $formatted_destination ) . '' ) ) ); + $calculator_text = esc_html__( 'Enter a different address', 'bridge' ); + endif; + ?> + + + ' . esc_html( $package_details ) . '

'; ?> + + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/cart-totals.php b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-totals.php new file mode 100644 index 0000000..87f36df --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/cart-totals.php @@ -0,0 +1,41 @@ + +
+ + + + + + + + + + + +
+ + + + +
diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/cart.php b/wp-content/themes/mont58-coffee/woocommerce/cart/cart.php new file mode 100644 index 0000000..b1d531c --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/cart.php @@ -0,0 +1,192 @@ + + +
+ + + + + + + + + + + + + + + + + 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 ); + + 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', 'bridge' ), + esc_attr( $product_id ), + esc_attr( $_product->get_sku() ) + ), $cart_item_key ); + ?> + + get_image(), $cart_item, $cart_item_key ); + + if ( ! $product_permalink ) { + echo bridge_qode_get_module_part($thumbnail); // PHPCS: XSS ok. + } else { + printf( '%s', esc_url( $product_permalink ), $thumbnail ); // PHPCS: XSS ok. + } + ?> + + = 0 ) { + if ( ! $product_permalink ) { + echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', esc_html( $_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 ) ); + } + } else { + if ( ! $product_permalink ) { + echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ) . ' '; + } else { + echo apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_title() ), $cart_item, $cart_item_key ); + } + } + + /*** Our code modification inside Woo template - end ***/ + + // Meta data. + echo wc_get_formatted_cart_item_data( $cart_item ); // PHPCS: XSS ok. + + // Backorder notification. + if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) { + echo wp_kses_post( apply_filters( 'woocommerce_cart_item_backorder_notification', '

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

', $product_id ) ); + } + ?> +
+ cart->get_product_price( $_product ), $cart_item, $cart_item_key ); // PHPCS: XSS ok. + ?> + + 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 ); // PHPCS: XSS ok. + ?> + + cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); + ?> +
+ + + +
+ + +
+ + + +
+ + + + + + + + + + +
+ +
+ + diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/cross-sells.php b/wp-content/themes/mont58-coffee/woocommerce/cart/cross-sells.php new file mode 100644 index 0000000..2f9a478 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/cross-sells.php @@ -0,0 +1,51 @@ + + +
+ +

+ + + + + + + get_id() ); + + setup_postdata( $GLOBALS['post'] =& $post_object ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited, Squiz.PHP.DisallowMultipleAssignments.Found + + wc_get_template_part( 'content', 'product' ); + ?> + + + + + +
+ + +cart->is_empty() ) : ?> + + + +

+ +

+ + + +

+ + + + + +

+ + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/proceed-to-checkout-button.php b/wp-content/themes/mont58-coffee/woocommerce/cart/proceed-to-checkout-button.php new file mode 100644 index 0000000..e02f0b8 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/proceed-to-checkout-button.php @@ -0,0 +1,27 @@ + + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/cart/shipping-calculator.php b/wp-content/themes/mont58-coffee/woocommerce/cart/shipping-calculator.php new file mode 100644 index 0000000..cd61d02 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/cart/shipping-calculator.php @@ -0,0 +1,105 @@ + + +
+ + +

+ + + +
+ + diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/cart-errors.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/cart-errors.php new file mode 100644 index 0000000..85a280e --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/cart-errors.php @@ -0,0 +1,25 @@ + + +

+ + + +

diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/form-billing.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-billing.php new file mode 100644 index 0000000..9889929 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-billing.php @@ -0,0 +1,74 @@ + +
+ cart->needs_shipping() ) : ?> + +

+ + + +

+ + + + + +
+ get_checkout_fields( 'billing' ); + + foreach ( $fields as $key => $field ) { + woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); + } + ?> +
+ + +
+ +is_registration_enabled() ) : ?> +
+ is_registration_required() ) : ?> + + + + + + + + get_checkout_fields( 'account' ) ) : ?> + + + + + + +
+ diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/form-checkout.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-checkout.php new file mode 100644 index 0000000..00d5459 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-checkout.php @@ -0,0 +1,66 @@ +is_registration_enabled() && $checkout->is_registration_required() && ! is_user_logged_in() ) { + echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ) ) ); + return; +} + +?> + +
+ + get_checkout_fields() ) : ?> + + + +
+
+ +
+ +
+ +
+
+ + + + + + + +

+ + + +
+ +
+ + + +
+ + diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/form-coupon.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-coupon.php new file mode 100644 index 0000000..bf1c0d2 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-coupon.php @@ -0,0 +1,40 @@ + + +
+ ' . esc_html__( 'Click here to enter your code', 'bridge' ) . '' ), 'notice' ); ?> +
+ + \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/form-login.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-login.php new file mode 100644 index 0000000..c9da081 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-login.php @@ -0,0 +1,36 @@ + +
+ ' . esc_html__( 'Click here to login', 'woocommerce' ) . '', 'notice' ); ?> +
+ esc_html__( 'If you have shopped with us before, please enter your details below. If you are a new customer, please proceed to the Billing section.', 'woocommerce' ), + 'redirect' => wc_get_checkout_url(), + 'hidden' => true, + ) +); diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/form-pay.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-pay.php new file mode 100644 index 0000000..8a44c97 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-pay.php @@ -0,0 +1,98 @@ +get_order_item_totals(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited +?> +
+ + + + + + + + + + + get_items() ) > 0 ) : ?> + get_items() as $item_id => $item ) : ?> + + + + + + + + + + + + + + + + + + + +
+ get_name(), $item, false ) ); + + 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->get_quantity() ) ) . '', $item ); ?>get_formatted_line_subtotal( $item ); ?>
+ +
+ needs_payment() ) : ?> +
    + $gateway ) ); + } + } else { + echo '
  • ' . apply_filters( 'woocommerce_no_available_payment_methods_message', esc_html__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ) . '
  • '; // @codingStandardsIgnoreLine + } + ?> +
+ +
+ + + + + + + ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?> + + + + +
+
+
diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/form-shipping.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-shipping.php new file mode 100644 index 0000000..f395ba2 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/form-shipping.php @@ -0,0 +1,70 @@ + +
+ cart->needs_shipping_address() ) : ?> + +

+ +

+ +
+ + + +
+ get_checkout_fields( 'shipping' ); + + foreach ( $fields as $key => $field ) { + woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); + } + ?> +
+ + + +
+ + +
+
+ + + + + cart->needs_shipping() || wc_ship_to_billing_address_only() ) : ?> + +

+ + + +
+ get_checkout_fields( 'order' ) as $key => $field ) : ?> + get_value( $key ) ); ?> + +
+ + + + +
diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/order-receipt.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/order-receipt.php new file mode 100644 index 0000000..bd8ca6f --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/order-receipt.php @@ -0,0 +1,46 @@ + + + + +get_payment_method(), $order->get_id() ); ?> + +
diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/payment-method.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/payment-method.php new file mode 100644 index 0000000..a3d4dbd --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/payment-method.php @@ -0,0 +1,33 @@ + +
  • + chosen, true ); ?> data-order_button_text="order_button_text ); ?>" /> + + + has_fields() || $gateway->get_description() ) : ?> +
    chosen ) : /* phpcs:ignore Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace */ ?>style="display:none;"> + payment_fields(); ?> +
    + +
  • diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/payment.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/payment.php new file mode 100644 index 0000000..bbe92b8 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/payment.php @@ -0,0 +1,61 @@ + +
    + cart->needs_payment() ) : ?> + + +
    + + + + + + + ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?> + + + + +
    +
    + + + + + + + + + + cart->get_cart() as $cart_item_key => $cart_item ) { + $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); + + if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ) ) { + ?> + + + + + + + + + + + + + + cart->get_coupons() as $code => $coupon ) : ?> + + + + + + + cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> + + + + + + + + + + cart->get_fees() as $fee ) : ?> + + + + + + + cart->display_prices_including_tax() ) : ?> + + cart->get_tax_totals() as $code => $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?> + + + + + + + + + + + + + + + + + + + + + + + +
    + get_name(), $cart_item, $cart_item_key ) ) . ' '; ?> + ' . sprintf( '× %s', $cart_item['quantity'] ) . '', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> + + + cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> +
    name ); ?>
    label ); ?>formatted_amount ); ?>
    countries->tax_or_vat() ); ?>
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/checkout/terms.php b/wp-content/themes/mont58-coffee/woocommerce/checkout/terms.php new file mode 100644 index 0000000..e2c385c --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/checkout/terms.php @@ -0,0 +1,40 @@ + +
    + + + +

    + + +

    + +
    + + +
    + + + get_id() ); ?> + + has_status( 'failed' ) ) : ?> + +

    + +

    + + + + +

    + + + +

    + + +
    + + + +
    + = 0 ) { ?> + get_payment_method(), $order->get_id() ); ?> + get_id() ); ?> + + payment_method, $order->get_id() ); ?> + get_id() ); ?> + + +
    + + + +

    + + + + +
    \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/content-product-cat.php b/wp-content/themes/mont58-coffee/woocommerce/content-product-cat.php new file mode 100644 index 0000000..e212f98 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/content-product-cat.php @@ -0,0 +1,57 @@ + +
  • > + +
  • diff --git a/wp-content/themes/mont58-coffee/woocommerce/content-product.php b/wp-content/themes/mont58-coffee/woocommerce/content-product.php new file mode 100644 index 0000000..c6831bb --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/content-product.php @@ -0,0 +1,86 @@ +is_visible() ) { + return; +} + +$bridge_qode_options = bridge_qode_return_global_options(); +?> + += 0 ) { ?> +
  • > + +
  • > + + + +
    + + + + + +
    + = 0 ) { + echo wc_get_product_category_list( $product->get_id(), ', ','
    ','
    ' ); + } else { + echo bridge_qode_get_module_part( $product->get_categories(', ','
    ','
    ') ); + } + } ?> + + + + +
  • \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/content-single-product.php b/wp-content/themes/mont58-coffee/woocommerce/content-single-product.php new file mode 100644 index 0000000..e406cd8 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/content-single-product.php @@ -0,0 +1,84 @@ + + += 0 ) { ?> +
    > + +
    > + + + + +
    +
    + +
    +
    + + +
    + + \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/content-widget-price-filter.php b/wp-content/themes/mont58-coffee/woocommerce/content-widget-price-filter.php new file mode 100644 index 0000000..2bb2541 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/content-widget-price-filter.php @@ -0,0 +1,42 @@ + + + +
    +
    + +
    + + + + + + + + +
    +
    +
    +
    + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/content-widget-product.php b/wp-content/themes/mont58-coffee/woocommerce/content-widget-product.php new file mode 100644 index 0000000..a64ff1e --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/content-widget-product.php @@ -0,0 +1,43 @@ + +
  • + + + + get_image(); // PHPCS:Ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> + get_name() ); ?> + + + + get_average_rating() ); // PHPCS:Ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> + + + get_price_html(); // PHPCS:Ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> + + +
  • diff --git a/wp-content/themes/mont58-coffee/woocommerce/content-widget-reviews.php b/wp-content/themes/mont58-coffee/woocommerce/content-widget-reviews.php new file mode 100644 index 0000000..d163684 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/content-widget-reviews.php @@ -0,0 +1,47 @@ + +
  • + + + + + + get_image(); ?> + get_name() ); ?> + + + comment_ID, 'rating', true ) ) ); ?> + + + comment_ID ) ); + ?> + + + + + +
  • diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/admin-cancelled-order.php b/wp-content/themes/mont58-coffee/woocommerce/emails/admin-cancelled-order.php new file mode 100644 index 0000000..af11740 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/admin-cancelled-order.php @@ -0,0 +1,60 @@ + + + +

    get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ); ?>

    + + + + +

    get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ); ?>

    + + + + +

    get_formatted_billing_full_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

    + + + +

    get_billing_first_name() ) ); ?>

    +

    + + + +

    get_billing_first_name() ) ); ?>

    + +needs_payment() ) { ?> +

    + array( + 'href' => array(), + ), + ) + ), + esc_html( get_bloginfo( 'name', 'display' ) ), + '' . esc_html__( 'Pay for this order', 'woocommerce' ) . '' + ); + ?> +

    + + +

    + get_date_created() ) ) ); + ?> +

    + + + +

    + +

    ' . esc_html( $user_login ) . '', make_clickable( esc_url( wc_get_page_permalink( 'myaccount' ) ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

    + + +

    + + + + + +

    get_billing_first_name() ) ); ?>

    +

    + +
    + +

    + + + + +

    get_billing_first_name() ) ); ?>

    +

    + + + + +

    get_billing_first_name() ) ); ?>

    + +

    get_order_number() ) ); ?>

    + + + + +

    get_billing_first_name() ) ); ?>

    + +

    + +

    + + + + + +

    + +

    + +

    +

    +

    + + + +

    + +get_formatted_billing_address(); +$shipping = $order->get_formatted_shipping_address(); + +?> + + + needs_shipping_address() && $shipping ) : ?> + + + +
    +

    + +
    + + get_billing_phone() ) : ?> +
    get_billing_phone() ); ?> + + get_billing_email() ) : ?> +
    get_billing_email() ); ?> + +
    +
    +

    + +
    + + get_shipping_phone() ) : ?> +
    get_shipping_phone() ); ?> + +
    +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/email-customer-details.php b/wp-content/themes/mont58-coffee/woocommerce/emails/email-customer-details.php new file mode 100644 index 0000000..70c42c2 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/email-customer-details.php @@ -0,0 +1,31 @@ + + +
    +

    +
      + +
    • :
    • + +
    +
    + diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/email-downloads.php b/wp-content/themes/mont58-coffee/woocommerce/emails/email-downloads.php new file mode 100644 index 0000000..6fce472 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/email-downloads.php @@ -0,0 +1,68 @@ +

    + + + + + $column_name ) : ?> + + + + + + + + $column_name ) : ?> + + + + +
    + + + + + + + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/email-footer.php b/wp-content/themes/mont58-coffee/woocommerce/emails/email-footer.php new file mode 100644 index 0000000..4579924 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/email-footer.php @@ -0,0 +1,56 @@ + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/email-header.php b/wp-content/themes/mont58-coffee/woocommerce/emails/email-header.php new file mode 100644 index 0000000..23793c0 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/email-header.php @@ -0,0 +1,65 @@ + + +> + + + <?php echo get_bloginfo( 'name', 'display' ); ?> + + ="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"> +
    + + +
    +
    + ' . get_bloginfo( 'name', 'display' ) . '

    '; + } + ?> +
    + + + + + +
    + + + + + +
    +

    +
    + +
    + + + + + + + + + + + + + + + + + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/order/order-details.php b/wp-content/themes/mont58-coffee/woocommerce/order/order-details.php new file mode 100644 index 0000000..d5b5966 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/order/order-details.php @@ -0,0 +1,114 @@ +get_items( apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) ); +$show_purchase_note = $order->has_status( apply_filters( 'woocommerce_purchase_note_order_statuses', array( 'completed', 'processing' ) ) ); +$show_customer_details = is_user_logged_in() && $order->get_user_id() === get_current_user_id(); +$downloads = $order->get_downloadable_items(); +$show_downloads = $order->has_downloadable_item() && $order->is_download_permitted(); + +if ( $show_downloads ) { + wc_get_template( + 'order/order-downloads.php', + array( + 'downloads' => $downloads, + 'show_title' => true, + ) + ); +} +?> +
    + + +

    + +
    + + + + + + + + + + + + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/email-styles.php b/wp-content/themes/mont58-coffee/woocommerce/emails/email-styles.php new file mode 100644 index 0000000..6b4a2fd --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/email-styles.php @@ -0,0 +1,228 @@ + +body { + padding: 0; +} + +#wrapper { + background-color: ; + margin: 0; + padding: 70px 0; + -webkit-text-size-adjust: none !important; + width: 100%; +} + +#template_container { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important; + background-color: ; + border: 1px solid ; + border-radius: 3px !important; +} + +#template_header { + background-color: ; + border-radius: 3px 3px 0 0 !important; + color: ; + border-bottom: 0; + font-weight: bold; + line-height: 100%; + vertical-align: middle; + font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; +} + +#template_header h1, +#template_header h1 a { + color: ; + background-color: inherit; +} + +#template_header_image img { + margin-left: 0; + margin-right: 0; +} + +#template_footer td { + padding: 0; + border-radius: 6px; +} + +#template_footer #credit { + border: 0; + color: ; + font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + font-size: 12px; + line-height: 150%; + text-align: center; + padding: 24px 0; +} + +#template_footer #credit p { + margin: 0 0 16px; +} + +#body_content { + background-color: ; +} + +#body_content table td { + padding: 48px 48px 32px; +} + +#body_content table td td { + padding: 12px; +} + +#body_content table td th { + padding: 12px; +} + +#body_content td ul.wc-item-meta { + font-size: small; + margin: 1em 0 0; + padding: 0; + list-style: none; +} + +#body_content td ul.wc-item-meta li { + margin: 0.5em 0 0; + padding: 0; +} + +#body_content td ul.wc-item-meta li p { + margin: 0; +} + +#body_content p { + margin: 0 0 16px; +} + +#body_content_inner { + color: ; + font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + font-size: 14px; + line-height: 150%; + text-align: ; +} + +.td { + color: ; + border: 1px solid ; + vertical-align: middle; +} + +.address { + padding: 12px; + color: ; + border: 1px solid ; +} + +.text { + color: ; + font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; +} + +.link { + color: ; +} + +#header_wrapper { + padding: 36px 48px; + display: block; +} + +h1 { + color: ; + font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + font-size: 30px; + font-weight: 300; + line-height: 150%; + margin: 0; + text-align: ; + text-shadow: 0 1px 0 ; +} + +h2 { + color: ; + display: block; + font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + font-size: 18px; + font-weight: bold; + line-height: 130%; + margin: 0 0 18px; + text-align: ; +} + +h3 { + color: ; + display: block; + font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + font-size: 16px; + font-weight: bold; + line-height: 130%; + margin: 16px 0 8px; + text-align: ; +} + +a { + color: ; + font-weight: normal; + text-decoration: underline; +} + +img { + border: none; + display: inline-block; + font-size: 14px; + font-weight: bold; + height: auto; + outline: none; + text-decoration: none; + text-transform: capitalize; + vertical-align: middle; + margin-: 10px; + max-width: 100%; +} +get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ) . "\n\n"; + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/admin-failed-order.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/admin-failed-order.php new file mode 100644 index 0000000..90148e6 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/admin-failed-order.php @@ -0,0 +1,58 @@ +get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ) . "\n\n"; + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/admin-new-order.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/admin-new-order.php new file mode 100644 index 0000000..97931f6 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/admin-new-order.php @@ -0,0 +1,58 @@ +get_formatted_billing_full_name() ) ) . "\n\n"; + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-completed-order.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-completed-order.php new file mode 100644 index 0000000..56f0071 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-completed-order.php @@ -0,0 +1,60 @@ +get_billing_first_name() ) ) . "\n\n"; +/* translators: %s: Site title */ +echo esc_html__( 'We have finished processing your order.', 'woocommerce' ) . "\n\n"; + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-invoice.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-invoice.php new file mode 100644 index 0000000..a70e610 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-invoice.php @@ -0,0 +1,79 @@ +get_billing_first_name() ) ) . "\n\n"; + +if ( $order->has_status( 'pending' ) ) { + echo wp_kses_post( + sprintf( + /* translators: %1$s: Site title, %2$s: Order pay link */ + __( 'An order has been created for you on %1$s. Your invoice is below, with a link to make payment when you’re ready: %2$s', 'woocommerce' ), + esc_html( get_bloginfo( 'name', 'display' ) ), + esc_url( $order->get_checkout_payment_url() ) + ) + ) . "\n\n"; + +} else { + /* translators: %s: Order date */ + echo sprintf( esc_html__( 'Here are the details of your order placed on %s:', 'woocommerce' ), esc_html( wc_format_datetime( $order->get_date_created() ) ) ) . "\n\n"; +} + +/** + * Hook for the woocommerce_email_order_details. + * + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/** + * Hook for the woocommerce_email_order_meta. + * + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/** + * Hook for woocommerce_email_customer_details + * + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-new-account.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-new-account.php new file mode 100644 index 0000000..b647764 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-new-account.php @@ -0,0 +1,46 @@ +get_billing_first_name() ) ) . "\n\n"; +echo esc_html__( 'The following note has been added to your order:', 'woocommerce' ) . "\n\n"; + +echo "----------\n\n"; + +echo wptexturize( $customer_note ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped + +echo "----------\n\n"; + +echo esc_html__( 'As a reminder, here are your order details:', 'woocommerce' ) . "\n\n"; + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-on-hold-order.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-on-hold-order.php new file mode 100644 index 0000000..b5dec0a --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-on-hold-order.php @@ -0,0 +1,59 @@ +get_billing_first_name() ) ) . "\n\n"; +echo esc_html__( 'Thanks for your order. It’s on-hold until we confirm that payment has been received. In the meantime, here’s a reminder of what you ordered:', 'woocommerce' ) . "\n\n"; + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-processing-order.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-processing-order.php new file mode 100644 index 0000000..fead3d7 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-processing-order.php @@ -0,0 +1,60 @@ +get_billing_first_name() ) ) . "\n\n"; +/* translators: %s: Order number */ +echo sprintf( esc_html__( 'Just to let you know — we\'ve received your order #%s, and it is now being processed:', 'woocommerce' ), esc_html( $order->get_order_number() ) ) . "\n\n"; + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-refunded-order.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-refunded-order.php new file mode 100644 index 0000000..69fbf73 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-refunded-order.php @@ -0,0 +1,65 @@ +get_billing_first_name() ) ) . "\n\n"; +if ( $partial_refund ) { + /* translators: %s: Site title */ + echo sprintf( esc_html__( 'Your order on %s has been partially refunded. There are more details below for your reference:', 'woocommerce' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped +} else { + /* translators: %s: Site title */ + echo sprintf( esc_html__( 'Your order on %s has been refunded. There are more details below for your reference:', 'woocommerce' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped +} + +/* + * @hooked WC_Emails::order_details() Shows the order details table. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. + * @since 2.5.0 + */ +do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n----------------------------------------\n\n"; + +/* + * @hooked WC_Emails::order_meta() Shows order meta data. + */ +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); + +/* + * @hooked WC_Emails::customer_details() Shows customer details + * @hooked WC_Emails::email_address() Shows email address + */ +do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-reset-password.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-reset-password.php new file mode 100644 index 0000000..efc4e5b --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/customer-reset-password.php @@ -0,0 +1,43 @@ + $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ) . "\n\n"; // phpcs:ignore + +echo "\n\n----------------------------------------\n\n"; + +/** + * Show user-defined additional content - this is set in each email's settings. + */ +if ( $additional_content ) { + echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); + echo "\n\n----------------------------------------\n\n"; +} + +echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-addresses.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-addresses.php new file mode 100644 index 0000000..c9eef44 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-addresses.php @@ -0,0 +1,42 @@ +#i', "\n", $order->get_formatted_billing_address() ) . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + +if ( $order->get_billing_phone() ) { + echo $order->get_billing_phone() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped +} + +if ( $order->get_billing_email() ) { + echo $order->get_billing_email() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped +} + +if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) { + $shipping = $order->get_formatted_shipping_address(); + + if ( $shipping ) { + echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Shipping address', 'woocommerce' ) ) ) . "\n\n"; + echo preg_replace( '##i', "\n", $shipping ) . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + + if ( $order->get_shipping_phone() ) { + echo $order->get_shipping_phone() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + } + } +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-customer-details.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-customer-details.php new file mode 100644 index 0000000..e86c24a --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-customer-details.php @@ -0,0 +1,26 @@ + $column_name ) { + echo wp_kses_post( $column_name ) . ': '; + + if ( has_action( 'woocommerce_email_downloads_column_' . $column_id ) ) { + do_action( 'woocommerce_email_downloads_column_' . $column_id, $download, $plain_text ); + } else { + switch ( $column_id ) { + case 'download-product': + echo esc_html( $download['product_name'] ); + break; + case 'download-file': + echo esc_html( $download['download_name'] ) . ' - ' . esc_url( $download['download_url'] ); + break; + case 'download-expires': + if ( ! empty( $download['access_expires'] ) ) { + echo esc_html( date_i18n( get_option( 'date_format' ), strtotime( $download['access_expires'] ) ) ); + } else { + esc_html_e( 'Never', 'woocommerce' ); + } + break; + } + } + echo "\n"; + } + echo "\n"; +} +echo '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='; +echo "\n\n"; diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-order-details.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-order-details.php new file mode 100644 index 0000000..3a292aa --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-order-details.php @@ -0,0 +1,54 @@ +get_order_number(), wc_format_datetime( $order->get_date_created() ) ) ) ) . "\n"; +echo "\n" . wc_get_email_order_items( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + $order, + array( + 'show_sku' => $sent_to_admin, + 'show_image' => false, + 'image_size' => array( 32, 32 ), + 'plain_text' => true, + 'sent_to_admin' => $sent_to_admin, + ) +); + +echo "==========\n\n"; + +$item_totals = $order->get_order_item_totals(); + +if ( $item_totals ) { + foreach ( $item_totals as $total ) { + echo wp_kses_post( $total['label'] . "\t " . $total['value'] ) . "\n"; + } +} + +if ( $order->get_customer_note() ) { + echo esc_html__( 'Note:', 'woocommerce' ) . "\t " . wp_kses_post( wptexturize( $order->get_customer_note() ) ) . "\n"; +} + +if ( $sent_to_admin ) { + /* translators: %s: Order link. */ + echo "\n" . sprintf( esc_html__( 'View order: %s', 'woocommerce' ), esc_url( $order->get_edit_order_url() ) ) . "\n"; +} + +do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-order-items.php b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-order-items.php new file mode 100644 index 0000000..61cf3fd --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/plain/email-order-items.php @@ -0,0 +1,66 @@ + $item ) : + if ( apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { + $product = $item->get_product(); + $sku = ''; + $purchase_note = ''; + + if ( is_object( $product ) ) { + $sku = $product->get_sku(); + $purchase_note = $product->get_purchase_note(); + } + + // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped + echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) ); + if ( $show_sku && $sku ) { + echo ' (#' . $sku . ')'; + } + echo ' X ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item ); + echo ' = ' . $order->get_formatted_line_subtotal( $item ) . "\n"; + // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped + + // allow other plugins to add additional product information here. + do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + echo strip_tags( + wc_display_item_meta( + $item, + array( + 'before' => "\n- ", + 'separator' => "\n- ", + 'after' => '', + 'echo' => false, + 'autop' => false, + ) + ) + ); + + // allow other plugins to add additional product information here. + do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text ); + } + // Note. + if ( $show_purchase_note && $purchase_note ) { + echo "\n" . do_shortcode( wp_kses_post( $purchase_note ) ); + } + echo "\n\n"; +endforeach; diff --git a/wp-content/themes/mont58-coffee/woocommerce/global/breadcrumb.php b/wp-content/themes/mont58-coffee/woocommerce/global/breadcrumb.php new file mode 100644 index 0000000..3d6bc21 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/global/breadcrumb.php @@ -0,0 +1,46 @@ + $crumb ) { + + echo $before; + + if ( ! empty( $crumb[1] ) && sizeof( $breadcrumb ) !== $key + 1 ) { + echo '' . esc_html( $crumb[0] ) . ''; + } else { + echo esc_html( $crumb[0] ); + } + + echo $after; + + if ( sizeof( $breadcrumb ) !== $key + 1 ) { + echo $delimiter; + } + } + + echo $wrap_after; + +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/global/form-login.php b/wp-content/themes/mont58-coffee/woocommerce/global/form-login.php new file mode 100644 index 0000000..3b6ab10 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/global/form-login.php @@ -0,0 +1,61 @@ + + + +> + + + + + +

    + +

    +

    + +

    +
    + + + +

    + + + + + +

    + +
    + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/global/quantity-input.php b/wp-content/themes/mont58-coffee/woocommerce/global/quantity-input.php new file mode 100644 index 0000000..2718572 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/global/quantity-input.php @@ -0,0 +1,34 @@ + + + +
    + + + +
    + '; + break; + case 'twentyeleven': + echo ''; + get_sidebar( 'shop' ); + echo ''; + break; + case 'twentytwelve': + echo ''; + break; + case 'twentythirteen': + echo ''; + break; + case 'twentyfourteen': + echo ''; + get_sidebar( 'content' ); + break; + case 'twentyfifteen': + echo ''; + break; + case 'twentysixteen': + echo ''; + break; + default: + echo ''; + break; +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/global/wrapper-start.php b/wp-content/themes/mont58-coffee/woocommerce/global/wrapper-start.php new file mode 100644 index 0000000..aceb891 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/global/wrapper-start.php @@ -0,0 +1,49 @@ +
    '; + break; + case 'twentyeleven': + echo '
    '; + break; + case 'twentytwelve': + echo '
    '; + break; + case 'twentythirteen': + echo '
    '; + break; + case 'twentyfourteen': + echo '
    '; + break; + case 'twentyfifteen': + echo '
    '; + break; + case 'twentysixteen': + echo '
    '; + break; + default: + echo '
    '; + break; +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/add-to-cart.php b/wp-content/themes/mont58-coffee/woocommerce/loop/add-to-cart.php new file mode 100644 index 0000000..80e3a6a --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/add-to-cart.php @@ -0,0 +1,48 @@ +is_in_stock() ) : ?> + + + + + +%s', + esc_url( $product->add_to_cart_url() ), + esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), + esc_attr( isset( $args['class'] ) ? $args['class'] . $button_classes : 'button' . $button_classes ), + isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', + esc_html( $product->add_to_cart_text() ) + ), + $product, $args ); + +endif; diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/loop-end.php b/wp-content/themes/mont58-coffee/woocommerce/loop/loop-end.php new file mode 100644 index 0000000..802acb9 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/loop-end.php @@ -0,0 +1,22 @@ + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/loop-start.php b/wp-content/themes/mont58-coffee/woocommerce/loop/loop-start.php new file mode 100644 index 0000000..cd898c1 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/loop-start.php @@ -0,0 +1,19 @@ + +
      \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/no-products-found.php b/wp-content/themes/mont58-coffee/woocommerce/loop/no-products-found.php new file mode 100644 index 0000000..8320350 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/no-products-found.php @@ -0,0 +1,21 @@ + +

      diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/orderby.php b/wp-content/themes/mont58-coffee/woocommerce/loop/orderby.php new file mode 100644 index 0000000..5b2c1f8 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/orderby.php @@ -0,0 +1,31 @@ + +
      + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/pagination.php b/wp-content/themes/mont58-coffee/woocommerce/loop/pagination.php new file mode 100644 index 0000000..08b7570 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/pagination.php @@ -0,0 +1,46 @@ + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/price.php b/wp-content/themes/mont58-coffee/woocommerce/loop/price.php new file mode 100644 index 0000000..951ca17 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/price.php @@ -0,0 +1,27 @@ + + +get_price_html() ) : ?> + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/rating.php b/wp-content/themes/mont58-coffee/woocommerce/loop/rating.php new file mode 100644 index 0000000..f6d4433 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/rating.php @@ -0,0 +1,28 @@ +get_average_rating() ); // WordPress.XSS.EscapeOutput.OutputNotEscaped. \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/result-count.php b/wp-content/themes/mont58-coffee/woocommerce/loop/result-count.php new file mode 100644 index 0000000..6a02de7 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/result-count.php @@ -0,0 +1,38 @@ + +

      + +

      diff --git a/wp-content/themes/mont58-coffee/woocommerce/loop/sale-flash.php b/wp-content/themes/mont58-coffee/woocommerce/loop/sale-flash.php new file mode 100644 index 0000000..0ad16f5 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/loop/sale-flash.php @@ -0,0 +1,34 @@ + +is_on_sale() ) : ?> + + + '.esc_html__( 'Sale', 'bridge' ).'', $post, $product ); ?> + + + +
    + + + +get_date( 'next_payment', 'site' ); ?> + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/dashboard.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/dashboard.php new file mode 100644 index 0000000..9f79a91 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/dashboard.php @@ -0,0 +1,81 @@ + array( + 'href' => array(), + ), +); +?> + +

    + Log out)', 'woocommerce' ), $allowed_html ), + '' . esc_html( $current_user->display_name ) . '', + esc_url( wc_logout_url() ) + ); + ?> +

    + +

    + recent orders, manage your billing address, and edit your password and account details.', 'woocommerce' ); + if ( wc_shipping_enabled() ) { + /* translators: 1: Orders URL 2: Addresses URL 3: Account URL. */ + $dashboard_desc = __( 'From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.', 'woocommerce' ); + } + printf( + wp_kses( $dashboard_desc, $allowed_html ), + esc_url( wc_get_endpoint_url( 'orders' ) ), + esc_url( wc_get_endpoint_url( 'edit-address' ) ), + esc_url( wc_get_endpoint_url( 'edit-account' ) ) + ); + ?> +

    + +customer->get_downloadable_products(); +$has_downloads = (bool) $downloads; + +do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?> + + + + + + + + + + +
    + + + + +
    + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription-address.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription-address.php new file mode 100644 index 0000000..a8bd8d0 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription-address.php @@ -0,0 +1,29 @@ + +

    + +

    + + $field ) { + woocommerce_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? wc_clean( $_POST[ $key ] ) : $field['value'] ); // phpcs: ignore. + } + + do_action( "woocommerce_after_edit_address_form_{$load_address}" ); +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription-products.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription-products.php new file mode 100644 index 0000000..8ad1830 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription-products.php @@ -0,0 +1,126 @@ + +
    +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/email-mobile-messaging.php b/wp-content/themes/mont58-coffee/woocommerce/emails/email-mobile-messaging.php new file mode 100644 index 0000000..5d9d320 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/email-mobile-messaging.php @@ -0,0 +1,20 @@ + + +

    + get_edit_order_url() ) . '">'; + $after = ''; + } else { + $before = ''; + $after = ''; + } + /* translators: %s: Order ID. */ + echo wp_kses_post( $before . sprintf( __( '[Order #%s]', 'woocommerce' ) . $after . ' ()', $order->get_order_number(), $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ) ); + ?> +

    + +
    + + + + + + + + + + $sent_to_admin, + 'show_image' => false, + 'image_size' => array( 32, 32 ), + 'plain_text' => $plain_text, + 'sent_to_admin' => $sent_to_admin, + ) + ); + ?> + + + get_order_item_totals(); + + if ( $item_totals ) { + $i = 0; + foreach ( $item_totals as $total ) { + $i++; + ?> + + + + + get_customer_note() ) { + ?> + + + + + + +
    get_customer_note() ) ) ); ?>
    +
    + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/emails/email-order-items.php b/wp-content/themes/mont58-coffee/woocommerce/emails/email-order-items.php new file mode 100644 index 0000000..74bc9c1 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/emails/email-order-items.php @@ -0,0 +1,104 @@ + $item ) : + $product = $item->get_product(); + $sku = ''; + $purchase_note = ''; + $image = ''; + + if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { + continue; + } + + if ( is_object( $product ) ) { + $sku = $product->get_sku(); + $purchase_note = $product->get_purchase_note(); + $image = $product->get_image( $image_size ); + } + + ?> +
    + get_name(), $item, false ) ); + + // SKU. + if ( $show_sku && $sku ) { + echo wp_kses_post( ' (#' . $sku . ')' ); + } + + // allow other plugins to add additional product information here. + do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); + + wc_display_item_meta( + $item, + array( + 'label_before' => '', + ) + ); + + // allow other plugins to add additional product information here. + do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text ); + + ?> + + get_quantity(); + $refunded_qty = $order->get_qty_refunded_for_item( $item_id ); + + if ( $refunded_qty ) { + $qty_display = '' . esc_html( $qty ) . ' ' . esc_html( $qty - ( $refunded_qty * -1 ) ) . ''; + } else { + $qty_display = esc_html( $qty ); + } + echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ) ); + ?> + + get_formatted_line_subtotal( $item ) ); ?> +
    + +
    +

    +
    + get_status() ) { + echo ( isset( $embed_form ) && $embed_form ) ? '
    ' : ''; + wp_nonce_field( 'change_frequency_' . $subscription->get_id() . $subscription->get_billing_interval() . $subscription->get_billing_period(), 'jgtb_change_frequency_nonce', false ); + ?> + + + ' . esc_html_x( 'Go', 'Button to submit date change', 'jg-toolbox' ) . '
    ' : ''; + } else { + ?> + + +
    +

    +
    + get_status() ) { + echo ( isset( $embed_form ) && $embed_form ) ? '
    ' : ''; + wp_nonce_field( 'change_next_ship_date_' . $subscription->get_id() . $current_date, 'jgtb_nonce', false ); + ?> + + + + ' . esc_html__( 'Go', 'jg-toolbox' ) . '
    ' : ''; // phpcs:ignore. + } else { + ?> + + +
    + + + + + + + + + + + get_items(); + if ( count( $subscription_items ) > 0 ) { + + foreach ( $subscription_items as $item_id => $item ) { + $_product = apply_filters( 'woocommerce_subscriptions_order_item_product', $item->get_product(), $item ); + + if ( apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { + ?> + + + + + + + + get_meta( '_purchase_note', true ); + + if ( $subscription->has_status( array( 'completed', 'processing' ) ) && $purchase_note ) { + ?> + + + + + + +
     
    × + get_type() ) { + $parent_id = $_product->get_parent_id(); + $parent = wc_get_product( $parent_id ); + $can_change_products = true; + $prices = array(); + ?> + + is_visible() ) { + echo esc_html( apply_filters( 'woocommerce_order_item_name', $item['name'], $item ) ); + } else { + echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', sprintf( '%s', get_permalink( $item['product_id'] ), $item['name'] ), $item ) ); + } + } + ?> + + × + + + get_quantity() ); + } + ?> + + get_formatted_meta_data(); + + if ( $_product && $_product->exists() && $_product->is_downloadable() && $subscription->is_download_permitted() ) { + + $download_files = $subscription->get_item_downloads( $item ); + $i = 0; + $links = array(); + + foreach ( $download_files as $download_id => $file ) { + $i++; + // translators: %1$s is the number of the file, %2$s: the name of the file + $link_text = sprintf( _nx( 'Download file %1$s: %2$s', 'Download file %1$s: %2$s', count( $download_files ), 'Used as link text in view-subscription template', 'jg-toolbox' ), $i, $file['name'] ); + $links[] = '' . esc_html( $link_text ) . ''; + } + + echo '
    ' . wp_kses_post( implode( '
    ', $links ) ); + } + + // Allow other plugins to add additional product information here + do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $subscription ); + do_action( 'jgtb_woocommerce_order_item_meta_end', $item_id, $item, $subscription, $allow_edit_qty ); + ?> +
    + get_formatted_line_subtotal( $item ) ); ?> +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription.php new file mode 100644 index 0000000..807f21b --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/edit-subscription.php @@ -0,0 +1,191 @@ +' . esc_html__( 'Invalid Subscription.', 'jg-toolbox' ) . ' ' . esc_html( 'My Account' ) . ''; + + if ( ! isset( $wp->query_vars[ JGTB_EDIT_SUB_ENDPOINT ] ) || ! current_user_can( 'view_order', absint( $wp->query_vars[ JGTB_EDIT_SUB_ENDPOINT ] ) ) ) { + echo $error_message; + return; + } + + $subscription = wcs_get_subscription( absint( $wp->query_vars[ JGTB_EDIT_SUB_ENDPOINT ] ) ); + + if ( ! $subscription || ( is_callable( array( $subscription, 'get_type' ) ) && 'shop_subscription' !== $subscription->get_type() ) ) { + echo $error_message; + return; + } +} + +wc_print_notices(); +?> +
    + + + + + + + + + + + + _x( 'Last Payment Date', 'admin subscription table header', 'jg-toolbox' ), + 'next_payment' => _x( 'Next Payment Date', 'admin subscription table header', 'jg-toolbox' ), + 'end' => _x( 'End Date', 'table heading', 'jg-toolbox' ), + 'trial_end' => _x( 'Trial End Date', 'admin subscription table header', 'jg-toolbox' ), + ) as $date_type => $date_title ) { + + $date = $subscription->get_date( $date_type ); + if ( ! empty( $date ) ) { + ?> + + + + + $subscription ), '', JGTB_PATH . 'templates/' ); + } + + $allow_date_change = apply_filters( 'jgtb_allow_edit_date_for_subscription', 'yes', $subscription ); + + if ( Utilities\is_change_next_payment_available() && 'yes' === $allow_date_change ) { + // Get change next date markup + wc_get_template( + 'myaccount/choose-next-ship-date.php', + array( + 'subscription' => $subscription, + 'embed_form' => false, + ), + '', + JGTB_PATH . 'templates/' + ); + } + ?> + +
    get_status() ) ); ?>
    get_date_to_display( 'date_created' ) ); ?>
    get_date_to_display( $date_type ) ); ?>
    + +
    +

    +
    + + $subscription, + 'allow_remove_item' => $allow_remove_item, + 'allow_edit_qty' => $allow_edit_qty, + 'allow_change_variation' => $allow_variation_change, + ), + '', + JGTB_PATH . 'templates/' + ); + ?> + +
    +

    +
    + + get_billing_email() ) { + // translators: there is markup here, hence can't use Email: %s + echo ''; + } + + if ( $subscription->get_billing_phone() ) { + // translators: there is markup here, hence can't use Email: %s + echo ''; + } + + // Additional customer details hook + do_action( 'woocommerce_order_details_after_customer_details', $subscription ); + ?> +
    ' . esc_html_x( 'Email', 'heading in customer details on subscription detail page', 'jg-toolbox' ) . '' . esc_html( $subscription->get_billing_email() ) . '
    ' . esc_html_x( 'Tel', 'heading in customer details on subscription detail page', 'jg-toolbox' ) . '' . esc_html( $subscription->get_billing_phone() ) . '
    + + needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?> + +
    + +
    + + + +
    + 'billing', + 'address' => $billing_address, + ), + '', + JGTB_PATH . 'templates/' + ); + ?> +
    + + needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?> + +
    + +
    + +
    + 'shipping', + 'address' => $shipping_address, + ), + '', + JGTB_PATH . 'templates/' + ); + ?> +
    + +
    + +
    + + + +
    + + get_id(), 'jgtb_edit_details_of_' . $subscription->get_id() ); ?> + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-add-payment-method.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-add-payment-method.php new file mode 100644 index 0000000..ace49da --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-add-payment-method.php @@ -0,0 +1,61 @@ +payment_gateways->get_available_payment_gateways(); + +if ( $available_gateways ) : ?> +
    +
    +
      + set_current(); + } + + foreach ( $available_gateways as $gateway ) { + ?> +
    • + chosen, true ); ?> /> + + has_fields() || $gateway->get_description() ) { + echo ''; + } + ?> +
    • + +
    + + + +
    + + + +
    +
    +
    + +

    + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-edit-account.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-edit-account.php new file mode 100644 index 0000000..c91c23c --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-edit-account.php @@ -0,0 +1,127 @@ + + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-edit-address.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-edit-address.php new file mode 100644 index 0000000..ee35dd9 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-edit-address.php @@ -0,0 +1,56 @@ + + + + + + +
    + +

    + +
    + + +
    + $field ) { + woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) ); + } + ?> +
    + + + +

    + + + +

    +
    + +
    + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-login.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-login.php new file mode 100644 index 0000000..3fccdff --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-login.php @@ -0,0 +1,121 @@ + + + + + +
    + +
    + + + +

    + + + + + +
    + +
    + +

    + +
    > + + + + + + + +

    + +

    + + + +

    + +

    + + + +

    + +

    + + +

    + + + + + + + +

    + + +

    + + + +
    + +
    + +
    + + + \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-lost-password.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-lost-password.php new file mode 100644 index 0000000..9d77480 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/form-lost-password.php @@ -0,0 +1,45 @@ + + +
    + +

    + +

    + +

    + +
    + + + +

    + + +

    + + + +
    + + +
    + +

    + +

    + + +

    +

    + + +

    + + + + +
    + + + +

    + + +

    + + + +
    + + + + +

    + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-account.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-account.php new file mode 100644 index 0000000..9a4f85f --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-account.php @@ -0,0 +1,36 @@ + + +
    + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-address.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-address.php new file mode 100644 index 0000000..867b14b --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-address.php @@ -0,0 +1,85 @@ + esc_html__( 'Billing address', 'bridge' ), + 'shipping' => esc_html__( 'Shipping address', 'bridge' ) + ), $customer_id ); +} else { + $page_title = apply_filters( 'woocommerce_my_account_my_address_title', esc_html__( 'My Address', 'bridge' ) ); + $get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array( + 'billing' => esc_html__( 'Billing address', 'bridge' ) + ), $customer_id ); +} +$oldcol = 1; +$col = 1; +?> + +

    + +

    + +

    + +'; ?> + + $title ) : ?> + +
    +
    +

    + +
    +
    + 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 ) { + esc_html_e('You have not set up this type of address yet.', 'bridge'); + } else{ + echo implode('
    ', $address); + } + + ?> +
    +
    + + + +'; ?> + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-downloads.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-downloads.php new file mode 100644 index 0000000..8c3544e --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-downloads.php @@ -0,0 +1,52 @@ +customer->get_downloadable_products(); + +if ( $downloads ) : ?> + + + +

    + +
      + +
    • + ' . sprintf( _n( '%s download remaining', '%s downloads remaining', $download['downloads_remaining'], 'woocommerce' ), $download['downloads_remaining'] ) . ' ', $download ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + } + + echo apply_filters( 'woocommerce_available_download_link', '' . $download['download_name'] . '', $download ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + + do_action( 'woocommerce_available_download_end', $download ); + ?> +
    • + +
    + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-orders.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-orders.php new file mode 100644 index 0000000..027ebff --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-orders.php @@ -0,0 +1,109 @@ + esc_html__( 'Order', 'bridge' ), + 'order-date' => esc_html__( 'Date', 'bridge' ), + 'order-status' => esc_html__( 'Status', 'bridge' ), + 'order-total' => esc_html__( 'Total', 'bridge' ), + 'order-actions' => ' ', +) ); + +$customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_query', array( + 'numberposts' => $order_count, + 'meta_key' => '_customer_user', + 'meta_value' => get_current_user_id(), + 'post_type' => wc_get_order_types( 'view-orders' ), + 'post_status' => array_keys( wc_get_order_statuses() ), +) ) ); + +if ( $customer_orders ) : ?> + +

    + + + + + + $column_name ) : ?> + + + + + + + get_item_count(); + ?> + + $column_name ) : ?> + + + + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-subscriptions.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-subscriptions.php new file mode 100644 index 0000000..4ec7b9c --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/my-subscriptions.php @@ -0,0 +1,120 @@ + + + + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/orders.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/orders.php new file mode 100644 index 0000000..8ac301b --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/orders.php @@ -0,0 +1,105 @@ + + + + + + + + $column_name ) : ?> + + + + + + + orders as $customer_order ) { + $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + $item_count = $order->get_item_count() - $order->get_item_count_refunded(); + ?> + + $column_name ) : ?> + + + + + + + + + + max_num_pages ) : ?> +
    + + + + + max_num_pages ) !== $current_page ) : ?> + + +
    + + + +
    + + +
    + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/payment-methods.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/payment-methods.php new file mode 100644 index 0000000..bbd3de1 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/payment-methods.php @@ -0,0 +1,78 @@ + + + + + + + + $column_name ) : ?> + + + + + $methods ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?> + + + $column_name ) : ?> + + + + + +
    + $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + echo '' . esc_html( $action['name'] ) . ' '; + } + } + ?> +
    + + + +

    + + + + + +payment_gateways->get_available_payment_gateways() ) : ?> + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/myaccount/view-order.php b/wp-content/themes/mont58-coffee/woocommerce/myaccount/view-order.php new file mode 100644 index 0000000..2691e3d --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/myaccount/view-order.php @@ -0,0 +1,56 @@ +get_customer_order_notes(); +?> +

    +' . $order->get_order_number() . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + '' . wc_format_datetime( $order->get_date_created() ) . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + '' . wc_get_order_status_name( $order->get_status() ) . '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped +); +?> +

    + + +

    +
      + +
    1. +
      +
      +

      comment_date ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

      +
      + comment_content ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> +
      +
      +
      +
      +
      +
    2. + +
    + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/notices/error.php b/wp-content/themes/mont58-coffee/woocommerce/notices/error.php new file mode 100644 index 0000000..fe4af62 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/notices/error.php @@ -0,0 +1,33 @@ + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/notices/notice.php b/wp-content/themes/mont58-coffee/woocommerce/notices/notice.php new file mode 100644 index 0000000..4e611df --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/notices/notice.php @@ -0,0 +1,32 @@ + + + +
    > + +
    + diff --git a/wp-content/themes/mont58-coffee/woocommerce/notices/success.php b/wp-content/themes/mont58-coffee/woocommerce/notices/success.php new file mode 100644 index 0000000..e8643e5 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/notices/success.php @@ -0,0 +1,32 @@ + + + +
    role="alert"> + +
    + diff --git a/wp-content/themes/mont58-coffee/woocommerce/order/form-tracking.php b/wp-content/themes/mont58-coffee/woocommerce/order/form-tracking.php new file mode 100644 index 0000000..c18595e --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/order/form-tracking.php @@ -0,0 +1,61 @@ + + +
    + + + +

    + +

    +

    +
    + + + +

    + + + + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/order/order-again.php b/wp-content/themes/mont58-coffee/woocommerce/order/order-again.php new file mode 100644 index 0000000..f7bc224 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/order/order-again.php @@ -0,0 +1,23 @@ + + +

    + +

    diff --git a/wp-content/themes/mont58-coffee/woocommerce/order/order-details-customer.php b/wp-content/themes/mont58-coffee/woocommerce/order/order-details-customer.php new file mode 100644 index 0000000..6992020 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/order/order-details-customer.php @@ -0,0 +1,66 @@ +needs_shipping_address(); +?> +
    + + + +
    +
    + + + +

    + +
    + get_formatted_billing_address( esc_html__( 'N/A', 'woocommerce' ) ) ); ?> + + get_billing_phone() ) : ?> +

    get_billing_phone() ); ?>

    + + + get_billing_email() ) : ?> + + +
    + + + +
    + +
    +

    +
    + get_formatted_shipping_address( esc_html__( 'N/A', 'woocommerce' ) ) ); ?> + + get_shipping_phone() ) : ?> +

    get_shipping_phone() ); ?>

    + +
    +
    + +
    + + + + + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/order/order-details-item.php b/wp-content/themes/mont58-coffee/woocommerce/order/order-details-item.php new file mode 100644 index 0000000..271b94c --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/order/order-details-item.php @@ -0,0 +1,68 @@ + +
    + is_visible(); + $product_permalink = apply_filters( 'woocommerce_order_item_permalink', $is_visible ? $product->get_permalink( $item ) : '', $item, $order ); + + echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $product_permalink ? sprintf( '%s', $product_permalink, $item->get_name() ) : $item->get_name(), $item, $is_visible ) ); + + $qty = $item->get_quantity(); + $refunded_qty = $order->get_qty_refunded_for_item( $item_id ); + + if ( $refunded_qty ) { + $qty_display = '' . esc_html( $qty ) . ' ' . esc_html( $qty - ( $refunded_qty * -1 ) ) . ''; + } else { + $qty_display = esc_html( $qty ); + } + + echo apply_filters( 'woocommerce_order_item_quantity_html', ' ' . sprintf( '× %s', $qty_display ) . '', $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + + do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false ); + + wc_display_item_meta( $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + + do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false ); + ?> + + get_formatted_line_subtotal( $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> +
    + + + + + + + + + + $item ) { + $product = $item->get_product(); + + wc_get_template( + 'order/order-details-item.php', + array( + 'order' => $order, + 'item_id' => $item_id, + 'item' => $item, + 'show_purchase_note' => $show_purchase_note, + 'purchase_note' => $product ? $product->get_purchase_note() : '', + 'product' => $product, + ) + ); + } + + do_action( 'woocommerce_order_details_after_order_table_items', $order ); + ?> + + + + get_order_item_totals() as $key => $total ) { + ?> + + + + + + get_customer_note() ) : ?> + + + + + + +
    get_customer_note() ) ) ); ?>
    + + + + + $order ) ); +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/order/order-downloads.php b/wp-content/themes/mont58-coffee/woocommerce/order/order-downloads.php new file mode 100644 index 0000000..9566cd3 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/order/order-downloads.php @@ -0,0 +1,73 @@ + +
    + +

    + + + + + + $column_name ) : ?> + + + + + + + + $column_name ) : ?> + + + + +
    + ' . esc_html( $download['product_name'] ) . ''; + } else { + echo esc_html( $download['product_name'] ); + } + break; + case 'download-file': + echo '' . esc_html( $download['download_name'] ) . ''; + break; + case 'download-remaining': + echo is_numeric( $download['downloads_remaining'] ) ? esc_html( $download['downloads_remaining'] ) : esc_html__( '∞', 'woocommerce' ); + break; + case 'download-expires': + if ( ! empty( $download['access_expires'] ) ) { + echo ''; + } else { + esc_html_e( 'Never', 'woocommerce' ); + } + break; + } + } + ?> +
    +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/order/tracking.php b/wp-content/themes/mont58-coffee/woocommerce/order/tracking.php new file mode 100644 index 0000000..7e9d554 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/order/tracking.php @@ -0,0 +1,60 @@ +get_customer_order_notes(); +?> + +

    + ' . $order->get_order_number() . '', + '' . wc_format_datetime( $order->get_date_created() ) . '', + '' . wc_get_order_status_name( $order->get_status() ) . '' + ) + ) + ); + ?> +

    + + +

    +
      + +
    1. +
      +
      +

      comment_date ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

      +
      + comment_content ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> +
      +
      +
      +
      +
      +
    2. + +
    + + +get_id() ); ?> diff --git a/wp-content/themes/mont58-coffee/woocommerce/product-searchform.php b/wp-content/themes/mont58-coffee/woocommerce/product-searchform.php new file mode 100644 index 0000000..7f77480 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/product-searchform.php @@ -0,0 +1,28 @@ + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product-reviews.php b/wp-content/themes/mont58-coffee/woocommerce/single-product-reviews.php new file mode 100644 index 0000000..4d6f12e --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product-reviews.php @@ -0,0 +1,145 @@ + +
    +
    +

    + get_review_count(); + if ( $count && wc_review_ratings_enabled() ) { + /* translators: 1: reviews count 2: product name */ + $reviews_title = sprintf( esc_html( _n( '%1$s review for %2$s', '%1$s reviews for %2$s', $count, 'woocommerce' ) ), esc_html( $count ), '' . get_the_title() . '' ); + echo apply_filters( 'woocommerce_reviews_title', $reviews_title, $count, $product ); // WPCS: XSS ok. + } else { + esc_html_e( 'Reviews', 'woocommerce' ); + } + ?> +

    + + +
      + 'woocommerce_comments' ) ) ); ?> +
    + + 1 && get_option( 'page_comments' ) ) : + echo ''; + endif; + ?> + +

    + +
    + + get_id() ) ) : ?> +
    +
    + have_comments() ? esc_html__( 'Add a review', 'woocommerce' ) : sprintf( esc_html__( 'Be the first to review “%s”', 'woocommerce' ), get_the_title() ), + /* translators: %s is product title */ + 'title_reply_to' => esc_html__( 'Leave a Reply to %s', 'woocommerce' ), + 'title_reply_before' => '', + 'title_reply_after' => '', + 'comment_notes_after' => '', + 'label_submit' => esc_html__( 'Submit', 'woocommerce' ), + 'logged_in_as' => '', + 'comment_field' => '', + ); + + $name_email_required = (bool) get_option( 'require_name_email', 1 ); + $fields = array( + 'author' => array( + 'label' => __( 'Name', 'woocommerce' ), + 'type' => 'text', + 'value' => $commenter['comment_author'], + 'required' => $name_email_required, + ), + 'email' => array( + 'label' => __( 'Email', 'woocommerce' ), + 'type' => 'email', + 'value' => $commenter['comment_author_email'], + 'required' => $name_email_required, + ), + ); + + $comment_form['fields'] = array(); + + foreach ( $fields as $key => $field ) { + $field_html = '

    '; + $field_html .= '

    '; + + $comment_form['fields'][ $key ] = $field_html; + } + + $account_page_url = wc_get_page_permalink( 'myaccount' ); + if ( $account_page_url ) { + /* translators: %s opening and closing link tags respectively */ + $comment_form['must_log_in'] = ''; + } + + if ( wc_review_ratings_enabled() ) { + $comment_form['comment_field'] = '
    '; + } + + $comment_form['comment_field'] .= '

    '; + + comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) ); + ?> +
    +
    + +

    + + +
    +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product.php b/wp-content/themes/mont58-coffee/woocommerce/single-product.php new file mode 100644 index 0000000..39eeb1d --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product.php @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + +
    + + + + + + + +
    + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/grouped.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/grouped.php new file mode 100644 index 0000000..e652501 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/grouped.php @@ -0,0 +1,129 @@ + + +
    + + + get_id() ); + $quantites_required = $quantites_required || ( $grouped_product_child->is_purchasable() && ! $grouped_product_child->has_options() ); + $post = $post_object; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + setup_postdata( $post ); + + echo ''; + + // Output columns for each product. + foreach ( $grouped_product_columns as $column_id ) { + do_action( 'woocommerce_grouped_product_list_before_' . $column_id, $grouped_product_child ); + + switch ( $column_id ) { + case 'quantity': + ob_start(); + + if ( ! $grouped_product_child->is_purchasable() || $grouped_product_child->has_options() || ! $grouped_product_child->is_in_stock() ) { + woocommerce_template_loop_add_to_cart(); + } elseif ( $grouped_product_child->is_sold_individually() ) { + echo ''; + echo ''; + } else { + do_action( 'woocommerce_before_add_to_cart_quantity' ); + + woocommerce_quantity_input( array( + 'input_name' => 'quantity[' . $grouped_product_child->get_id() . ']', + 'input_value' => isset( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ? wc_stock_amount( wc_clean( wp_unslash( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ) ) : 0, // phpcs:ignore WordPress.Security.NonceVerification.Missing + 'min_value' => apply_filters( 'woocommerce_quantity_input_min', 0, $grouped_product_child ), + 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $grouped_product_child->get_max_purchase_quantity(), $grouped_product_child ), + 'placeholder' => '0', + ) ); + + do_action( 'woocommerce_after_add_to_cart_quantity' ); + } + + $value = ob_get_clean(); + break; + case 'label': + $value = ''; + break; + case 'price': + $value = $grouped_product_child->get_price_html() . wc_get_stock_html( $grouped_product_child ); + break; + default: + $value = ''; + break; + } + + echo ''; // WPCS: XSS ok. + + do_action( 'woocommerce_grouped_product_list_after_' . $column_id, $grouped_product_child ); + } + + echo ''; + } + $post = $previous_post; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + setup_postdata( $post ); + + do_action( 'woocommerce_grouped_product_list_after', $grouped_product_columns, $quantites_required, $product ); + ?> + +
    ' . apply_filters( 'woocommerce_grouped_product_list_column_' . $column_id, $value, $grouped_product_child ) . '
    + + + + + + + + + + + + + + +
    + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/simple.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/simple.php new file mode 100644 index 0000000..455398d --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/simple.php @@ -0,0 +1,81 @@ +is_purchasable() ) { + return; +} + +/*** Our code modification inside Woo template - begin ***/ + +$bridge_qode_options = bridge_qode_return_global_options(); + +$button_classes = 'single_add_to_cart_button qbutton button alt'; +if (isset($bridge_qode_options['woo_products_add_to_cart_hover_type']) && $bridge_qode_options['woo_products_add_to_cart_hover_type'] !== ''){ + $button_classes .= ' '.$bridge_qode_options['woo_products_add_to_cart_hover_type']; +} + +/*** Our code modification inside Woo template - end ***/ + +echo wc_get_stock_html( $product ); + +if ( $product->is_in_stock() ) : ?> + + + +
    + apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ), + 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ), + 'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( wp_unslash( $_POST['quantity'] ) ) : $product->get_min_purchase_quantity(), // WPCS: CSRF ok, input var ok. + ) ); + + /** + * @since 3.0.0. + */ + do_action( 'woocommerce_after_add_to_cart_quantity' ); + ?> + + + + + + +
    + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/variable.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/variable.php new file mode 100644 index 0000000..130862a --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/variable.php @@ -0,0 +1,85 @@ + + +
    + + + +

    + + + + $options ) : ?> + + + + + + +
    + $options, + 'attribute' => $attribute_name, + 'product' => $product, + ) ); + echo end( $attribute_keys ) === $attribute_name ? wp_kses_post( apply_filters( 'woocommerce_reset_variations_link', '' . esc_html__( 'Clear', 'bridge' ) . '' ) ) : ''; + ?> +
    + + + +
    + +
    + + + + + +
    + + +
    + + + apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ), + 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ), + 'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( wp_unslash( $_POST['quantity'] ) ) : $product->get_min_purchase_quantity(), // WPCS: CSRF ok, input var ok. + ) + ); + + do_action( 'woocommerce_after_add_to_cart_quantity' ); + ?> + + + + + + + + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/variation.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/variation.php new file mode 100644 index 0000000..af3dde3 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/add-to-cart/variation.php @@ -0,0 +1,23 @@ + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/meta.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/meta.php new file mode 100644 index 0000000..68a7e0f --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/meta.php @@ -0,0 +1,40 @@ + +
    + + + + get_sku() || $product->is_type( 'variable' ) ) ) : ?> + + get_sku() ) ? $sku : esc_html__( 'N/A', 'woocommerce' ); ?> + + + + get_id(), ', ', '' . _n( 'Category:', 'Categories:', count( $product->get_category_ids() ), 'woocommerce' ) . ' ', '' ); ?> + + get_id(), ', ', '' . _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'woocommerce' ) . ' ', '' ); ?> + + + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/photoswipe.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/photoswipe.php new file mode 100644 index 0000000..761b0b1 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/photoswipe.php @@ -0,0 +1,56 @@ + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/price.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/price.php new file mode 100644 index 0000000..38e6d4d --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/price.php @@ -0,0 +1,25 @@ + +

    get_price_html(); ?>

    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/product-attributes.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/product-attributes.php new file mode 100644 index 0000000..86faf52 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/product-attributes.php @@ -0,0 +1,33 @@ + + + $product_attribute ) : ?> + + + + + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/product-image.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/product-image.php new file mode 100644 index 0000000..d892b4b --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/product-image.php @@ -0,0 +1,55 @@ +get_image_id(); +$wrapper_classes = apply_filters( + 'woocommerce_single_product_image_gallery_classes', + array( + 'woocommerce-product-gallery', + 'woocommerce-product-gallery--' . ( $post_thumbnail_id ? 'with-images' : 'without-images' ), + 'woocommerce-product-gallery--columns-' . absint( $columns ), + 'images', + ) +); +?> +
    +
    '; + } + + echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, $post_thumbnail_id ); // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped + + do_action( 'woocommerce_product_thumbnails' ); + ?> + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/product-thumbnails.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/product-thumbnails.php new file mode 100644 index 0000000..cec3f34 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/product-thumbnails.php @@ -0,0 +1,33 @@ +get_gallery_image_ids(); + +if ( $attachment_ids && $product->get_image_id() ) { + foreach ( $attachment_ids as $attachment_id ) { + echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', wc_get_gallery_image_html( $attachment_id ), $attachment_id ); // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped + } +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/rating.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/rating.php new file mode 100644 index 0000000..a758f8b --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/rating.php @@ -0,0 +1,43 @@ +get_rating_count(); +$review_count = $product->get_review_count(); +$average = $product->get_average_rating(); + +if ( $rating_count > 0 ) : ?> + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/related.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/related.php new file mode 100644 index 0000000..06f5aca --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/related.php @@ -0,0 +1,107 @@ +getOptionValue('woo_product_single_related_post_tag'); +if($title_tag_options != '') { + $title_tag = $title_tag_options; +} + +$heading = apply_filters( 'woocommerce_product_related_products_heading', esc_html__( 'Related products', 'bridge' ) ); + +if ( version_compare( WOOCOMMERCE_VERSION, '3.0' ) >= 0 ) { + if ( $related_products ) : ?> + + + + exists() ) { + return; + } + + if ( ! $related = $product->get_related( $posts_per_page ) ) { + return; + } + + $args = apply_filters( 'woocommerce_related_products_args', array( + 'post_type' => 'product', + 'ignore_sticky_posts' => 1, + 'no_found_rows' => 1, + 'posts_per_page' => $posts_per_page, + 'orderby' => $orderby, + 'post__in' => $related, + 'post__not_in' => array( $product->get_id() ) + ) ); + + $products = new WP_Query( $args ); + $woocommerce_loop['name'] = 'related'; + $woocommerce_loop['columns'] = apply_filters( 'woocommerce_related_products_columns', $columns ); + + if ( $products->have_posts() ) : ?> + + + + comment_ID ); + +if ( '0' === $comment->comment_approved ) { ?> + +

    + + + +

    + + + +

    + + (' . esc_attr__( 'verified owner', 'woocommerce' ) . ') '; + } + + ?> + +

    + + comment_ID, 'rating', true ) ); + +if ( $rating && wc_review_ratings_enabled() ) { + echo wc_get_rating_html( $rating ); // WPCS: XSS ok. +} diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/review.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/review.php new file mode 100644 index 0000000..cc22770 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/review.php @@ -0,0 +1,67 @@ + +
  • id="li-comment-"> + +
    + + + +
    + + + +
    +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/sale-flash.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/sale-flash.php new file mode 100644 index 0000000..9364842 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/sale-flash.php @@ -0,0 +1,32 @@ + +is_on_sale() ) : ?> + + ' . esc_html__( 'Sale', 'bridge' ) . '', $post, $product ); ?> + +post_excerpt ); + +if ( ! $short_description ) { + return; +} + +?> +
    + +
    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/stock.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/stock.php new file mode 100644 index 0000000..d8b1477 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/stock.php @@ -0,0 +1,23 @@ + +

    diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/additional-information.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/additional-information.php new file mode 100644 index 0000000..f730f29 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/additional-information.php @@ -0,0 +1,39 @@ + + + +

    + + += 0 ) { + do_action( 'woocommerce_product_additional_information', $product ); +} else { + $product->list_attributes(); +} +?> \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/description.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/description.php new file mode 100644 index 0000000..ff06a1f --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/description.php @@ -0,0 +1,34 @@ + + + +

    + + + + diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/tabs.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/tabs.php new file mode 100644 index 0000000..d23a3e2 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/tabs/tabs.php @@ -0,0 +1,75 @@ + + +
    +
      + $product_tab ) : ?> +
    • + +
    • + +
    +
    + $product_tab ) : ?> +
    + +
    + +
    +
    + + +
    + $product_tab ) : ?> + +
    + +
    +
    +
    + +
    +
    + + + + +
    + + + + \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/title.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/title.php new file mode 100644 index 0000000..6fd646f --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/title.php @@ -0,0 +1,22 @@ +', '' ); diff --git a/wp-content/themes/mont58-coffee/woocommerce/single-product/up-sells.php b/wp-content/themes/mont58-coffee/woocommerce/single-product/up-sells.php new file mode 100644 index 0000000..dd43aa1 --- /dev/null +++ b/wp-content/themes/mont58-coffee/woocommerce/single-product/up-sells.php @@ -0,0 +1,104 @@ +getOptionValue('woo_product_single_related_post_tag'); +if($title_tag_options != '') { + $title_tag = $title_tag_options; +} + +if ( version_compare( WOOCOMMERCE_VERSION, '3.0' ) >= 0 ) { + if ( $upsells ) : ?> + +
    + + < class="qode-related-upsells-title">> + + + + + + get_id() ); + + setup_postdata( $GLOBALS['post'] =& $post_object ); + + wc_get_template_part( 'content', 'product' ); ?> + + + + + +
    + + get_upsells() ) { + return; + } + + $args = array( + 'post_type' => 'product', + 'ignore_sticky_posts' => 1, + 'no_found_rows' => 1, + 'posts_per_page' => $posts_per_page, + 'orderby' => $orderby, + 'post__in' => $upsells, + 'post__not_in' => array( $product->get_id() ), + 'meta_query' => WC()->query->get_meta_query() + ); + + $products = new WP_Query( $args ); + $woocommerce_loop['name'] = 'up-sells'; + $woocommerce_loop['columns'] = apply_filters( 'woocommerce_up_sells_columns', $columns ); + + if ( $products->have_posts() ) : ?> + +
    + + < class="qode-related-upsells-title">> + + + + have_posts() ) : $products->the_post(); ?> + + + + + + + +
    + +