Maks | formating files and add TO_DO

pull/36/head
Антон 1 month ago
parent 3c41995cb6
commit e3f48095fb
  1. 7
      wp-content/themes/cosmopet/global-functions/multisite-functions.php
  2. 1
      wp-content/themes/cosmopet/modules/footer/assets/js/footer.js

@ -124,8 +124,7 @@ if($site_env->site_mode == 'production' and $site_env->site_region == 'ae') {
});
});
</script>
<?php
}
<? }
// 2. Событие Purchase (Покупка)
if (is_wc_endpoint_url('order-received')) {
@ -191,8 +190,7 @@ if($site_env->site_mode == 'production' and $site_env->site_region == 'ae') {
});
});
</script>
<?php
}
<? }
}
/* Передача контрибуции со страницы "Спасибо" */
@ -255,6 +253,7 @@ if($site_env->site_mode == 'production' and $site_env->site_region == 'ae') {
}
}
// TO_DO: удалить, если не нужно
// Отключаем кэширование для страниц товаров
add_action('template_redirect', function() {
if (is_product()) {

@ -7,6 +7,7 @@
// Флаг для предотвращения множественной обработки
let isProcessing = false;
// TO_DO : вынести логику в модуль авторизации/регистрации
// Login
$('.login_popup').on('click', function (e) {
e.preventDefault();

Loading…
Cancel
Save