Task 6991 | Добавлен чекбокс для регистрации в процессе заказа исправлен домен для вывода username бота на ru стенде

pull/36/head
parent 309c963515
commit bb66bcdacf
  1. 1
      wp-content/themes/cosmopet/global-functions/multilang-functions.php
  2. 2
      wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php
  3. 2
      wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php
  4. 8
      wp-content/themes/cosmopet/templates/shop/checkout.twig

@ -1765,6 +1765,7 @@ pll_register_string('Начните вводить ваш email', 'Начнит
pll_register_string('Населенный пункт', 'Населенный пункт', 'Checkout'); pll_register_string('Населенный пункт', 'Населенный пункт', 'Checkout');
pll_register_string('Ваш город', 'Ваш город', 'Checkout'); pll_register_string('Ваш город', 'Ваш город', 'Checkout');
pll_register_string('Оплатить', 'Оплатить', 'Checkout'); pll_register_string('Оплатить', 'Оплатить', 'Checkout');
pll_register_string('Запомнить меня', 'Запомнить меня', 'Checkout');
}); });

@ -258,7 +258,7 @@ function send_order_data($order_id) {
} }
$handler = FormHandlerFactory::getHandler(['tg']); $handler = FormHandlerFactory::getHandler(['tg']);
$response = $handler->handle($formData); $response = $handler->handle($formData, array());
} }

@ -178,7 +178,7 @@ function handle_subscription_address_update() {
// Динамическое определение BOT_USERNAME // Динамическое определение BOT_USERNAME
$site_url = site_url(); $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'); define('BOT_USERNAME', 'cosmopet_test_RU_bot');
} elseif ($site_url === 'https://cosmopet-test-ae.cp.good-production.xyz') { } elseif ($site_url === 'https://cosmopet-test-ae.cp.good-production.xyz') {
define('BOT_USERNAME', 'cosmopet_test_AE_bot'); define('BOT_USERNAME', 'cosmopet_test_AE_bot');

@ -20,6 +20,14 @@
<div id="acc-error" class="form-input__error"><span class="error-message"></span></div> <div id="acc-error" class="form-input__error"><span class="error-message"></span></div>
<div class="order-contacts__form"> <div class="order-contacts__form">
{{ fn('do_action', 'woocommerce_checkout_billing') }} {{ fn('do_action', 'woocommerce_checkout_billing') }}
{% if not fn('is_user_logged_in') %}
<div class="form-agreement__check">
<input id="reg" type="checkbox" name="reg" value="1" class="form-agreement__input">
<div class="form-agreement__square">
</div>
<label for="reg" class="form-agreement__label">{{ fn('pll_e', 'Запомнить меня') }}</label>
</div>
{% endif %}
</div> </div>
{% set chosen_methods = WC().session.get('chosen_shipping_methods') %} {% set chosen_methods = WC().session.get('chosen_shipping_methods') %}

Loading…
Cancel
Save