From bb66bcdacfe027472146e695e1e7b309a31e8739 Mon Sep 17 00:00:00 2001 From: maksim Date: Fri, 27 Jun 2025 18:22:30 +0300 Subject: [PATCH] =?UTF-8?q?Task=206991=20|=20=D0=94=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=20=D1=87=D0=B5=D0=BA=D0=B1=D0=BE=D0=BA?= =?UTF-8?q?=D1=81=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B2=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=86=D0=B5=D1=81=D1=81=D0=B5=20=D0=B7=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D0=B0=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B4=D0=BE=D0=BC=D0=B5=D0=BD=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0=20username=20=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=B0=20=D0=BD=D0=B0=20ru=20=D1=81=D1=82=D0=B5=D0=BD?= =?UTF-8?q?=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cosmopet/global-functions/multilang-functions.php | 1 + .../cosmopet/modules/forms/module-ajax-controller.php | 2 +- .../cosmopet/modules/profile/module-ajax-controller.php | 2 +- wp-content/themes/cosmopet/templates/shop/checkout.twig | 8 ++++++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/cosmopet/global-functions/multilang-functions.php b/wp-content/themes/cosmopet/global-functions/multilang-functions.php index 0b2301d..1299fce 100644 --- a/wp-content/themes/cosmopet/global-functions/multilang-functions.php +++ b/wp-content/themes/cosmopet/global-functions/multilang-functions.php @@ -1765,6 +1765,7 @@ pll_register_string('Начните вводить ваш email', 'Начнит pll_register_string('Населенный пункт', 'Населенный пункт', 'Checkout'); pll_register_string('Ваш город', 'Ваш город', 'Checkout'); pll_register_string('Оплатить', 'Оплатить', 'Checkout'); +pll_register_string('Запомнить меня', 'Запомнить меня', 'Checkout'); }); diff --git a/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php b/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php index 414963f..4b25378 100644 --- a/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php +++ b/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php @@ -258,7 +258,7 @@ function send_order_data($order_id) { } $handler = FormHandlerFactory::getHandler(['tg']); - $response = $handler->handle($formData); + $response = $handler->handle($formData, array()); } diff --git a/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php b/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php index a653b23..ba3e13e 100644 --- a/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php +++ b/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php @@ -178,7 +178,7 @@ function handle_subscription_address_update() { // Динамическое определение BOT_USERNAME $site_url = site_url(); -if ($site_url === 'https://cosmopet-test-ru.cp.good-production.xyz') { +if ($site_url === 'https://cosmopet-test-dumb.cp.good-production.xyz') { define('BOT_USERNAME', 'cosmopet_test_RU_bot'); } elseif ($site_url === 'https://cosmopet-test-ae.cp.good-production.xyz') { define('BOT_USERNAME', 'cosmopet_test_AE_bot'); diff --git a/wp-content/themes/cosmopet/templates/shop/checkout.twig b/wp-content/themes/cosmopet/templates/shop/checkout.twig index 99d12a2..410f9b1 100644 --- a/wp-content/themes/cosmopet/templates/shop/checkout.twig +++ b/wp-content/themes/cosmopet/templates/shop/checkout.twig @@ -20,6 +20,14 @@
{{ fn('do_action', 'woocommerce_checkout_billing') }} + {% if not fn('is_user_logged_in') %} +
+ +
+
+ +
+ {% endif %}
{% set chosen_methods = WC().session.get('chosen_shipping_methods') %}