What is the maximum WooCommerce can handle?
Sky is the limit. We’ve seen instances of shops with 100,000+ products listed, handling thousands of transactions per minute. In those cases, they had great hosting support and their own developer team focused on optimization.
@import 'foundation';
// @include foundation-grid;
@include foundation-flex-classes;
@include foundation-flex-grid;
<section class="smt-page-header" style="background-image: url(<?$APPLICATION->ShowProperty('SECTION_BACKGROUND');?>);">
тут блок с заголовком
</section>
$component = $this->getComponent();
$component->SetResultCacheKeys(array('PICTURE'));
$APPLICATION->SetPageProperty('SECTION_BACKGROUND', $arResult['PICTURE']['SRC']);
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
JSON.parse('');
JSON.parse(data)
каждый раз, но т.к. данный скрипт падает ошибкой, срабатывает error callback<option value="217" data-price="2000" data-compare-price="2400">ОФД на 12 месяцев 2000р.</option>
<option value="218" data-price="2400" data-compare-price="3000">ОФД на 15 месяцев 2400р.</option>
<option value="219" data-price="4500" data-compare-price="6500">ОФД на 36 месяцев 4500р.</option>
function bla_bla_bla_post_class($classes, $product)
{
$classes[] = 'col-12';
$classes[] = 'col-md-3';
$classes[] = 'col-sm-6';
return $classes;
}
add_filter('woocommerce_post_class', 'bla_bla_bla_post_class', 10, 2);
<form class="card__content variants" action="/cart">
<h1 class="card__title">TEST</h1>
<select class="select_product" name="variant1">
<option value="198" data-price="8 000 руб" data-compare-price="0 руб">Фискальный накопитель на 15 мес</option>
<option value="216" data-price="12 000 руб" data-compare-price="0 руб">Фискальный накопитель на 36 мес</option>
</select>
<select class="select_product" name="variant2">
<option style="display: none;">Регистрация в ИФНС</option>
<option value="214" data-price="1 000 руб" data-compare-price="0 руб">В офисе</option>
<option value="215" data-price="2 000 руб" data-compare-price="0 руб">У клиента</option>
</select>
<select class="select_product" name="variant3">
<option style="display: none;">Договор с ОФД</option>
<option value="217" data-price="2 000 руб" data-compare-price="0 руб">на 12 месяцев</option>
<option value="218" data-price="2 400 руб" data-compare-price="0 руб">на 15 месяцев</option>
<option value="219" data-price="4 500 руб" data-compare-price="0 руб">на 36 месяцев</option>
</select>
<select class="select_product" name="variant4">
<option style="display: none;">ЭЦП (без носителя)</option>
<option value="220" data-price="1 300 руб" data-compare-price="0 руб">Для кассы</option>
<option value="221" data-price="2 000 руб" data-compare-price="0 руб">для маркировки</option>
<option value="222" data-price="4 500 руб" data-compare-price="0 руб">для ЕГАИС</option>
</select>
<select class="select_product" name="variant5">
<option style="display: none;">Договор на тех. обслуживание (1 год)</option>
<option value="223" data-price="1 600 руб" data-compare-price="0 руб">Тариф "Эконом"</option>
<option value="224" data-price="2 800 руб" data-compare-price="0 руб">Тариф "Стандарт"</option>
<option value="225" data-price="4 700 руб" data-compare-price="0 руб">Тариф "Эксклюзив"</option>
</select>
<p class="card__price prc-new">8 000 руб</p>
</form>
let sum = 0;
function calculate () {
sum = 0;
$('select[name^=variant]').each(function(index) {
const price = $(this).find('option:selected').attr('data-price');
sum += price ? +price.replace(/[^\d]+/g, '') : 0;
});
$('form.variants').find('.prc-new').html(`${sum} руб`);
}
$('select[name^=variant]').on('change', function() {
calculate();
return false;
});
calculate();
function initSlick(){
$('.fast__list1').slick({
slidesToShow: 4,
slidesToScroll: 4,
dots: false,
prevArrow: '<button class="fast__arrow fast__arrow--prev">'+
'<svg viewBox="0 0 477.175 477.175" style="enable-background:new 0 0 477.175 477.175;">'+
'<g>'+
'<path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5 c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z" />'+
'</g>'+
'</svg>'+
'</button>',
nextArrow: '<button class="fast__arrow fast__arrow--next">'+
'<svg viewBox="0 0 477.175 477.175" style="enable-background:new 0 0 477.175 477.175;">'+
'<g>'+
'<path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5 c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z" />'+
'</g>'+
'</svg>'+
'</button>',
responsive: [{
breakpoint: 1080,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
}, {
breakpoint: 768,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
});
}
$.fancybox.open({
src : '#cart_popup',
opts : {
afterShow : function( instance, current ) {
initSlick();
}
}
});
$query = new WP_Query( [
'post_type' => 'fitnes_programs',
'posts_per_page' => (int)$count,
'tax_query' => [
[
'taxonomy' => 'fitnes_program',
'field' => 'id',
'terms' => [38]
]
]
] );
function shownews(){
ob_start();
?>
<div class="swiper-container">
<div class="swiper-wrapper">
<?php
$query = new WP_Query( array( 'cat' => 5, 'showposts' => 100 ) );
while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="service__slide" id="bx_651765591_37">
<?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); ?>
<a href="" class="card-service card-service--family" style="background-image:url(<?php echo $image_url[0]; ?>);">
<div class="card-service__title"><?php the_title(); ?></div>
<span class="card-service__link"><?php the_content(); ?></span>
</a>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
return ob_get_clean();
}
add_shortcode('shortshownews', 'shownews');