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
-?>
-
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 ); ?>" />
-
-
- get_title(); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?> get_icon(); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?>
-
- 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() ) : ?>
-
- $gateway ) );
- }
- } else {
- echo '';
- wc_print_notice( apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ), 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
- echo ' ';
- }
- ?>
-
-
-
-
- ', '' );
- ?>
-
-
-
-
-
-
-
- ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- id="terms" class="form-agreement__input">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 ) : ?>
-
-
-
-
-
-
-
-
-