const data = {
action: 'load_products',
paged: Product.paged,
slug: myajax.slug,
orderby: Product.orderby,
path: window.location.pathname
};
if(isset($post['path'])) {
$old_path = $_SERVER['REQUEST_URI'];
$_SERVER['REQUEST_URI'] = esc_html($post['path']);
}
pagination(array(
'pages' => $custom_query->max_num_pages,
'paged' => $paged,
'range' => 2,
'additional_class' => 'product-ajax__pagination'
));
if(isset($post['path'])) {
$_SERVER['REQUEST_URI'] = $old_path;
}
foreach(WC_Shipping_Zones::get_zones()[1]['shipping_methods'] as $method) {
if($method->id === 'flat_rate') {
echo '<li>' . $method->instance_settings['title'] . ': ' . wc_price($method->instance_settings['cost']) . '</li>';
}
}
$WC_Shipping_Zone_Data_Store = new WC_Shipping_Zone_Data_Store();
foreach($WC_Shipping_Zone_Data_Store->get_methods(1, true) as $method) {
if($method->method_id === 'flat_rate') {
$m = WC_Shipping_Zones::get_shipping_method($method->instance_id);
echo '<li>' . $m->instance_settings['title'] . ': ' . wc_price($m->instance_settings['cost']) . '</li>';
}
}
(SELECT moment FROM " . DB_PREFIX . "product_special ps WHERE ps.product_id = p.product_id AND ps.customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS moment, (SELECT date_end FROM " . DB_PREFIX . "product_special ps WHERE ps.product_id = p.product_id AND ps.customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS date_end
wp_get_nav_menu_items( 3, array( 'update_post_term_cache' => false ) )
$paged = 1;
$req_uri = array_reverse(explode('/', $_SERVER['REQUEST_URI']));
foreach ($req_uri as $value) {
if(is_numeric($value)) {
$paged = $value;
break;
}
}
$args = array (
'post_type' => 'post',
'post_status' => array( 'publish' ),
'posts_per_page' => '8',
'paged' => $paged
);