Fatal error: Uncaught Error: Class 'Memcache' not found in
Fatal error: Uncaught Error: Class 'Memcache' not found in
extension=/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/memcache.so
NOTICE: PHP message: PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20170718
PHP compiled with module API=20190902
These options need to match
in Unknown on line 0
<div class="woocommerce-shipping woocommerce-shipping-totals shipping">
<?php if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) : ?>
<h3 class="checkout-header__h3 checkout__shipping-type">Выберите вид доставки</h3>
<div id="shipping-type" class="shipping-type__wrapper">
<div class="shipping-methods__fields">
<?php do_action('woocommerce_review_order_before_shipping'); ?>
<?php wc_cart_totals_shipping_html(); ?>
<?php do_action('woocommerce_review_order_after_shipping'); ?>
</div>
</div>
<?php endif; ?>
</div>
//Обновляем доставку через Ajax
add_filter('woocommerce_update_order_review_fragments', 'update_form_shipping_methods', 99);
function update_form_shipping_methods($fragments)
{
ob_start();
do_action('woocommerce_review_order_before_shipping');
wc_cart_totals_shipping_html();
do_action('woocommerce_review_order_after_shipping');
$art_add_update_form_shipping_methods = ob_get_clean();
$fragments['.shipping-methods__fields'] = $art_add_update_form_shipping_methods;
return $fragments;
}
//Обновляем доставку
$(document.body).on('updated_checkout updated_shipping_method', function(event, xhr, data) {
$('.woocommerce-shipping-totals').addClass('processing').block({
message: null,
overlayCSS: {
background: '#fff',
opacity: 0.6
}
});
$('.shipping-type__wrapper').html(xhr.fragments['.shipping-methods__fields']);
$('.woocommerce-shipping-totals').removeClass('processing').unblock();
});
только вопрос бы о том, возможно ли получить в одном запросе и min-max и все id