-
-
- {{ current_lang }}
-
-
-
-
-
-
-
+
+
+
+
+ {{ current_lang }}
+
+
+
+
+ {{ function('pll_the_languages', {'echo': false, 'display_names_as': 'slug'}) }}
+
+
-
-
-
- {{ function('pll_the_languages', {'echo': false, 'display_names_as': 'slug'}) }}
-
+
+
+
+
+
+
+ 0
+
+
-
-
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/layout.twig b/wp-content/themes/cosmopet/templates/layout.twig
index 05d2282..e69de29 100644
--- a/wp-content/themes/cosmopet/templates/layout.twig
+++ b/wp-content/themes/cosmopet/templates/layout.twig
@@ -1,25 +0,0 @@
-
-
-
- {{ function('wp_head') }}
- {{ function('wp_title') }}
-
-
-
-
-
-
-
-
- {% include 'header.twig' %}
-
-
- {% block content %}
- {% endblock %}
-
-
- {% include 'footer.twig' %}
-
- {{ function('wp_footer') }}
-
-
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/modal.twig b/wp-content/themes/cosmopet/templates/modal.twig
new file mode 100644
index 0000000..6157f38
--- /dev/null
+++ b/wp-content/themes/cosmopet/templates/modal.twig
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+ {% include 'modal/basket.twig' %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/modal/basket.twig b/wp-content/themes/cosmopet/templates/modal/basket.twig
new file mode 100644
index 0000000..4fb1488
--- /dev/null
+++ b/wp-content/themes/cosmopet/templates/modal/basket.twig
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+ {% if not fn('WC').cart.is_empty %}
+
+ {% else %}
+
+
+ {% endif %}
+
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/page.twig b/wp-content/themes/cosmopet/templates/page.twig
new file mode 100644
index 0000000..ab91e3d
--- /dev/null
+++ b/wp-content/themes/cosmopet/templates/page.twig
@@ -0,0 +1,9 @@
+{% set bodyClass = 'bg-white' %}
+{% set mainClass = 'wrapper' %}
+{% extends 'layout.twig' %}
+
+{% block content %}
+
+ {{ post.content }}
+
+{% endblock %}
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/shop/cart-contents.twig b/wp-content/themes/cosmopet/templates/shop/cart-contents.twig
new file mode 100644
index 0000000..1b7d181
--- /dev/null
+++ b/wp-content/themes/cosmopet/templates/shop/cart-contents.twig
@@ -0,0 +1,45 @@
+{% if cart.is_empty %}
+
{{ function('pll_e', 'Ваша корзина пуста') }}
+{% else %}
+ {% for item_key, item in cart.get_cart %}
+ {% set product = item.data %}
+
+
+ {{ product.get_image }}
+
+
+
+
{{ product.get_name }}
+
+
+ {{ fn('wc_get_formatted_cart_item_data', item) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ fn('wc_price', item.line_total + item.line_tax) }}
+
+
+
+
+
+
+
+
+ {% endfor %}
+{% endif %}
+
diff --git a/wp-content/themes/cosmopet/templates/shop/checkout.twig b/wp-content/themes/cosmopet/templates/shop/checkout.twig
new file mode 100644
index 0000000..e2dfc26
--- /dev/null
+++ b/wp-content/themes/cosmopet/templates/shop/checkout.twig
@@ -0,0 +1,151 @@
+{# templates/woocommerce/checkout/form-checkout.twig #}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/shop/index.php b/wp-content/themes/cosmopet/templates/shop/index.php
deleted file mode 100644
index d800886..0000000
--- a/wp-content/themes/cosmopet/templates/shop/index.php
+++ /dev/null
@@ -1 +0,0 @@
-123
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/shop/review-order.twig b/wp-content/themes/cosmopet/templates/shop/review-order.twig
new file mode 100644
index 0000000..9f76ddb
--- /dev/null
+++ b/wp-content/themes/cosmopet/templates/shop/review-order.twig
@@ -0,0 +1,66 @@
+
+
+
+ {{ pll_e('Товары') }}
+ {{ fn('wc_cart_totals_subtotal_html') }}
+
+
+ {% for code, coupon in fn('WC').cart.get_coupons() %}
+
+ {{ fn('wc_cart_totals_coupon_label', coupon) }}
+ {{ fn('wc_cart_totals_coupon_html', coupon) }}
+
+ {% endfor %}
+
+ {% if fn('WC').cart.needs_shipping() and fn('WC').cart.show_shipping() %}
+ {{ do_action('woocommerce_review_order_before_shipping') }}
+
+ {{ fn('wc_cart_totals_shipping_html') }}
+
+ {{ do_action('woocommerce_review_order_after_shipping') }}
+ {% endif %}
+
+
+ {{ fn('pll_e', 'Доставка') }}
+ {% set chosen_shipping_methods = fn('WC').session.get('chosen_shipping_methods') %}
+ {% if not chosen_shipping_methods[0] is defined %}
+ {{ fn('pll_e', 'Введите адрес доставки') }}
+ {% else %}
+ {{ fn('WC').cart.get_shipping_total() }} ₽
+ {% endif %}
+
+
+ {% for fee in fn('WC').cart.get_fees() %}
+
+ {{ fee.name|e }}
+ {{ fn('wc_cart_totals_fee_html', fee) }}
+
+ {% endfor %}
+
+ {% if fn('wc_tax_enabled') and not fn('WC').cart.display_prices_including_tax() %}
+ {% if 'itemized' == fn('get_option', 'woocommerce_tax_total_display') %}
+ {% for code, tax in fn('WC').cart.get_tax_totals() %}
+
+ {{ tax.label|e }}
+ {{ tax.formatted_amount|raw }}
+
+ {% endfor %}
+ {% else %}
+
+ {{ fn('WC').countries.tax_or_vat()|e }}
+ {{ fn('wc_cart_totals_taxes_total_html') }}
+
+ {% endif %}
+ {% endif %}
+
+ {{ do_action('woocommerce_review_order_before_order_total') }}
+
+
+
+ {{ fn('pll_e', 'Total') }}
+ {{ fn('wc_cart_totals_order_total_html') }}
+
+
+ {{ do_action('woocommerce_review_order_after_order_total') }}
+
+
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/templates/shop/shop.twig b/wp-content/themes/cosmopet/templates/shop/shop.twig
index d800886..e69de29 100644
--- a/wp-content/themes/cosmopet/templates/shop/shop.twig
+++ b/wp-content/themes/cosmopet/templates/shop/shop.twig
@@ -1 +0,0 @@
-123
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/archive-product/archive-product-modal.twig b/wp-content/themes/cosmopet/woocommerce/archive-product/archive-product-modal.twig
deleted file mode 100644
index 537b00d..0000000
--- a/wp-content/themes/cosmopet/woocommerce/archive-product/archive-product-modal.twig
+++ /dev/null
@@ -1,221 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/archive-product/archive-product.twig b/wp-content/themes/cosmopet/woocommerce/archive-product/archive-product.twig
index 4df9866..dd7edbc 100644
--- a/wp-content/themes/cosmopet/woocommerce/archive-product/archive-product.twig
+++ b/wp-content/themes/cosmopet/woocommerce/archive-product/archive-product.twig
@@ -67,6 +67,6 @@
{#{% do action('woocommerce_after_shop_loop') %}
{% do action('woocommerce_after_main_content') %}#}
-{% include '/woocommerce/archive-product/archive-product-modal.twig' %}
+
{% endblock %}
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/assets/css/gp-style-core.css b/wp-content/themes/cosmopet/woocommerce/assets/css/gp-style-core.css
index 2e95825..2a05fd1 100644
--- a/wp-content/themes/cosmopet/woocommerce/assets/css/gp-style-core.css
+++ b/wp-content/themes/cosmopet/woocommerce/assets/css/gp-style-core.css
@@ -4,123 +4,8 @@
box-sizing: border-box;
}
-/* Переменные, шрифты, UI kit */
-
-/*
-700 - Bold
-600 - SemiBold / Demi
-500 - Medium
-400 - Regular
-*/
-
-/* Craftwork Grotesk */
-@font-face {
- font-family: "Craftwork Grotesk";
- src: local("Craftwork Grotesk Bold"),
- url("../fonts/craftwork/CraftworkGrotesk-SemiBold.woff2") format("woff2"),
- url("../fonts/craftwork/CraftworkGrotesk-Bold.woff") format("woff"),
- url("../fonts/craftwork/craftwork-grotesk-bold.ttf") format("ttf");
- font-weight: 700;
-}
-@font-face {
- font-family: "Craftwork Grotesk";
- src: local("Craftwork Grotesk SemiBold"),
- url("../fonts/craftwork/CraftworkGrotesk-SemiBold.woff2") format("woff2"),
- url("../fonts/craftwork/CraftworkGrotesk-SemiBold.woff") format("woff"),
- url("../fonts/craftwork/craftwork-grotesk-semi-bold.ttf") format("ttf");
- font-weight: 600;
-}
-@font-face {
- font-family: "Craftwork Grotesk";
- src: local("Craftwork Grotesk Medium"),
- url("../fonts/craftwork/CraftworkGrotesk-Medium.woff2") format("woff2"),
- url("../fonts/craftwork/CraftworkGrotesk-Medium.woff") format("woff"),
- url("../fonts/craftwork/craftwork-grotesk-medium.ttf") format("ttf");
- font-weight: 500;
-}
-@font-face {
- font-family: "Craftwork Grotesk";
- src: local("Craftwork Grotesk Regular"),
- url("../fonts/craftwork/CraftworkGrotesk-Regular.woff2") format("woff2"),
- url("../fonts/craftwork/CraftworkGrotesk-Regular.woff") format("woff"),
- url("../fonts/craftwork/craftwork-grotesk-regular.ttf") format("ttf");
- font-weight: 400;
-}
-/* Craftwork Grotesk */
-
-/* din 2014 */
-@font-face {
- font-family: "DIN 2014 Rounded";
- src: local("DIN 2014 Rounded Demi"),
- url("../fonts/din-2014/din-2014-rounded-demi.woff2") format("woff2"),
- url("../fonts/din-2014/din-2014-rounded-demi.woff") format("woff"),
- url("../fonts/din-2014/din-2014-rounded-demi.ttf") format("ttf");
- font-weight: 600;
-}
-@font-face {
- font-family: "DIN 2014 Rounded";
- src: local("DIN 2014 Rounded Regular"),
- url("../fonts/din-2014/din-2014-rounded-regular.woff2") format("woff2"),
- url("../fonts/din-2014/din-2014-rounded-regular.woff") format("woff"),
- url("../fonts/din-2014/din-2014-rounded-regular.ttf") format("ttf");
- font-weight: 400;
-}
-/* din 2014 */
-
-/* roboto */
-@font-face {
- font-family: "Roboto";
- src: local("Roboto Medium"),
- url("../fonts/roboto/Roboto-Medium.woff2") format("woff2"),
- url("../fonts/roboto/Roboto-Medium.woff") format("woff"),
- url("../fonts/roboto/roboto-medium.ttf") format("ttf");
- font-weight: 500;
-}
-@font-face {
- font-family: "Roboto";
- src: local("Roboto Regular"),
- url("../fonts/roboto/Roboto-Regular.woff2") format("woff2"),
- url("../fonts/roboto/Roboto-Regular.woff") format("woff"),
- url("../fonts/roboto/roboto-medium.ttf") format("ttf");
- font-weight: 400;
-}
-/* roboto */
-
-/* Глобальные переменные: */
-
-:root {
- /* fonts */
- --font-family: "Craftwork Grotesk", sans-serif;
- --second-family: "DIN 2014 Rounded", sans-serif;
- --third-family: "Roboto", sans-serif;
-
- /* color */
- /* text */
- --text-white: #fff;
- --text-black: #121212;
- --text-dark: #2b2b3b;
- --text-grey: #999;
- --text-red: #fa0505;
- --text-green: #2ED15D;
- --text-0: #000;
- --text-3: #333;
- --text-6: #666;
- --text-9: #999;
-
- /* background */
- --background-white: #fff;
- --background-black: #121212;
- --background-grey: #f2f2f2;
- --background-green: #2ED15D;
- --background-green-white: #f4fff0;
- --background-9: #999;
-
-
- /* gradient */
- --gradient-blue: radial-gradient(346.57% 244.17% at 149.73% -58.39%, rgb(15, 88, 129) 0%, rgb(30, 164, 156) 51.21689438819885%, rgb(118, 206, 117) 80.70731163024902%, rgb(236, 243, 159) 91.14583134651184%);
- --gradient-turquoise: radial-gradient(346.57% 244.17% at 149.73% -58.39%, rgb(117, 196, 240) 0%, rgb(126, 231, 225) 51.21689438819885%, rgb(181, 228, 180) 80.70731163024902%, rgb(237, 244, 164) 91.14583134651184%);
- --gradient-red: linear-gradient(22deg, #f44242 0%, #569ef0 100%);
-}
+
+
/* общие */
@@ -1103,192 +988,6 @@ button{
}
/* compound */
-/* button */
-.button{
- font-family: var(--font-family);
- font-weight: 600;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-black);
-
- border-radius: 20px;
-
- cursor: pointer;
-}
-.button--100-perc{
- width: 100%;
- text-align: center;
-}
-.button--white{
- padding: 11px 24px;
-
- text-align: center;
-
- background-color: var(--background-white);
- border: 1px solid var(--background-black);
-
- transition: opacity .2s ease-out;
-}
-.button--white:hover{
- opacity: .8;
-}
-.button--white.active{
- background: var(--background-black);
- color: var(--background-white);
-}
-.button--gradient{
- background: var(--gradient-turquoise);
- border: none;
-
- transition: opacity .2s ease-out;
-}
-.button--gradient:hover{
- opacity: .8;
-}
-.button--base{
- padding: 12px 24px;
-}
-.button--high{
- height: 56px;
-
- padding: 16px 24px 24px 24px;
-
- font-weight: 700;
- text-align: center;
-
- position: relative;
-}
-.button--high-46{
- padding: 12px 24px;
-
- font-size: 20px;
- font-weight: 700;
- line-height: 24px;
-}
-.button--icon{
- padding-right: 56px;
-
- text-align: start;
-}
-.button--filter::after{
- content: '';
-
- position: absolute;
- top: 16px;
- right: 24px;
-
- width: 24px;
- aspect-ratio: 1;
-
- background-image: url(../img/svg/main/filter.svg);
- background-repeat: no-repeat;
- background-size: contain;
-}
-.button--black{
- padding: 7px 15px;
-
- font-family: var(--font-family);
- font-weight: 500;
- font-size: 24px;
- line-height: 133%;
- color: var(--text-white);
-
- background: var(--background-black);
- border: 1px solid var(--text-white);
-}
-.button--link{
- text-decoration: none;
-}
-.button--red-48-px{
- border-radius: 48px;
-}
-.to-know{
- /* width: 100%; */
-
- padding: 12px 24px 7px 24px;
-
- display: flex;
- justify-content: center;
-
- border: none;
-
- transition: opacity .2s ease-out;
- text-decoration: none;
-}
-.to-know:hover{
- opacity: .8;
-}
-.to-know p{
- padding-bottom: 4px;
-
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-black);
-
- border-bottom: 1px var(--text-black) solid;
-
- cursor: pointer;
-}
-.to-know--background-none{
- background: none;
-}
-.back{
- margin-top: 16px;
- margin-left: 16px;
-
- padding: 8px;
- padding-left: 32px;
-
- background: none;
- border: none;
-
- font-family: var(--font-family);
- font-weight: 600;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-black);
-
- text-decoration: none;
-
- position: relative;
-}
-.back::before{
- content: '';
-
- position: absolute;
- top: 8px;
- left: 0;
-
- margin-right: 8px;
-
- width: 24px;
- height: 24px;
-
- background-image: url(../img/svg/main/arrow-back.svg);
-}
-
-.back::after{
- content: '';
-
- position: absolute;
- bottom: 6px;
- left: 0;
-
- width: calc(100% - 8px);
- height: 1px;
-
- background: var(--text-black);
-}
-
-.wc-forward {
- width: 100%;
- padding: 0.5rem 0;
- text-align: center;
-}
-/* button */
-
/* select */
.select{
max-width: 144px;
@@ -1401,867 +1100,6 @@ button{
/* select */
-/* counter */
-.counter{
- display: flex;
- align-items: center;
-}
-.counter__input{
- width: 48px;
-
- font-family: var(--font-family);
- font-weight: 600;
- font-size: 20px;
- line-height: 120%;
- text-align: center;
- color: var(--text-black);
-
- pointer-events: none;
-
- background: none;
- border: none;
-}
-.counter__button{
- width: 48px;
- height: 48px;
-
- display: flex;
- justify-content: center;
- align-items: center;
-
- border: 1px solid var(--text-3);
- border-radius: 24px;
-
- background: var(--background-white);
-
- transition: opacity .2s ease-out;
-}
-.counter__button:hover{
- opacity: .8;
-}
-.counter--small{
-
-}
-.counter--small .counter__button{
- width: 32px;
- height: 32px;
-}
-.counter--small{
-
-}
-/* counter */
-
-/* modal */
-.modal{
- position: fixed;
- top: 0;
- left: 0;
-
- padding: 20px;
-
- width: 100%;
- height: 100%;
-
- background: rgba(0, 0, 0, 0.25);
-
- z-index: 200;
-
- opacity: 0;
- transition: opacity .2s ease-out;
- pointer-events: none;
-
- display: flex;
- justify-content: center;
- align-items: center;
-
- overflow-y: auto;
-}
-.modal.active{
- opacity: 1;
- pointer-events: auto;
-}
-.modal__notification{}
-.form__button-mobile{
- display: none;
-}
-.modal__aside{
- position: fixed;
- top: 0;
- right: 0;
-
- width: 0;
- height: 100%;
-
- overflow: hidden;
- transition: width .4s ease-out;
-}
-.modal__item{
- height: 100%;
- overflow: auto;
- padding: 24px;
-
- background: var(--background-white);
-
- position: relative;
-
- display: none;
-
- filter: blur(10px);
- transition: filter .2s ease-out;
-}
-.modal__item--no-title{
- padding-top: 72px;
-}
-.modal__item.active{
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-}
-.modal__close{
- position: absolute;
- top: 32px;
- right: 24px;
-
- width: 24px;
- height: 24px;
-
- border: none;
- background: none;
-}
-.modal__header{}
-.modal__title{
- padding-right: 48px;
-
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 36px;
- line-height: 111%;
- text-transform: uppercase;
- color: var(--text-black);
-}
-.modal__small-title{
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 24px;
- line-height: 100%;
- text-transform: uppercase;
- color: var(--text-black);
-}
-.modal__text{
- margin-top: 16px;
-
- padding-right: 10px;
-
- font-family: var(--font-family);
- font-weight: 400;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-0);
-}
-.modal__form-sub{
- margin-top: 48px;
-}
-.modal-form-sub__submit{
- margin-top: 64px;
-}
-.modal__block-button{
- margin-top: 24px;
-}
-.modal__button{
- margin-top: 16px;
-}
-.modal__button:first-child{
- margin-top: 0;
-}
-.modal__content{
- margin-top: 24px;
-}
-.modal__filter{
- width: 400px;
-}
-.modal__footer{
- border-top: 1px solid var(--text-6);
- padding-top: 23px;
-}
-.modal__block-price{
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-.modal-block-price__title{
- font-family: var(--font-family);
- font-weight: 600;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-black);
-}
-.modal-block-price__price{
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 24px;
- line-height: 100%;
- text-transform: uppercase;
- text-align: right;
- color: var(--text-black);
-}
-.modal-block-price__price::after{
- content: 'Р';
-}
-.modal__basket{
- width: 600px;
-}
-.modal__to-know,
-.modal__to-know-submit{
- width: 412px;
-}
-
-.modal-basket__item{
- padding-top: 23px;
- padding-right: 15px;
- padding-bottom: 24px;
-
- display: flex;
-
- border-top: 1px solid var(--background-grey);
-
- position: relative;
-}
-.modal-basket__item::before{
- content: '';
-
- position: absolute;
- top: 24px;
- right: 6px;
-
- width: 24px;
- aspect-ratio: 1;
-
- background-image: url(../img/svg/main/basket.svg);
- background-repeat: no-repeat;
- background-position: center;
-
- cursor: pointer;
-
- transition: opacity .2s ease-out;
-}
-.modal-basket__item:hover .modal-basket__item::before{
- opacity: .8;
-}
-.modal-basket__item--return{
- padding-right: 5px;
-
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-.modal-basket__item--return .modal-basket-item__title{
- padding-right: 10px;
-}
-.modal-basket__item--return::before{
- display: none;
-}
-.modal-basket-item__return{
- border-radius: 20px;
- padding: 4px 24px;
-
- font-family: var(--font-family);
- font-weight: 600;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-white);
-
- background: var(--background-black);
-
- border: none;
-}
-.modal-basket-item__block-image{
- width: 128px;
- aspect-ratio: 1;
-
- display: flex;
- justify-content: center;
- align-items: center;
-}
-.modal-basket-item__image{
- width: 96px;
- aspect-ratio: 1;
-
- object-fit: contain;
-}
-.modal-basket-item__content{
- margin-left: 16px;
-}
-.modal-basket-item__title{
- padding-right: 40px;
-
- font-family: var(--font-family);
- font-weight: 500;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-black);
-}
-.modal-basket-item__sub-title{
- margin-top: 8px;
-
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 12px;
- line-height: 133%;
- color: var(--text-black);
-}
-.modal-basket-item__control{
- margin-top: 24px;
-
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-.modal-basket-item__price{
- font-family: var(--font-family);
- font-weight: 600;
- font-size: 20px;
- line-height: 120%;
- text-align: right;
- color: var(--text-black);
-}
-.modal-basket-item__price::after{
- content: 'Р';
-
- padding-left: 4px;
-}
-.modal__basket .modal__header{
- height: calc(100% - 92px);
- margin-bottom: -36px;
-}
-.modal__basket .modal__content{
- height: calc(100% - 100px);
- overflow-x: hidden;
-
-}
-.modal__basket .modal__content::-webkit-scrollbar {
- width: 7px;
- background-color: #f9f9fd;
-}
-.modal__basket .modal__content::-webkit-scrollbar-thumb {
- background-color: var(--background-black);
- border-radius: 2px;
-}
-
-.modal-form{
- margin: auto;
-
- width: 600px;
-
- padding: 24px;
-
- border-radius: 20px;
-
- position: relative;
-
- display: none;
-}
-.modal-form.active{
- display: block;
-}
-.modal-form--white{
- border: 1px solid var(--background-black);
- background: var(--background-white);
-}
-.modal-form--green-gradient{
- background: var(--gradient-blue);
-}
-.modal-form--width-584{
- width: 584px;
-}
-.modal-form--cdek{
- width: 836px;
-}
-.modal-form__close{
- position: absolute;
- top: 24px;
- right: 24px;
-
- width: 24px;
- aspect-ratio: 1;
-
- border: none;
- background: none;
- background-image: url(../img/svg/main/black-x.svg);
- background-repeat: no-repeat;
- background-size: 24px;
- background-position: center;
-
- transition: opacity .2s ease-out;
-
- z-index: 10;
-}
-.modal-form__close--white{
- background-image: url(../img/svg/main/white-x.svg);
-}
-.modal-form__close:hover{
- opacity: .8;
-}
-.modal-form__button-close{}
-.modal-form__title{
- padding-right: 50px;
-
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 26px;
- line-height: 123%;
- text-transform: uppercase;
- color: var(--text-dark);
-}
-.modal-form__text--center{
- text-align: center;
-}
-.modal-form__text--center-pc{
- text-align: center;
-}
-.modal-form__title--green-gradient{
- background: var(--gradient-blue);
- background-clip: text;
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
-}
-.modal-form__title--white{
- color: var(--text-white);
-}
-.modal-form__element{
- margin-top: 24px;
-}
-.modal-form__element--center{
- display: flex;
- justify-content: center;
-}
-.modal-form__element--top-40{
- margin-top: 40px;
-}
-.modal-form__text{
- font-family: var(--font-family);
- font-weight: 400;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-black);
-}
-.modal-form__text--weight-500{
- font-weight: 500;
-}
-.modal-form__text--white{
- color: var(--text-white);
-}
-.modal-form__img{
- width: 100%;
- height: 360px;
-
- object-fit: contain;
-}
-.modal-form__content{
- margin-top: 40px;
-}
-.modal-form-content__line{
- margin-top: 24px;
-}
-.modal-form-content__line:first-child{
- margin-top: 0;
-}
-.modal-form-content__line--two{
- display: flex;
- justify-content: space-between;
-}
-.modal-form-content__line--two-mobile{
- display: flex;
- justify-content: space-between;
-}
-.modal-form-content__line--two-mobile .modal-form-content-line__element{
- width: calc(50% - 12px);
-}
-.modal-form-content-line__element{
- position: relative;
-}
-.modal-form-content-line__element--arrow::after{
- content: '';
-
- position: absolute;
- right: 16px;
- bottom: 16px;
-
- width: 16px;
- height: 16px;
-
- background-image: url(../img/svg/main/arrow-right-input.svg);
-
- pointer-events: none;
-}
-.modal-form-content__line--two .modal-form-content-line__element{
- width: calc(50% - 12px);
-}
-.modal-form-content__line--three{
- display: flex;
-}
-.modal-form-content__line--three .modal-form-content-line__element:nth-child(1){
- width: 85px;
-
- flex-shrink: 0;
-}
-.modal-form-content__line--three .modal-form-content-line__element:nth-child(2){
- margin-left: 8px;
-
- width: 100%;
-}
-.modal-form-content__line--three .modal-form-content-line__element:nth-child(3){
- margin-left: 8px;
-
- width: 85px;
-
- flex-shrink: 0;
-}
-.modal-form-content__line--margin-top-16{
- margin-top: 16px;
-}
-.modal-form__buttons{
- margin-top: 32px;
-}
-.modal-form__buttons--two{
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-
-.modal-form__buttons--two button,
-.modal-form__buttons--two input{
- width: calc(50% - 20px);
-}
-.modal-map{
- margin: auto;
-
- width: 1105px;
-
- display: none;
-
- border-radius: 24px;
- border: none;
-}
-.modal-map.active{
- display: flex;
-}
-.modal-map__left{
- width: 600px;
-
- padding: 24px;
-
- position: relative;
-}
-.modal-map__control{
- margin: 38px -12px -12px -12px;
-
- display: flex;
-}
-.modal-map__control--delivery{
- margin-top: 12px;
-}
-.modal-map-control__item{
- margin: 12px;
-
- padding: 2px;
-
- width: calc(50% - 24px);
-
- background: var(--background-9);
- border-radius: 20px;
- border: none;
-}
-.modal-map-control__item.active{
- background: var(--gradient-blue);
-}
-.modal-map-control__item.active .form-input-radio__circle::before{
- content: '';
- position: absolute;
- top: 4px;
- left: 4px;
- width: 12px;
- aspect-ratio: 1;
- border-radius: 50%;
- background: var(--gradient-blue);
-}
-.modal-map-control-item__content{
- padding: 14px;
-
- border-radius: 18px;
-
- background: var(--background-white);
-}
-.modal-map-control-item__header{
- display: flex;
- align-items: center;
-}
-.modal-map-control-item__circle{
- padding: 2px;
- width: 20px;
- aspect-ratio: 1;
- border-radius: 50%;
- background: var(--background-9);
- position: relative;
-}
-.modal-map-control-item__input{
- display: none;
-}
-.modal-map-control-item-circle__content{
- width: 16px;
- aspect-ratio: 1;
- border-radius: 50%;
- background: var(--background-white);
-}
-.modal-map-control__item.active .modal-map-control-item__circle{
- background: var(--gradient-blue);
-}
-.modal-map-control__item.active .modal-map-control-item__circle::before{
- content: '';
- position: absolute;
- top: 4px;
- left: 4px;
- width: 12px;
- aspect-ratio: 1;
- border-radius: 50%;
- background: var(--gradient-blue);
-}
-.modal-map-control-item__title{
- margin-left: 8px;
-
- font-family: var(--font-family);
- font-weight: 400;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-dark);
-}
-.modal-map-control-item__description{
- margin-top: 16px;
-}
-.modal-map-control-item__time{
- font-family: var(--font-family);
- font-weight: 500;
- font-size: 16px;
- line-height: 125%;
- color: var(--text-black);
-
- text-align: start;
-}
-.modal-map-control-item__price{
- margin-top: 8px;
-
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 12px;
- line-height: 133%;
- color: var(--text-6);
-
- text-align: start;
-}
-.modal-map__form{
- margin-top: 24px;
-}
-.modal-map-form__hidden{
-
-}
-.modal-map-form__button{
- margin-top: 83px;
-}
-.modal-map-form__sub-button{
- display: none;
-}
-.modal-map__right{
- padding: 16px 0px 16px 16px;
-}
-.modal-map__map{
- border: 2px solid var(--background-9);
- border-radius: 16px;
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
-}
-.modal-map__map iframe{
- height: 650px;
-}
-.modal__age{
-
-}
-.modal__age > div{
- display: none;
-}
-.modal__age > div.active{
- display: flex;
-}
-/* modal */
-
-/* toggle */
-.toggle{
- padding-top: 26px;
- padding-bottom: 25px;
-
- border-bottom: 1px solid var(--text-3);
-
- position: relative;
-}
-.toggle::after{
- content: '';
-
- position: absolute;
- top: 24px;
- right: 0;
-
- width: 24px;
- aspect-ratio: 1;
-
- background-image: url(../img/svg/main/black-x.svg);
- transform: rotate(45deg);
- transition: transform .2s;
- pointer-events: none;
-}
-.toggle.active::after{
- transform: rotate(0deg);
-}
-.toggle__title{
- padding-right: 30px;
-
- font-family: var(--font-family);
- font-weight: 700;
- font-size: 16px;
- line-height: 125%;
- color: var(--text-black);
-
- cursor: pointer;
-}
-.toggle__block-content{
- height: 0;
- overflow: hidden;
-
- transition: height .2s ease-out;
-}
-.toggle__content{
- padding-top: 24px;
-}
-.toggle-content__item{
- margin: 12px -12px -12px -12px;
-
- display: flex;
- align-items: center;
- flex-wrap: wrap;
-}
-.toggle-content__item:first-child{
- margin-top: 0;
-}
-.toggle-content__element{
- margin: 12px;
-}
-.toggle-content__element--width-perc-100{
- width: 100%;
-}
-.toggle-content__element--width-perc-50{
- width: calc(50% - 24px);
-}
-.toggle__text{
- font-family: var(--font-family);
- font-weight: 400;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-black);
-}
-/* toggle */
-
-/* checkbox */
-.checkbox{
- display: flex;
- align-items: center;
-
- cursor: pointer;
-}
-.checkbox__state{
- border-radius: 4px;
-
- width: 18px;
- height: 18px;
-
- border: 2px solid var(--background-black);
- background: var(--background-white);
-
- flex-shrink: 0;
-}
-.checkbox.active .checkbox__state{
- background-color: var(--background-black);
-
- background-image: url(../img/svg/main/arrow-selected-white.svg);
- background-repeat: no-repeat;
- background-position: center;
-}
-.checkbox__input{
- display: none;
-}
-.checkbox__label{
- padding-left: 8px;
-
- font-family: var(--font-family);
- font-weight: 400;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-dark);
-
- cursor: pointer;
-}
-.checkbox__label a{
- color: #76ce75;
-
- text-decoration: none;
-}
-.checkbox--small{
- margin-top: 24px;
-}
-.checkbox--small .checkbox__label{
- padding-left: 24px;
-
- font-weight: 500;
- font-size: 12px;
- line-height: 133%;
-}
-/* checkbox */
-
-/* radio */
-.radio{
- display: flex;
- align-items: center;
-}
-.radio__input{
- width: 18px;
- aspect-ratio: 1;
-
- accent-color: var(--background-black);
-
- cursor: pointer;
-}
-.radio__label{
- padding-left: 8px;
-
- font-family: var(--font-family);
- font-weight: 400;
- font-size: 20px;
- line-height: 120%;
- color: var(--text-dark);
-
- cursor: pointer;
-}
-/* radio */
-
-.added_to_cart {
- display: none!important;
-}
-
-@keyframes slidein {
- from {
- opacity: 0;
- }
-
- to {
- opacity: 1;
- }
-}
/* Sidebar Filters */
diff --git a/wp-content/themes/cosmopet/woocommerce/assets/js/_gp-function.js b/wp-content/themes/cosmopet/woocommerce/assets/js/_gp-function.js
deleted file mode 100644
index ed4d7ab..0000000
--- a/wp-content/themes/cosmopet/woocommerce/assets/js/_gp-function.js
+++ /dev/null
@@ -1,156 +0,0 @@
-'use strict';
-
-// function
-export function modalOpen(buttonElement, contentElement){
- let modal = document.querySelector('.modal'),
- aside = document.querySelector('.modal__aside'),
- elements = document.querySelectorAll(buttonElement),
- device = window.screen.width;
-
- elements.forEach(e => {
- let thisContentElement = document.querySelector(contentElement);
-
- e.onclick = function () {
- modal.classList.add('active');
- thisContentElement.classList.add('active');
-
- let width = thisContentElement.clientWidth;
-
- setTimeout(() => {
- if (device <= 720) {
- aside.style.width = `${device}px`;
- thisContentElement.style.opacity = 1;
- thisContentElement.style.filter = 'blur(0px)';
- }else{
- aside.style.width = `${width}px`;
- thisContentElement.style.opacity = 1;
- thisContentElement.style.filter = 'blur(0px)';
- }
- }, 10);
- }
- })
-}
-
-export function modalClose(buttonElement) {
- let modal = document.querySelector('.modal'),
- aside = document.querySelector('.modal__aside'),
- asideItems = document.querySelectorAll('.modal__item'),
- elements = document.querySelectorAll(buttonElement);
-
- elements.forEach(e => {
- e.onclick = function () {
- aside.style.width = '0px';
-
- asideItems.forEach(e => {
- if (e.classList.contains('active')) {
- e.style.filter = 'blur(10px)';
- }
- });
-
- setTimeout(() => {
- asideItems.forEach(e => {
- if (e.classList.contains('active')) {
- e.classList.remove('active');
- }
- });
-
- modal.classList.remove('active');
- }, 300);
- }
- })
-}
-
-export function closeModalForm(close){
- let buttons = document.querySelectorAll(close),
- modal = document.querySelector('.modal');
-
- buttons.forEach(button => {
- button.onclick = function (buttonEvent) {
- modal.classList.remove('active');
-
- if (!modal.querySelector('.modal-map.active')) {
- modal.querySelector('.modal-form.active').classList.remove('active');
- }else{
- modal.querySelector('.modal-map.active').classList.remove('active');
- }
- }
- })
-}
-
-export function toggleOpenX(mainElement, buttonElement ,heightElement, contentElement, close) {
- let elements = document.querySelectorAll(mainElement);
-
- elements.forEach(e => {
- let thisMainElement = e,
- thisButtonElement = e.querySelector(buttonElement),
- thisHeightElement = e.querySelector(heightElement),
- thisContentElement = e.querySelector(contentElement);
-
- thisButtonElement.onclick = function (e) {
- let height = thisHeightElement.clientHeight;
-
- if (close == true && !thisMainElement.classList.contains('active')) {
- elements.forEach(e => {
- if (e.classList.contains('active')) {
- e.classList.remove('active');
- e.querySelector(contentElement).style.height = null
- }
- })
- }
-
- if (!thisMainElement.classList.contains('active')) {
- thisContentElement.style.height = `${height}px`;
- thisMainElement.classList.add('active');
- }else{
- thisContentElement.style.height = null;
- thisMainElement.classList.remove('active');
- }
- }
-
- });
-}
-
-export function toggleHeader(button, content, blockheight, removeBlock, removeClass) {
- let thisButton = document.querySelector(button),
- thisContent = document.querySelector(content),
- thisRemoveBlock = document.querySelector(removeBlock) || '',
- thisBlockheight = document.querySelector(blockheight);
-
- thisButton.onclick = function () {
- let height = thisBlockheight.clientHeight;
-
- if (!thisContent.classList .contains('open')) {
- thisContent.style.height = `${height}px`;
- thisContent.classList .add('open');
-
- if (removeBlock) {
- thisRemoveBlock.classList.remove(removeClass);
- }
- }else{
- thisContent.style.height = null;
- thisContent.classList .remove('open');
-
- if (removeBlock) {
- if (window.scrollY <= 25) {
- thisRemoveBlock.classList.add(removeClass);
- }
- }
- }
- }
-}
-
-export function modalFormOpen(formOrNotification) {
- let buttons = document.querySelectorAll(formOrNotification),
- modal = document.querySelector('.modal');
-
- buttons.forEach(button => {
- button.onclick = function (eventButton) {
- let classOpenForm = button.dataset.form,
- form = modal.querySelector(`.${classOpenForm}`);
-
- form.classList.add('active');
- modal.classList.add('active');
- }
- })
-}
-// function
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/assets/js/core.js b/wp-content/themes/cosmopet/woocommerce/assets/js/core.js
deleted file mode 100644
index d515cbb..0000000
--- a/wp-content/themes/cosmopet/woocommerce/assets/js/core.js
+++ /dev/null
@@ -1,110 +0,0 @@
-'use strict';
-
-// slider gallery modal
-const gallery = new Swiper('.gallery__slider', {
- spaceBetween: 100,
-
- pagination: {
- el: '.swiper-pagination',
- },
-
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
-
- scrollbar: {
- el: '.swiper-scrollbar',
- },
-});
-
-let paginationButtons = document.querySelectorAll('.gallery-pagination__item');
-
-paginationButtons.forEach(button => {
- let index = button.dataset.countImg;
-
- button.onclick = function () {
- gallery.slideTo(index);
- }
-})
-
-// open gallery
-let detailImage= document.querySelectorAll('.detail__image');
-detailImage.forEach(button => {
- let index = button.dataset.countImg;
-
- button.onclick = function () {
- gallery.slideTo(index);
-
- document.querySelector('.gallery').classList.add('active');
- }
-})
-
-// close gallery
-
-document.querySelector('.gallery__close').onclick = function () {
- document.querySelector('.gallery').classList.remove('active');
-}
-// slider gallery modal
-
-// slider gallery main phone
-
-// createGalleryPhone('.detail__images', '.detail-images__wrapper', '.detail__image', 980);
-
-const detailPhone = new Swiper('.detail__images-phone', {
- spaceBetween: 100,
-
- pagination: {
- el: '.swiper-pagination',
- },
-
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
-
- scrollbar: {
- el: '.swiper-scrollbar',
- },
-});
-
-let detailImagesPhones = document.querySelectorAll('.detail-images-phone__image-block');
-
-detailImagesPhones.forEach(button => {
- button.onclick = function (e) {
- let index = button.dataset.countImg;
-
- gallery.slideTo(index);
-
- document.querySelector('.gallery').classList.add('active');
- }
-})
-
-// slider gallery main phone
-
-// detail catalog
-const detailCatalot = new Swiper('.detail__catalot', {
- // Navigation arrows
- navigation: {
- nextEl: '.detail-catalot-control__button.next',
- prevEl: '.detail-catalot-control__button.prev',
- },
- breakpoints: {
- 1600: {
- slidesPerView: 4,
- },
- 1200: {
- slidesPerView: 3,
- },
- 780: {
- slidesPerView: 2,
- },
- 100: {
- slidesPerView: 1.1,
- spaceBetween: 20
- },
- }
-
-
-});
-// detail catalog
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/assets/js/gp-cabinet.js b/wp-content/themes/cosmopet/woocommerce/assets/js/gp-cabinet.js
deleted file mode 100644
index d8a5111..0000000
--- a/wp-content/themes/cosmopet/woocommerce/assets/js/gp-cabinet.js
+++ /dev/null
@@ -1,67 +0,0 @@
-'use strict';
-
-import * as fun from './_gp-function.js';
-
-let widthPhoneCabinet = 1200;
-
-fun.toggleOpenX('.cabinet-card__order', '.cabinet-card-order__open-detail', '.cabinet-card-order__detail', '.cabinet-card-order__block-detail');
-fun.modalFormOpen('.form-open');
-
-fun.closeModalForm('.modal-form__close');
-fun.closeModalForm('.modal-form__button-close');
-
-controlCabinet('.cabinet-control__button', '.cabinet', widthPhoneCabinet);
-
-function controlCabinet(buttons, main, minWidth){
- let thisWidth = window.innerWidth;
- let thisMain = document.querySelector(main);
-
- let thisButtons = document.querySelectorAll(buttons);
-
- thisButtons.forEach(e => {
- e.onclick = function (element){
- let thisContent = document.querySelector(`.cabinet__${e.dataset.cabinet}`);
- let newHeight = thisContent.clientHeight + 48;
- let thisButton = element.target;
-
- thisMain.style.height = `${newHeight}px`
-
- if (!thisContent.classList.contains('active')) {
- thisMain.querySelector('.active').classList.remove('active');
- thisContent.classList.add('active');
-
- setTimeout(() => {
- thisMain.style.height = 'auto';
-
- if (thisMain.querySelector('.hide')) {
- thisMain.querySelector('.hide').classList.remove('hide');
- }
-
- thisMain.querySelector('.active').classList.add('hide');
- }, 200);
- }
-
- thisButtons.forEach(e => {
- e.classList.remove('active');
- })
- thisButton.classList.add('active');
- }
- })
-
-}
-
-let modal = document.querySelector('.modal');
-modal.onclick = function (eventModal) {
- let thisTarget = eventModal.target;
-
- if (thisTarget.classList.contains('modal')) {
- thisTarget.classList.remove('active');
-
- if (!thisTarget.querySelector('.modal-map.active')) {
- thisTarget.querySelector('.modal-form.active').classList.remove('active');
- }else{
- thisTarget.querySelector('.modal-map.active').classList.remove('active');
- }
- }
-}
-
diff --git a/wp-content/themes/cosmopet/woocommerce/assets/js/gp-product.js b/wp-content/themes/cosmopet/woocommerce/assets/js/gp-product.js
deleted file mode 100644
index 2508270..0000000
--- a/wp-content/themes/cosmopet/woocommerce/assets/js/gp-product.js
+++ /dev/null
@@ -1,110 +0,0 @@
-'use strict';
-
-// slider gallery modal
-const gallery = new Swiper('.gallery__slider', {
- spaceBetween: 100,
-
- pagination: {
- el: '.swiper-pagination',
- },
-
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
-
- scrollbar: {
- el: '.swiper-scrollbar',
- },
-});
-
-let paginationButtons = document.querySelectorAll('.gallery-pagination__item');
-
-paginationButtons.forEach(button => {
- let index = button.dataset.countImg;
-
- button.onclick = function () {
- gallery.slideTo(index);
- }
-})
-
-// open gallery
-let detailImage= document.querySelectorAll('.detail__image');
-detailImage.forEach(button => {
- let index = button.dataset.countImg;
-
- button.onclick = function () {
- gallery.slideTo(index);
-
- document.querySelector('.gallery').classList.add('active');
- }
-})
-
-// close gallery
-
-document.querySelector('.gallery__close').onclick = function () {
- document.querySelector('.gallery').classList.remove('active');
-}
-// slider gallery modal
-
-// slider gallery main phone
-
-// createGalleryPhone('.detail__images', '.detail-images__wrapper', '.detail__image', 980);
-
-const detailPhone = new Swiper('.detail__images-phone', {
- spaceBetween: 100,
-
- pagination: {
- el: '.swiper-pagination',
- },
-
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
-
- scrollbar: {
- el: '.swiper-scrollbar',
- },
-});
-
-let detailImagesPhones = document.querySelectorAll('.detail-images-phone__image-block');
-
-detailImagesPhones.forEach(button => {
- button.onclick = function (e) {
- let index = button.dataset.countImg;
-
- gallery.slideTo(index);
-
- document.querySelector('.gallery').classList.add('active');
- }
-})
-
-// slider gallery main phone
-
-// detail catalog
-const detailCatalot = new Swiper('.detail__catalot', {
- // Navigation arrows
- navigation: {
- nextEl: '.detail-catalot-control__button.next',
- prevEl: '.detail-catalot-control__button.prev',
- },
- breakpoints: {
- 1600: {
- slidesPerView: 4,
- },
- 1200: {
- slidesPerView: 3,
- },
- 780: {
- slidesPerView: 2,
- },
- 100: {
- slidesPerView: 1.1,
- spaceBetween: 20
- },
- }
-
-
-});
-// detail catalog
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/cart/cart-item-data.php b/wp-content/themes/cosmopet/woocommerce/cart/cart-item-data.php
new file mode 100644
index 0000000..89c61e1
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/cart/cart-item-data.php
@@ -0,0 +1,29 @@
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/cart/cart-shipping.php b/wp-content/themes/cosmopet/woocommerce/cart/cart-shipping.php
new file mode 100644
index 0000000..b341ab6
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/cart/cart-shipping.php
@@ -0,0 +1,121 @@
+countries->get_formatted_address( $package['destination'], ', ' );
+$has_calculated_shipping = ! empty( $has_calculated_shipping );
+$show_shipping_calculator = ! empty( $show_shipping_calculator );
+$calculator_text = '';
+
+?>
+
+
+
+
+
+
+
+ label, $matches)) {
+ $text_before_comma = trim($matches[1]); // Текст до запятой
+ $text_in_parentheses = trim($matches[2]); // Текст в скобках
+ } else {
+ $text_before_comma = '';
+ $text_in_parentheses = '';
+ }
+ if ($text_before_comma == 'CDEK: Посылка склад-дверь'){
+ $title = 'Курьером';
+ }
+ else if ($text_before_comma == 'CDEK: Посылка склад-склад'){
+ $title = 'Пункт выдачи';
+ }
+ ?>
+
+
+
+
+
+ ', $index, esc_attr( sanitize_title( $method->id ) ), esc_attr( $method->id ), checked( $method->id, $chosen_method, false ) ); // WPCS: XSS ok.
+ } else {
+ printf( ' ', $index, esc_attr( sanitize_title( $method->id ) ), esc_attr( $method->id ) ); // WPCS: XSS ok.
+ }
+ ?>
+
+
+
+
+
+
+
+ ' . esc_html( $formatted_destination ) . '' );
+ $calculator_text = esc_html__( 'Change address', 'woocommerce' );
+ } else {
+ echo wp_kses_post( apply_filters( 'woocommerce_shipping_estimate_html', __( 'Shipping options will be updated during checkout.', 'woocommerce' ) ) );
+ }
+ ?>
+
+
+
+ Нет доступных способов доставки. Для отображение доступных методов укажите ваш город.
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/cart/cart.php b/wp-content/themes/cosmopet/woocommerce/cart/cart.php
new file mode 100644
index 0000000..b3040d7
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/cart/cart.php
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ;
+
+
+
+
+
+
+
+
+
+
+
+
+ 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 );
+ $product_name = apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key );
+ ?>
+
+
+
+
+ ×',
+ esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
+ /* translators: %s is the product name */
+ esc_attr( sprintf( __( 'Remove %s from cart', 'woocommerce' ), wp_strip_all_tags( $product_name ) ) ),
+ esc_attr( $product_id ),
+ esc_attr( $_product->get_sku() )
+ ),
+ $cart_item_key
+ );
+ ?>
+
+
+
+ get_image(), $cart_item, $cart_item_key );
+ } else {
+ printf( '%s ', esc_url( $product_permalink ), apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key ) );
+ }
+ ?>
+
+
+
+ %s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) );
+ }
+
+ do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key );
+
+ // Meta data
+ echo wc_get_formatted_cart_item_data( $cart_item );
+
+ // Backorder notification
+ if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) {
+ echo wp_kses_post( apply_filters( 'woocommerce_cart_item_backorder_notification', '' . esc_html__( 'Available on backorder', 'woocommerce' ) . '
', $product_id ) );
+ }
+ ?>
+
+
+
+
+ get_sku() ) : ?>
+ get_sku() ); ?>
+
+
+
+
+
+
+
+ cart->get_product_price( $_product ), $cart_item, $cart_item_key );
+ ?>
+
+
+
+ is_sold_individually() ) {
+ $min_quantity = 1;
+ $max_quantity = 1;
+ } else {
+ $min_quantity = 0;
+ $max_quantity = $_product->get_max_purchase_quantity();
+ }
+
+ $product_quantity = woocommerce_quantity_input(
+ array(
+ 'input_name' => "cart[{$cart_item_key}][qty]",
+ 'input_value' => $cart_item['quantity'],
+ 'max_value' => $max_quantity,
+ 'min_value' => $min_quantity,
+ 'product_name' => $product_name,
+ ),
+ $_product,
+ false
+ );
+
+ echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item );
+ ?>
+
+
+
+ cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key );
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/cart/cross-sells.php b/wp-content/themes/cosmopet/woocommerce/cart/cross-sells.php
new file mode 100644
index 0000000..c7a7c53
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/cart/cross-sells.php
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+ apply_filters( 'woodmart_cross_sells_products_per_view', 4 ),
+ 'hide_pagination_control' => true,
+ 'hide_prev_next_buttons' => true,
+ 'img_size' => 'woocommerce_thumbnail',
+ 'custom_sizes' => apply_filters( 'woodmart_cross_sells_custom_sizes', false ),
+ 'product_quantity' => woodmart_get_opt( 'product_quantity' ),
+ 'products_bordered_grid' => woodmart_get_opt( 'products_bordered_grid' ),
+ 'products_bordered_grid_style' => woodmart_get_opt( 'products_bordered_grid_style' ),
+ 'products_with_background' => woodmart_get_opt( 'products_with_background' ),
+ 'products_shadow' => woodmart_get_opt( 'products_shadow' ),
+ 'products_color_scheme' => woodmart_get_opt( 'products_color_scheme' ),
+ );
+
+ woodmart_set_loop_prop( 'products_view', 'carousel' );
+
+ echo woodmart_generate_posts_slider( $slider_args, false, $cross_sells );
+
+ ?>
+
+
+
+
+
+
+
+
+ cart->is_empty() ) : ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/cart-errors.php b/wp-content/themes/cosmopet/woocommerce/checkout/cart-errors.php
new file mode 100644
index 0000000..56c989d
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/cart-errors.php
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/form-billing.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-billing.php
new file mode 100644
index 0000000..dbeeb55
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/form-billing.php
@@ -0,0 +1,56 @@
+
+
+ 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-checkout.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-checkout.php
new file mode 100644
index 0000000..d259c1d
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/form-checkout.php
@@ -0,0 +1,29 @@
+checkout();
+
+// In your theme's functions.php
+add_filter('timber/twig', function($twig) {
+ $twig->addFunction(new \Twig\TwigFunction('WC', function() {
+ return WC();
+ }));
+ return $twig;
+});
+
+// Render the Twig template
+Timber::render('shop/checkout.twig', $context);
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/form-coupon.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-coupon.php
new file mode 100644
index 0000000..072b47d
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/form-coupon.php
@@ -0,0 +1,49 @@
+
+
+cart->get_applied_coupons();
+if($applied_coupons){
+ $first_coupon = $applied_coupons[0];
+ $cText = 'Применен промокод: ' . $first_coupon;
+ $coupon = $applied_coupons[0];
+}
+else{
+ $cText = '';
+ $coupon = '';
+}
+
+?>
+
>
+
+Применить
+Ошибка! Промокод введен неверно или не существует.
+
+
+
>
+
+Удалить
+
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/form-login.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-login.php
new file mode 100644
index 0000000..f9b9c40
--- /dev/null
+++ b/wp-content/themes/cosmopet/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/cosmopet/woocommerce/checkout/form-pay.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-pay.php
new file mode 100644
index 0000000..59d9b34
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/form-pay.php
@@ -0,0 +1,109 @@
+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 '';
+ wc_print_notice( 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' ) ), 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
+ echo ' ';
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+ ' . esc_html( $order_button_text ) . '' ); // @codingStandardsIgnoreLine ?>
+
+
+
+
+
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/form-shipping.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-shipping.php
new file mode 100644
index 0000000..727f9de
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/form-shipping.php
@@ -0,0 +1,70 @@
+
+
+ cart->needs_shipping_address() ) : ?>
+
+
+
+ type="checkbox" name="ship_to_different_address" value="1" />
+
+
+
+
+
+
+
+
+ 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/cosmopet/woocommerce/checkout/form-verify-email.php b/wp-content/themes/cosmopet/woocommerce/checkout/form-verify-email.php
new file mode 100644
index 0000000..fd86a4d
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/form-verify-email.php
@@ -0,0 +1,53 @@
+
+
+
+
+
+ ',
+ ''
+ );
+ ?>
+
+
+
+ *
+
+
+
+
+
+
+
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/order-receipt.php b/wp-content/themes/cosmopet/woocommerce/checkout/order-receipt.php
new file mode 100644
index 0000000..74b628f
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/order-receipt.php
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/payment-method.php b/wp-content/themes/cosmopet/woocommerce/checkout/payment-method.php
new file mode 100644
index 0000000..05308d8
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/payment-method.php
@@ -0,0 +1,33 @@
+
+
+ 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
new file mode 100644
index 0000000..3b68df7
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/payment.php
@@ -0,0 +1,63 @@
+
+
+ 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 ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Товары
+
+
+
+ cart->get_coupons() as $code => $coupon ) : ?>
+
+
+
+
+
+
+ cart->needs_shipping() && WC()->cart->show_shipping() ) : ?>
+
+
+
+
+
+
+
+
+
+
+ Доставка
+ session->get( 'chosen_shipping_methods' );
+ ?>
+
+ Введите адрес доставки
+
+ cart->get_shipping_total(); ?> ₽
+
+
+
+
+ cart->get_fees() as $fee ) : ?>
+
+ name ); ?>
+
+
+
+
+ cart->display_prices_including_tax() ) : ?>
+
+ cart->get_tax_totals() as $code => $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
+
+ label ); ?>
+ formatted_amount ); ?>
+
+
+
+
+ countries->tax_or_vat() ); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/terms.php b/wp-content/themes/cosmopet/woocommerce/checkout/terms.php
new file mode 100644
index 0000000..eebb91b
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/terms.php
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+ id="terms" class="form-agreement__input">
+
+
+
+
+
+
+
+
+
+
+
+ get_id() );
+ ?>
+
+ has_status( 'failed' ) ) : ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ $order ) ); ?>
+
+
+
+
+
+ get_order_number(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+
+
+ get_date_created() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+ get_user_id() === get_current_user_id() && $order->get_billing_email() ) : ?>
+
+
+ get_billing_email(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+
+
+
+ get_formatted_order_total(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+ get_payment_method_title() ) : ?>
+
+
+ get_payment_method_title() ); ?>
+
+
+
+
+
+
+
+ get_payment_method(), $order->get_id() ); ?>
+ get_id() ); ?>
+
+
+
+ false ) ); ?>
+
+
+
+
diff --git a/wp-content/themes/cosmopet/woocommerce/checkout/thankyou.php b/wp-content/themes/cosmopet/woocommerce/checkout/thankyou.php
new file mode 100644
index 0000000..6019893
--- /dev/null
+++ b/wp-content/themes/cosmopet/woocommerce/checkout/thankyou.php
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+ get_id() ); ?>
+
+ has_status( 'failed' ) ) : ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ get_order_number(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+
+
+ get_date_created() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+ get_user_id() === get_current_user_id() && $order->get_billing_email() ) : ?>
+
+
+ get_billing_email(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+
+
+
+ get_formatted_order_total(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+
+ get_payment_method_title() ) : ?>
+
+
+ get_payment_method_title() ); ?>
+
+
+
+
+
+
+
+
+
+
+ get_payment_method(), $order->get_id() ); ?>
+ get_id() ); ?>
+
+
+
+
+
+
+
+
+