-Карусели и сопутствующие товары в браузере Safari на Mac OS [22.03.2019]
Скрытый текст
В файле main.css (в самом конце)
замените на
-Выпадающий каталог в браузере Safari на Mac OS [22.03.2019]В файле main.css (в самом конце)
/******************************************************************************
Фиксы для браузеров
*******************************************************************************/
.Safari .wrapper:not(.index) .products-grid .item, .Safari .wrapper:not(.index) .categories .item {display: inline-block;float: left;}
.Safari .products-grid.owl-carousel .item .item-inner {min-width: {SETTINGS_GOODS_IMAGES_SIZE_SMALL | divide("2")}px;;}
замените на
/****************************************************************************** Фиксы для браузеров *******************************************************************************/
Скрытый текст
- Длинный адрес в подвале [22.03.2019]В файле main.css
в блоке
на
в блоке
/* Каталог в шапке */чуть ниже замените блок кода (строго в блоке @media (min-width: 992px) {)
@media (min-width: 992px) {
.header-subcatalogCol .header-subcatalogList,.header-subcatalogItem + .header-subcatalogItem {margin-top: 10px}
.header-catalogMenu .header-subcatalog {display: block!important;position: absolute;top: 0;left: 100%;min-height:100%;padding: 30px;background-color: #fff;border-left: 1px solid #edf1f4;opacity: 0;visibility: hidden}
.header-subcatalog._visible {opacity: 1;visibility: visible;}
.header-catalogItem:hover {background-color: #f6f8fa}
.header-subcatalogBanner {float: right;width: 300px}
.header-subcatalogGrid {margin-right: 300px}
.header-subcatalogCol {margin-bottom: 20px;padding-right: 20px}
.header-catalogMenu {z-index: -1;width: 100%;-webkit-transform: translateY(-1rem);transform: translateY(-1rem);-webkit-transition: all .15s ease-in-out;transition: all .15s ease-in-out}
.header-catalogMenu,.header-loginFlyout {position: absolute;opacity: 0;visibility: hidden}
.header-catalogMenu._visible {opacity: 1;visibility: visible;-webkit-transform: translateY(0);transform: translateY(0);}
.header-catalogItem .header-secondArrow {display: none}
.header-catalogItem:hover .header-catalogArrow {color: #4c1e8b;-webkit-transform: translateX(.3rem) rotate(-90deg);transform: translateX(.3rem) rotate(-90deg)}
.header-subcatalog {width: calc(300% - 7px);}
.header-subcatalogCol {width: 33.33%;float: left;list-style: none}
.header-catalogLink {line-height: 1.3;padding: 11px 20px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: justify;-ms-flex-pack: justify;justify-content: space-between}
}
на
@media (min-width: 992px) {
.header-subcatalogCol .header-subcatalogList,.header-subcatalogItem + .header-subcatalogItem {margin-top: 10px}
.header-catalogMenu .header-subcatalog {display: block!important;position: absolute;top: 0;left: 100%;min-height:100%;padding: 30px;background-color: #fff;border-left: 1px solid #edf1f4;opacity: 0;visibility: hidden}
.header-subcatalog._visible {opacity: 1;visibility: visible;z-index: 1;}
.header-catalogItem:hover {background-color: #f6f8fa}
.header-subcatalogBanner {float: right;width: 300px}
.header-subcatalogGrid {margin-right: 300px}
.header-subcatalogCol {margin-bottom: 20px;padding-right: 20px}
.header-catalogMenu {z-index: -1;width: 100%;-webkit-transform: translateY(-1rem);transform: translateY(-1rem);-webkit-transition: all .15s ease-in-out;transition: all .15s ease-in-out}
.header-catalogMenu,.header-loginFlyout {position: absolute;opacity: 0;visibility: hidden}
.header-catalogMenu._visible {opacity: 1;visibility: visible;-webkit-transform: translateY(0);transform: translateY(0);z-index: 1;}
.header-catalogItem .header-secondArrow {display: none}
.header-catalogItem:hover .header-catalogArrow {color: #4c1e8b;-webkit-transform: translateX(.3rem) rotate(-90deg);transform: translateX(.3rem) rotate(-90deg)}
.header-subcatalog {width: calc(300% - 7px);}
.header-subcatalogCol {width: 33.33%;float: left;list-style: none}
.header-catalogLink {line-height: 1.3;padding: 11px 20px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: justify;-ms-flex-pack: justify;justify-content: space-between}
}
Скрытый текст
- Скидка по сумме заказа на странице корзинаВ файле main.css после
/* Контакты */добавьте
#footer .block-contact > div[itemprop=address] > span {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: start;-ms-flex-align: start;align-items: flex-start}
#footer .block-contact > div[itemprop=address] .fal {-ms-flex-negative: 0;flex-shrink: 0}
Скрытый текст
-Скрыть категории 3го уровня в выпадающем каталоге [22.03.2019]В разделе Сайт - Редактор шаблонов - шаблон Корзина
замените на
<!-- Скидки, действующие на заказ -->
{% FOR cart_discount %}
{% IF cart_discount.DISCOUNT_IS_ENABLED %}
<tr class="discounttr">
<td class="hide" colspan="2"></td>
<td class="disc-name" colspan="2">
<span class="title">{cart_discount.DISCOUNT_NAME}</span>
</td>
<td colspan="2" class="text-right">
<span class="price">{cart_discount.DISCOUNT_VALUE}%</span>
</td>
</tr>
{% ENDIF %}
{% ENDFOR %}
замените на
<!-- Скидки, действующие на заказ -->
{% FOR cart_discount %}
{% IF cart_discount.DISCOUNT_IS_ENABLED %}
<tr class="discounttr">
<td class="hide" colspan="2"></td>
<td class="disc-name" colspan="2">
<span class="title">{cart_discount.DISCOUNT_NAME}</span>
</td>
<td colspan="2" class="text-right">
<span class="price">{% IF cart_discount.IS_PERCENT %}{cart_discount.DISCOUNT_VALUE}%{% ELSE %}{cart_discount.DISCOUNT_VALUE | money_format}{% ENDIF %}</span>
</td>
</tr>
{% ENDIF %}
{% ENDFOR %}
Скрытый текст
В файле main.css
в блоке
чуть ниже после
В файле main.css
в блоке
/* Каталог в шапке */
чуть ниже после
@media (min-width: 992px) {
добавьте строку
.header-catalogMenu .header-subcatalog-third {display:none;}
-Подсчёт скидки в хитах продаж для акционных товаров [28.03.2019]
http://prntscr.com/n1wbje
Скрытый текст
В шаблоне HTML найдите строку
В шаблоне HTML найдите строку
{% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %}
<span class="price old-price {CURRENCY_CHAR_CODE}" data-old-price="{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
{% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %}
<span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span>
{% ELSE %}
<span class="no-old-price"></span>
{% ENDIF %}
замените на
{% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %}
<span class="price old-price {CURRENCY_CHAR_CODE}" data-old-price="{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
{% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %}
<span class="price old-price {CURRENCY_CHAR_CODE}" data-old-price="{index_page_favorites_goods.MIN_PRICE_OLD}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span>
{% ELSE %}
<span class="no-old-price"></span>
{% ENDIF %}
- Подсчёт суммы заказа с учётом доставки [10.04.2019]
http://prntscr.com/n8kxel
Скрытый текст
В шаблоне Быстрый заказ замените
далее
далее
В шаблоне Быстрый заказ замените
<div class="subtotal">
<div class="discount" {% IF CART_SUM_DISCOUNT_PERCENT = 0 %}style="display:none"{% ENDIF %}>
<span class="label">Скидка:</span>
<span class="price">{CART_SUM_DISCOUNT_PERCENT}%</span>
</div>
<div class="total">
<span class="label">Итого:</span>
<span class="price total-sum">{CART_SUM_NOW_WITH_DISCOUNT | money_format}</span>
</div>
</div>
на
<div class="subtotal">
<div class="discount" {% IF CART_SUM_DISCOUNT_PERCENT = 0 %}style="display:none"{% ENDIF %}>
<span class="label">Скидка:</span>
<span class="price">{CART_SUM_DISCOUNT_PERCENT}%</span>
</div>
<div class="delivery-sum">
<span class="label">Стоимость доставки:</span>
<span class="price"><span class="num">0</span> {CURRENCY_NAME}</span>
</div>
<div class="total">
<span class="label">Итого:</span>
<span class="price total-sum" data-total-sum="{CART_SUM_NOW_WITH_DISCOUNT}">{CART_SUM_NOW_WITH_DISCOUNT | money_format}</span>
</div>
</div>
В шаблоне Оформление заказа замените<td class="total-sum" colspan="2">на
<td class="total-sum" colspan="2" data-total-sum="{% FOR cart_sum %}{cart_sum.NOW_WITH_DELIVERY_AND_DISCOUNT}{% ENDFOR %}">
В файле main.js замените
// Отправка купона при оформлении заказа
function coupons() {
var $submitBtn = $('.coupons .coupon-btn');
var $cuponInput = $('#quick_form_coupon_code');
var $resetBtn = $('.coupons .coupon_clear');
$submitBtn.click(function(){
var url = '/order/stage/confirm';
var val = $cuponInput.val();
var orderSum = $('.coupons input[name="orderSumDefaul"]').val()
// Получаем данные формы, которые будем отправлять на сервер
var formData = $('#myform').serializeArray();
formData.push({name: 'ajax_q', value: 1});
formData.push({name: 'only_body', value: 1});
formData.push({name: 'form[coupon_code]', value: val});
$.ajax({
type: "POST",
cache: false,
url: url,
data: formData,
success: function(data) {
var tr_discount = $(data).closest('#myform').find('tr.discount');
$('.subtotal .discount .label').html(tr_discount.find('td.name').text());
$('.subtotal .discount .price').html(tr_discount.find('td.percent').text());
var tr_total = $(data).closest('#myform').find('tr.total');
$('.subtotal .total .price').html(tr_total.find('td.total-sum').text());
var newOrderSum = tr_total.find('td.total-sum .num').text().replace(/\s+/g,'').replace(',', '.');
var discountRub = String(Math.floor(orderSum) - Math.floor(newOrderSum));
$('.coupons .couponBlockSale').toggleClass('active', discountRub > 0);
if(discountRub > 0) {
$('.subtotal .discount').show();
$('.coupons .couponNum').text(addSpaces(discountRub))
} else {
$('.coupons .couponNum').text('0')
$('.subtotal .discount').hide();
}
},
error: function(data){
console.log("Возникла ошибка: Невозможно отправить форму купона.");
}
});
});
$cuponInput.on('input',function(){
var $input = $(this);
if( $input.val() ) {
$input.next('.coupon_clear').addClass('active')
} else {
$input.next('.coupon_clear').removeClass('active')
}
})
$resetBtn.on('click', function(){
$('#quick_form_coupon_code').val('').trigger('input');
$('.coupons .coupon-btn').trigger('click');
})
}
на
// Отправка купона при оформлении заказа
function coupons() {
var $submitBtn = $('.coupons .coupon-btn');
var $cuponInput = $('#quick_form_coupon_code');
var $resetBtn = $('.coupons .coupon_clear');
$submitBtn.click(function(){
var url = '/order/stage/confirm';
var val = $cuponInput.val();
var orderSumDefaul = $('.coupons input[name="orderSumDefaul"]').val()
// Получаем данные формы, которые будем отправлять на сервер
var formData = $('#myform').serializeArray();
formData.push({name: 'ajax_q', value: 1});
formData.push({name: 'only_body', value: 1});
formData.push({name: 'form[coupon_code]', value: val});
$.ajax({
type: "POST",
cache: false,
url: url,
data: formData,
success: function(data) {
var $discountBlock = $(data).closest('#myform').find('tr.discount');
var discountName = $discountBlock.find('td.name').text();
var discountPercent = $discountBlock.find('td.percent').text();
var $totalBlock = $(data).closest('#myform').find('tr.total');
// Записываем название и размер скидки по купону
$('.subtotal .discount .label').html(discountName);
$('.subtotal .discount .price').html(discountPercent);
// Получаем новую итоговую стоимость заказа
var newTotalSum = $totalBlock.find('td.total-sum').data('total-sum');
// Обновляем значение
$('.subtotal .total .total-sum').data('total-sum', newTotalSum);
// Получаем текущую стоимость выбранной доставки
var deliverySum = $('.formfast-cart .subtotal .delivery-sum .num').text();
// Считаем итоговую сумму заказа вместе с доставкой
var totalPriceWithDelivery = String(parseInt(deliverySum) + Math.floor(newTotalSum));
$('.formfast-cart .total-sum .num').text(addSpaces(totalPriceWithDelivery));
// Считаем размер скидки
var discountRub = String(Math.floor(orderSumDefaul) - Math.floor(newTotalSum));
$('.coupons .couponBlockSale').toggleClass('active', discountRub > 0);
if(discountRub > 0) {
$('.subtotal .discount').show();
$('.coupons .couponNum').text(addSpaces(discountRub))
} else {
$('.coupons .couponNum').text('0')
$('.subtotal .discount').hide();
}
},
error: function(data){
console.log("Возникла ошибка: Невозможно отправить форму купона.");
}
});
});
$cuponInput.on('input',function(){
var $input = $(this);
if( $input.val() ) {
$input.next('.coupon_clear').addClass('active')
} else {
$input.next('.coupon_clear').removeClass('active')
}
})
$resetBtn.on('click', function(){
$('#quick_form_coupon_code').val('').trigger('input');
$('.coupons .coupon-btn').trigger('click');
})
}
далее
$('.mainSelect').change(function(){
selectedDelId = $(this).find('option:selected').attr('delid');
$('.zoneSelect select').hide();
$('.zoneSelect select[del="'+selectedDelId+'"]').show();
$('.zoneSelect select option').attr('selected',false)
$('.zoneSelect select[del="'+selectedDelId+'"] option:first-of-type').attr('selected',true);
$('.deliveryOption .deliveryRadio[value="'+selectedDelId+'"]').click();
WithoutZone = $('tbody[rel='+ selectedDelId +'] input.deliveryRadio:checked').attr('pricewithoutzones');
WithZone = $('tbody[rel='+ selectedDelId +'] input.deliveryZoneRadio:checked').attr('price');
if(WithZone > 0){
startprice = WithZone;
}else{
startprice = WithoutZone;
}
$('.changeprice').text(startprice);
$('.quick_order_payment').hide();
$('.quick_order_payment[rel="'+ selectedDelId +'"]').show();
startInputId = $('input.deliveryRadio:checked').attr('value');
$('.hiddenpayment input').attr('checked',false);
$('.hiddenpayment[rel="'+startInputId+'"] input').each(function(){
$(this).click();
return false;
})
DeliveryDescription = $('input.deliveryRadio:checked').next('div').html();
$('.currentDeliveryDescription').html(DeliveryDescription);
PaymentDescription = $('input.paymentRadio:checked').next('div').html();
$('.currentPaymentDescription').html(PaymentDescription);
if ($('input.paymentRadio:checked').next('div').html().trim() === '') {
$('.currentPaymentDesc').css("display", "none");
}else{
$('.currentPaymentDesc').css("display", "block");
}
});
на
$('.mainSelect').change(function(){
selectedDelId = $(this).find('option:selected').attr('delid');
$('.zoneSelect select').hide();
$('.zoneSelect select[del="'+selectedDelId+'"]').show();
$('.zoneSelect select option').attr('selected',false)
$('.zoneSelect select[del="'+selectedDelId+'"] option:first-of-type').attr('selected',true);
$('.deliveryOption .deliveryRadio[value="'+selectedDelId+'"]').click();
WithoutZone = $('tbody[rel='+ selectedDelId +'] input.deliveryRadio:checked').attr('pricewithoutzones');
WithZone = $('tbody[rel='+ selectedDelId +'] input.deliveryZoneRadio:checked').attr('price');
if(WithZone >= 0){
startprice = WithZone;
}else{
startprice = WithoutZone;
}
currentPriceWithoutChange = parseInt($('.formfast-cart .total-sum').data('total-sum'));
NewPriceWithChange = String(parseInt(startprice) + currentPriceWithoutChange);
$('.formfast-cart .subtotal .delivery-sum .num').text(startprice);
$('.formfast-cart .total-sum .num').text(addSpaces(NewPriceWithChange));
$('.changeprice').text(startprice);
$('.quick_order_payment').hide();
$('.quick_order_payment[rel="'+ selectedDelId +'"]').show();
startInputId = $('input.deliveryRadio:checked').attr('value');
$('.hiddenpayment input').attr('checked',false);
$('.hiddenpayment[rel="'+startInputId+'"] input').each(function(){
$(this).click();
return false;
})
DeliveryDescription = $('input.deliveryRadio:checked').next('div').html();
$('.currentDeliveryDescription').html(DeliveryDescription);
PaymentDescription = $('input.paymentRadio:checked').next('div').html();
$('.currentPaymentDescription').html(PaymentDescription);
if ($('input.paymentRadio:checked').next('div').html().trim() === '') {
$('.currentPaymentDesc').css("display", "none");
}else{
$('.currentPaymentDesc').css("display", "block");
}
});
далее
$(function(){
WithoutZone = $('input.deliveryRadio:checked').attr('pricewithoutzones');
WithZone = $('.deliveryZoneRadio:checked').attr('price');
var startprice = 0;
if(WithZone > 0){
startprice = WithZone;
}else
if(WithZone == 0 && WithoutZone == 0){
startprice = 0;
}else{
startprice = WithoutZone;
}
$('.orderStageDeliveryZonePrice .changeprice').text(startprice);
$('.hiddenpayment input').attr('checked',false);
startInputId = $('input.deliveryRadio:checked').attr('value');
$('.hiddenpayment[rel="'+startInputId+'"] input').each(function(){
$(this).click();
return false;
});
DeliveryDescription = $('input.deliveryRadio:checked').next('div').html();
$('.currentDeliveryDescription').html(DeliveryDescription);
PaymentDescription = $('input.paymentRadio:checked').next('div').html();
$('.currentPaymentDescription').html(PaymentDescription);
if ($('input.paymentRadio:checked').next('div').html().trim() === '') {
$('.currentPaymentDesc').css("display", "none");
}else{
$('.currentPaymentDesc').css("display", "block");
}
});
на
$(function(){
WithoutZone = $('input.deliveryRadio:checked').attr('pricewithoutzones');
WithZone = $('.deliveryZoneRadio:checked').attr('price');
var startprice = 0;
if(WithZone > 0){
startprice = WithZone;
}else
if(WithZone == 0 && WithoutZone == 0){
startprice = 0;
}else{
startprice = WithoutZone;
}
currentPriceWithoutChange = parseInt($('.formfast-cart .total-sum').data('total-sum'));
NewPriceWithChange = String(parseInt(startprice) + currentPriceWithoutChange);
$('.formfast-cart .subtotal .delivery-sum .num').text(startprice);
$('.formfast-cart .total-sum .num').text(addSpaces(NewPriceWithChange));
$('.orderStageDeliveryZonePrice .changeprice').text(startprice);
$('.hiddenpayment input').attr('checked',false);
startInputId = $('input.deliveryRadio:checked').attr('value');
$('.hiddenpayment[rel="'+startInputId+'"] input').each(function(){
$(this).click();
return false;
});
DeliveryDescription = $('input.deliveryRadio:checked').next('div').html();
$('.currentDeliveryDescription').html(DeliveryDescription);
PaymentDescription = $('input.paymentRadio:checked').next('div').html();
$('.currentPaymentDescription').html(PaymentDescription);
if ($('input.paymentRadio:checked').next('div').html().trim() === '') {
$('.currentPaymentDesc').css("display", "none");
}else{
$('.currentPaymentDesc').css("display", "block");
}
});
далее
$(function(){
$('.zoneSelect select').change(function(){
optValue = $(this).find('option:selected').attr('value');
$('.zones input[value="'+optValue+'"]').click();
WithZone = $('.deliveryZoneRadio:checked').attr('price');
$('.changeprice').text(WithZone);
})
})
на
$(function(){
$('.zoneSelect select').change(function(){
optValue = $(this).find('option:selected').attr('value');
$('.zones input[value="'+optValue+'"]').click();
WithZone = $('.deliveryZoneRadio:checked').attr('price');
$('.changeprice').text(WithZone);
currentPriceWithoutChange = parseInt($('.formfast-cart .total-sum').data('total-sum'));
NewPriceWithChange = String(parseInt(WithZone) + currentPriceWithoutChange);
$('.formfast-cart .subtotal .delivery-sum .num').text(WithZone);
$('.formfast-cart .total-sum .num').text(addSpaces(NewPriceWithChange));
})
})
-Отображение кнопки "показать все" в фильтре по характеристикам [10.04.2019]
http://prntscr.com/n8lfhy
Скрытый текст
В шаблоне HTML замените
В шаблоне HTML замените
<!-- Фильтры по характеристикам товаров (Например: Производитель, разрешение экрана, заряд аккомулятора) -->
{% FOR filter_attr_list %}
<div class="filter">
<div class="title {% IF filter_attr_list.index > 3 %}active{% ENDIF %}">{filter_attr_list.NAME}:<span class="filter-arrow fal fa-angle-up"></span></div>
<ul class="filter-inner {% FOR values %}{% IF filter_attr_list.values.index > 10 %}crop{break}{% ENDIF %}{% ENDFOR %}" {% IF filter_attr_list.index > 3 %}style="display:none"{% ENDIF %}>
{% FOR values %}
<li class="filter-item">
<input class="checkbox-hidden" type="checkbox" name="form[filter][attr][{filter_attr_list.ID}][{filter_attr_list.values.ID}]" value="1" id="filterAttrVal{filter_attr_list.values.ID}" {% IF filter_attr_list.values.CHECKED %}checked="checked"{% ELSEIF filter_attr_list.values.NB_GOODS_FILTERED=0 %}disabled="disabled"{% ENDIF %} />
<label class="checkbox-name" for="filterAttrVal{filter_attr_list.values.ID}">{filter_attr_list.values.VALUE} <span class="counter">{filter_attr_list.values.NB_GOODS_FILTERED}</span></label>
</li>
{% ENDFOR %}
</ul>
</div>
{% ENDFOR %}
<!-- Фильтры по свойствам товарных модификаций (Например: Цвет, размер, модификация) -->
на
<!-- Фильтры по характеристикам товаров (Например: Производитель, разрешение экрана, заряд аккомулятора) -->
{% FOR filter_attr_list %}
<div class="filter">
<div class="title {% IF filter_attr_list.index > 3 %}active{% ENDIF %}">{filter_attr_list.NAME}:<span class="filter-arrow fal fa-angle-up"></span></div>
<ul class="filter-inner {% FOR values %}{% IF filter_attr_list.values.index > 10 %}crop{break}{% ENDIF %}{% ENDFOR %}" {% IF filter_attr_list.index > 3 %}style="display:none"{% ENDIF %}>
{% FOR values %}
<li class="filter-item">
<input class="checkbox-hidden" type="checkbox" name="form[filter][attr][{filter_attr_list.ID}][{filter_attr_list.values.ID}]" value="1" id="filterAttrVal{filter_attr_list.values.ID}" {% IF filter_attr_list.values.CHECKED %}checked="checked"{% ELSEIF filter_attr_list.values.NB_GOODS_FILTERED=0 %}disabled="disabled"{% ENDIF %} />
<label class="checkbox-name" for="filterAttrVal{filter_attr_list.values.ID}">{filter_attr_list.values.VALUE} <span class="counter">{filter_attr_list.values.NB_GOODS_FILTERED}</span></label>
</li>
{% ENDFOR %}
</ul>
{% FOR values %}
{% IF filter_attr_list.values.index > 10 %}
<button class="filter-more" type="button"><span class="filter-moreText pseudo-link">Показать все</span> <span class="filter-moreArrow fal fa-angle-down"></span></button>
{break}
{% ENDIF %}
{% ENDFOR %}
</div>
{% ENDFOR %}
<!-- Фильтры по свойствам товарных модификаций (Например: Цвет, размер, модификация) -->
-Убрать стрелки с количества в браузере Firefox [29.04.2019]
http://prntscr.com/neu4e4
Скрытый текст
В файле main.css замените
-Добавить заголовок H1 на главной странице [29.04.2019]В файле main.css замените
input[type="text"], input[type="number"] {-webkit-appearance: none;-moz-appearance: none;appearance: none;}
на
input[type="text"], input[type="number"] {-webkit-appearance: none;-moz-appearance: none;appearance: none;-moz-appearance: textfield;}
Скрытый текст
В шаблоне Страница после
В шаблоне Товары заменить
далее
В шаблоне Страница после
{% IF FORM_NOTICE %}<div class="{% IF FORM_NOTICE_IS_GOOD %}success{% ELSE %}warning{% ENDIF %}">{FORM_NOTICE | nl2br}</div>{% ENDIF %}
добавить
{% IF index_page %}
<!-- Заголовок страницы -->
<div id="page-title">
<div class="block-title"><h1 class="title">{PAGE_TITLE}</h1></div>
</div>
<!-- /END Заголовок страницы -->
{% ENDIF %}
В шаблоне Товары заменить
{% IF NESTED_CATEGORIES_LIST_LEVEL > 0 %} <!-- Для отображения нового вида категорий с подкатегориями, в условии замените 0 на 1 -->
<div class="categories{% IF index_page %} index block-bg{% ENDIF %}">
{% FOR nested_categories_list %}
<div class="item">
<div class="cat-name" title="Перейти к категории «{nested_categories_list.NAME}»">
<a href="{nested_categories_list.URL}" title="Перейти к категории «{nested_categories_list.NAME}»">{nested_categories_list.NAME}</a>
</div>
<div class="cat-image">
<a href="{nested_categories_list.URL}" title="Перейти к категории «{nested_categories_list.NAME}»">
<img class="goods-cat-image-medium lozad" data-src="{% IF nested_categories_list.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-medium.png?design=techno{% ELSE %}{nested_categories_list.IMAGE_MEDIUM}{% ENDIF %}">
</a>
</div>
</div>
{% ENDFOR %}
</div>
{% ELSE %}
<!-- Блок навигации по категориям с подкатегориями -->
на
{% IF NESTED_CATEGORIES_LIST_LEVEL > 0 %} <!-- Для отображения нового вида категорий с подкатегориями, в условии замените 0 на 1 -->
<div class="{% IF index_page %}block-bg{% ENDIF %}">
{% IF index_page %}
<!-- Заголовок страницы -->
<div id="page-title" class="index-catalog">
<div class="block-title"><h1 class="title">{PAGE_TITLE}</h1></div>
</div>
<!-- /END Заголовок страницы -->
{% ENDIF %}
<div class="categories">
{% FOR nested_categories_list %}
<div class="item">
<div class="cat-name" title="Перейти к категории «{nested_categories_list.NAME}»">
<a href="{nested_categories_list.URL}" title="Перейти к категории «{nested_categories_list.NAME}»">{nested_categories_list.NAME}</a>
</div>
<div class="cat-image">
<a href="{nested_categories_list.URL}" title="Перейти к категории «{nested_categories_list.NAME}»">
<img class="goods-cat-image-medium lozad" data-src="{% IF nested_categories_list.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-medium.png?design=techno{% ELSE %}{nested_categories_list.IMAGE_MEDIUM}{% ENDIF %}">
</a>
</div>
</div>
{% ENDFOR %}
</div>
</div>
{% ELSE %}
<!-- Блок навигации по категориям с подкатегориями -->
в файле main.css
/*** Категории ***/
.index .categories {padding-top: 20px;}
замените на/*** Категории ***/
далее
/*** Заголовки ***/
#page-title {text-align: left;margin-bottom: 25px;}
замените на
/*** Заголовки ***/
#page-title {text-align: left;margin-bottom: 25px;}
#page-title.index-catalog {padding: 15px 15px 0;}
-Дублирование заказа из карточки товара [29.04.2019]
Скрытый текст
В шаблоне Быстрый заказ замените
В шаблоне Быстрый заказ замените
<!-- Загружаем скрипты для быстрого заказа -->
<script type="text/javascript">
$(function(){ quickOrderScripts()});
$(function(){ OrderScripts()});
$(function(){ address()});
$('.zoneSelect select').change(function(){
optValue = $(this).find('option:selected').attr('value');
$('.zones input[value="'+optValue+'"]').click();
WithZone = $('.deliveryZoneRadio:checked').attr('price');
$('.changeprice').text(WithZone);
});
$(document).ready(function () {
setTimeout(preloadHide, 500);
setTimeout(quickOrderScripts(), 800);
});
</script>
на
<!-- Загружаем скрипты для быстрого заказа -->
<script type="text/javascript">
$(function(){ quickOrderScripts()});
$(function(){ OrderScripts()});
$(function(){ address()});
$('.zoneSelect select').change(function(){
optValue = $(this).find('option:selected').attr('value');
$('.zones input[value="'+optValue+'"]').click();
WithZone = $('.deliveryZoneRadio:checked').attr('price');
$('.changeprice').text(WithZone);
});
$(function () {
setTimeout(preloadHide, 500);
});
</script>
-Ошибка при оформлении заказа когда поле Адрес не запрашивается [29.04.2019]
http://prntscr.com/nfmyms
Скрытый текст
А файле main.js
замените
А файле main.js
замените
// Разделение поле адрес на Улица, Дом, Квартира
function address(){
$('#quickform .button').click(function(){
if($('#quickDeliveryAddressStreet').val() !='' || $('#quickDeliveryAddressHome').val() !='' || $('#quickDeliveryAddressFlat').val() !=''){
if ( $('#quickDeliveryAddress').val().match( /(.*)(улица)+(.*)/i ) ) {
$('#quickDeliveryAddress').val(null);
}
$('#quickDeliveryAddress').val('Улица: ' + $('#quickDeliveryAddressStreet').val() + ', Дом/Корпус: ' + $('#quickDeliveryAddressHome').val() + ', Квартира: ' + $('#quickDeliveryAddressFlat').val());
$(this).submit();
return false;
}
});
}
на
// Разделение поле адрес на Улица, Дом, Квартира
function address(){
$('#quickform .button').click(function(){
var $quickDeliveryAddress = $('#quickDeliveryAddress'),
quickDeliveryAddressStreetValue = $('#quickDeliveryAddressStreet').val(),
quickDeliveryAddressHomeValue = $('#quickDeliveryAddressHome').val(),
quickDeliveryAddressFlatValue = $('#quickDeliveryAddressFlat').val();
if(!$quickDeliveryAddress.length){
return;
}
if(quickDeliveryAddressStreetValue !='' || quickDeliveryAddressHomeValue !='' || quickDeliveryAddressFlatValue !=''){
if ($quickDeliveryAddress.val().match( /(.*)(улица)+(.*)/i )) {
$quickDeliveryAddress.val(null);
}
$quickDeliveryAddress.val('Улица: ' + quickDeliveryAddressStreetValue + ', Дом/Корпус: ' + quickDeliveryAddressHomeValue + ', Квартира: ' + quickDeliveryAddressFlatValue);
$(this).submit();
return false;
}
});
}
-Отображение количества в корзине (кнопки + и - ) [18.06.2019]
Скрытый текст
В шаблоне корзина замените
Далее в main.js замените
добавьте
В шаблоне корзина замените
<td class="cart-qty">
<input name="form[quantity][{cart_items.GOODS_MOD_ID}]" value="{cart_items.ORDER_LINE_QUANTITY}" title="Количество, {cart_items.GOODS_MOD_MEASURE_NAME}" class="input cartqty" type="number" maxlength="5" min="1" onkeypress="return keyPress(this, event);" onpaste="return false;" />
</td>
на
<td class="cart-qty">
<div class="qty-wrap">
<div class="qty-set">
<a href="javascript:void(0)" class="qty-minus unselectable" title="Уменьшить"><i class="fal fa-minus"></i></a>
<input name="form[quantity][{cart_items.GOODS_MOD_ID}]" value="{cart_items.ORDER_LINE_QUANTITY}" title="Количество, {cart_items.GOODS_MOD_MEASURE_NAME}" class="input cartqty" type="number" maxlength="5" min="1" onkeypress="return keyPress(this, event);" onpaste="return false;" />
<a href="javascript:void(0)" class="qty-plus unselectable" title="Увеличить"><i class="fal fa-plus"></i></a>
</div>
</div>
</td>
Далее в main.js замените
// Функция + - для товаров
function quantity() {
//Regulator Up копки + в карточке товара при добавлении в корзину
$('.qty-plus').off('click').click(function(){
var
quantity = $(this).parent().find('.quantity'),
currentVal = parseInt(quantity.val());
if (!isNaN(currentVal)){
quantity.val(currentVal + 1);
quantity.trigger('keyup');
}
return false;
});
//Regulator Down копки - в карточке товара при добавлении в корзину
$('.qty-minus').off('click').click(function(){
var
quantity = $(this).parent().find('.quantity'),
currentVal = parseInt(quantity.val());
if (!isNaN(currentVal) && !(currentVal <= 1) ){
quantity.val(currentVal - 1);
quantity.trigger('keyup');
}
return false;
});
// Если вводят 0 то заменяем на 1
$('.qty-wrap .quantity').off('change').change(function(){
if($(this).val() < 1){
$(this).val(1);
}
});
}
на
// Функция + - для товаров
function quantity() {
//Regulator Up копки + в карточке товара при добавлении в корзину
$('.qty-plus').off('click').click(function(){
var
quantity = $(this).parent().find('.quantity, .cartqty'),
currentVal = parseInt(quantity.val());
if (!isNaN(currentVal)){
quantity.val(currentVal + 1);
quantity.trigger('change');
}
return false;
});
//Regulator Down копки - в карточке товара при добавлении в корзину
$('.qty-minus').off('click').click(function(){
var
quantity = $(this).parent().find('.quantity, .cartqty'),
currentVal = parseInt(quantity.val());
if (!isNaN(currentVal) && !(currentVal <= 1) ){
quantity.val(currentVal - 1);
quantity.trigger('change');
}
return false;
});
// Если вводят 0 то заменяем на 1
$('.qty-wrap .quantity').off('change').change(function(){
if($(this).val() < 1){
$(this).val(1);
}
});
}
В файле main.css перед/* Сравнение */
добавьте
.cart-qty .qty-wrap {display: inline-block;position: relative;width: 95px;margin: 0;vertical-align: middle;text-align: center}
.cart-qty input.cartqty {display: inline-block;vertical-align: middle;width: 35px;height: 36px;margin: 0;color: #21293c;border-radius: 0;font-size: 14px;text-align: center;padding: 3px;background: 0 0;border: 1px solid #dce4e9}
.cart-qty .qty-set {display: block;vertical-align: middle}
.cart-qty .qty-set > a {position: absolute;top: 0;width: 30px;height: 36px;line-height: 34px;border: 1px solid #dce4e9;font-size: 11px;color: #b1bfc8;border-radius: 0;margin: 0;opacity: 1;visibility: visible}
.cart-qty .qty-set > a:hover {color: #fff;background: #4c1e8b}
.cart-qty .qty-set .qty-plus {right: 1px}
.cart-qty .qty-set .qty-minus {left: 1px}
@media all and (max-width:991px) {.cart-qty .qty-set > a {border: none;height: 38px;line-height: 36px}
.cart-qty .qty-set .qty-plus {right: 0;border-left: 1px solid #dce4e9}
.cart-qty .qty-set .qty-minus {left: 0;border-right: 1px solid #dce4e9}}
@media all and (max-width:375px) {
.cart-qty .qty-wrap {width: 60px}
.cart-qty .qty-set > a {width: 20px}
.cartTable .items .price {-webkit-transform: translateX(10px);transform: translateX(10px)}
}
-Мерцание окна fancybox при добавлении в корзину после быстрого просмотра [18.06.2019]
Скрытый текст
В main. js
- Закрытие иконок на мобильной версии по свободному месту [18.06.2019]В main. js
// Добавление товара в корзину
function AddCart() {
$('.goodsDataForm, .goodsToCartFromCompareForm, .goodsListForm').submit(function() {
замените на
function AddCart() {
$('.goodsDataForm, .goodsToCartFromCompareForm, .goodsListForm').off('submit').submit(function() {
Скрытый текст
В main. js
В main. js
// Иконки в мобильной версии
function headerIcons() {
$('.header-icons').on('click', '.header-iconsItem', function(evt){
var $icon = $(this);
var id = $icon.attr('data-target');
var $icons = $icon.siblings();
$icons.each(function(index, icon){
var id = $(icon).attr('data-target');
$(icon).removeClass('active');
$(id).slideUp()
})
$icon.toggleClass('active')
$(id).slideToggle()
})
}
headerIcons();
на
// Иконки в мобильной версии
function headerIcons() {
$('.header-icons').on('click', '.header-iconsItem', function(evt){
var $icon = $(this);
var id = $icon.attr('data-target');
var $icons = $icon.siblings();
$icons.each(function(index, icon){
var id = $(icon).attr('data-target');
$(icon).removeClass('active');
$(id).slideUp()
})
$icon.toggleClass('active')
$(id).slideToggle()
})
$(document).on('click', function(e){
if(getClientWidth() <= 991){
if(!$(e.target).parents('.header-top,._header-mobile').length && !$(e.target).hasClass('_header-mobile')) {
$('._header-mobile').slideUp();
$('.header-iconsItem').removeClass('active');
}
}
})
}
headerIcons();
- Вывод информации из кастомных полей в оформлении заказа [02.07.2019] http://prntscr.com/o9xa3l
Скрытый текст
В шаблоне Просмотр заказа
после
В шаблоне Лк просмотр заказа после
В шаблоне Просмотр заказа
после
{% IF ORDER_DELIVERY_TRACKING_NUMBER %}
<tr>
<td class="cell1"><span>Номер отслеживания:</span></td>
<td class="cell2">{ORDER_DELIVERY_TRACKING_NUMBER | nl2br}</td>
</tr>
{% ENDIF %}
добавьте
{% FOR order_extra_fields %}
<tr>
<td class="cell1"><span>{order_extra_fields.NAME}:</span></td>
<td class="cell2">{order_extra_fields.VALUE | nl2br}</td>
</tr>
{% ENDFOR %}
В шаблоне Лк просмотр заказа после
<tr {% IFNOT CLIENT_ORDER_COMMENT %}class="hide"{% ENDIF %}>
<td class="cell1"><label>Комментарий:</label></td>
<td class="cell2">{CLIENT_ORDER_COMMENT}</td>
</tr>
добавьте
{% FOR order_extra_fields %}
<tr>
<td class="cell1"><label>{order_extra_fields.NAME}:</label></td>
<td class="cell2">{order_extra_fields.VALUE | nl2br}</td>
</tr>
{% ENDFOR %}
-Мета тег "schema.org" наличия товара [02.07.2019]
Скрытый текст
В шаблоне Товар
В шаблоне Товар
<!-- информация для поисковика о наличии товара -->
<meta itemprop="availability" content="{% IF GOODS_MOD_REST_VALUE>0 %}in_stock{% ELSE %}out_of_stock{% ENDIF %}">
замените на
<!-- информация для поисковика о наличии товара -->
<meta itemprop="availability" content="{% IF GOODS_MOD_REST_VALUE>0 %}http://schema.org/InStock{%ELSE %}http://schema.org/OutOfStock{% ENDIF %}">














