diff --git a/wp-content/themes/cosmopet/templates/form-coupon.twig b/wp-content/themes/cosmopet/templates/form-coupon.twig new file mode 100644 index 0000000..b287952 --- /dev/null +++ b/wp-content/themes/cosmopet/templates/form-coupon.twig @@ -0,0 +1,38 @@ +{% if fn('wc_coupons_enabled') %} + + {% set applied_coupons = fn('WC').cart.get_applied_coupons %} + {% set has_coupon = applied_coupons is not empty %} + {% set first_coupon = has_coupon ? applied_coupons[0] : '' %} + {% set cText = has_coupon ? ('Применен промокод: ' ~ first_coupon) : '' %} + +
+ + + + Ошибка! Промокод введен неверно или не существует. + +
+ +
+ + +
+ +{% endif %} diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/cart-errors.php b/wp-content/themes/cosmopet/woocommerce/checkout/cart-errors.php deleted file mode 100644 index 56c989d..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/cart-errors.php +++ /dev/null @@ -1,25 +0,0 @@ - - -

- - - -

diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/form-billing.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-billing.php deleted file mode 100644 index dbeeb55..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/form-billing.php +++ /dev/null @@ -1,56 +0,0 @@ - -
- cart->needs_shipping() ) : ?> - -

- - - -

- - - - - -
- get_checkout_fields( 'billing' ); - - foreach ( $fields as $key => $field ) { - woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); - } - ?> -
- - -
- -is_registration_enabled() ) : ?> - - diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/form-login.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-login.php deleted file mode 100644 index f9b9c40..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/form-login.php +++ /dev/null @@ -1,36 +0,0 @@ - -
- ' . 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/cosmopet/woocommerce/checkout/form-pay.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-pay.php deleted file mode 100644 index 59d9b34..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/form-pay.php +++ /dev/null @@ -1,109 +0,0 @@ -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() ) : ?> - - -
- - - - - - - ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?> - - - - -
-
-
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/form-verify-email.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-verify-email.php deleted file mode 100644 index fd86a4d..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/form-verify-email.php +++ /dev/null @@ -1,53 +0,0 @@ - -
- - -

- ', - '' - ); - ?> -

- -

- - -

- -

- -

-
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/order-received.php b/wp-content/themes/cosmopet/woocommerce/checkout/order-received.php deleted file mode 100644 index 37a7fa4..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/order-received.php +++ /dev/null @@ -1,42 +0,0 @@ - - -

- -

diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/payment-method.php b/wp-content/themes/cosmopet/woocommerce/checkout/payment-method.php deleted file mode 100644 index 05308d8..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/payment-method.php +++ /dev/null @@ -1,33 +0,0 @@ - -
  • - 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/cosmopet/woocommerce/checkout/payment.php b/wp-content/themes/cosmopet/woocommerce/checkout/payment.php deleted file mode 100644 index 3b68df7..0000000 --- a/wp-content/themes/cosmopet/woocommerce/checkout/payment.php +++ /dev/null @@ -1,63 +0,0 @@ - -
    - cart->needs_payment() ) : ?> - - -
    - - - - - - - ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?> - - - - -
    -
    - -
    - - - - - - - -
    - - - - -
    - -
    - - - -

    - - - - - -
    - -
    - -

    - -
    > - - - - - -

    - - -

    - - - -

    - - -

    - - - -

    - - -

    - - - -

    - - - - - -

    - - -

    - - - -
    - -
    - -
    - - - diff --git a/wp-content/themes/cosmopet/woocommerce/myaccount/my-address.php b/wp-content/themes/cosmopet/woocommerce/myaccount/my-address.php deleted file mode 100644 index 5bd5a97..0000000 --- a/wp-content/themes/cosmopet/woocommerce/myaccount/my-address.php +++ /dev/null @@ -1,93 +0,0 @@ - __( 'Billing address', 'woocommerce' ), - 'shipping' => __( 'Shipping address', 'woocommerce' ), - ), - $customer_id - ); -} else { - $get_addresses = apply_filters( - 'woocommerce_my_account_get_addresses', - array( - 'billing' => __( 'Billing address', 'woocommerce' ), - ), - $customer_id - ); -} - -$oldcol = 1; -$col = 1; -?> - -

    - -

    - - -
    - - - $address_title ) : ?> - - -
    -
    -

    - - - -
    -
    - -
    -
    - - - - -
    -