|
|
@ -124,8 +124,7 @@ if($site_env->site_mode == 'production' and $site_env->site_region == 'ae') { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<?php |
|
|
|
<? } |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 2. Событие Purchase (Покупка) |
|
|
|
// 2. Событие Purchase (Покупка) |
|
|
|
if (is_wc_endpoint_url('order-received')) { |
|
|
|
if (is_wc_endpoint_url('order-received')) { |
|
|
@ -191,8 +190,7 @@ if($site_env->site_mode == 'production' and $site_env->site_region == 'ae') { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</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() { |
|
|
|
add_action('template_redirect', function() { |
|
|
|
if (is_product()) { |
|
|
|
if (is_product()) { |
|
|
|