Перейти к содержимому


Публикации Foxis_10

12 публикаций создано Foxis_10 (учитываются публикации только с 20-Апрель 23)


#290835 Не Отображаются Новые Пункты Меню В Шапке

Отправлено от Foxis_10 в 12 Апрель 2022 - 17:38 в Главная

Если не отображаются в конце новые пункты меню написанные вручную после цикла, то в шаблоне HTML  найдите код

 <!-- Каталог -->
		  <div id="custommenu">
			<ul class="mainnav" itemscope itemtype="https://schema.org/SiteNavigationElement">
			  {% IFNOT catalog_full_empty %}
				{% FOR catalog_full %}
				  {% IF catalog_full.FIRST %}{% IFNOT catalog_full.LEVEL = 0 %}<ul class="sub {% IF catalog_full.LEVEL > 2 %}hide{% ENDIF %}">{% ENDIF %}{% ENDIF %}
					<li {% IF catalog_full.HIDE %}style="display:none;"{% ENDIF %} class="level{catalog_full.LEVEL} {% IF catalog_full.ISSET_VISIBLE_SUB %}parent{% ENDIF %} {% IF catalog_full.CURRENT || catalog_full.CURRENT_PARENT%}active{% ENDIF %}" data-id="{catalog_full.ID}">
					  <a href="{catalog_full.URL}" class="title-lv{catalog_full.LEVEL} {% IF catalog_full.CURRENT %}active{% ENDIF %}" title="{catalog_full.NAME}" itemprop="url">{% IF catalog_full.ISSET_VISIBLE_SUB %}<span class="open-menu {% IF catalog_full.CURRENT_PARENT || catalog_full.CURRENT %}active{% ENDIF %}"></span>{% ENDIF %}<span>{catalog_full.NAME}</span></a>
					{% IF catalog_full.ISSET_SUB=0 %}</li>{% ENDIF %}
				  {% IF catalog_full.LAST %}{%FOR out%}</ul> {%IFNOT catalog_full.out.LAST%}</li>{%ENDIF%}{%ENDFOR%}{% ENDIF %}
				{% ENDFOR %}
			  {% ENDIF %}


в данном коде строку
{% IF catalog_full.LAST %}{%FOR out%}</ul> {%IFNOT catalog_full.out.LAST%}</li>{%ENDIF%}{%ENDFOR%}{% ENDIF %}

замените на

{% IF catalog_full.LAST && catalog_full.LEVEL != 0 %}{%FOR out%}</ul> {%IFNOT catalog_full.out.LAST%}</li>{%ENDIF%}{%ENDFOR%}{% ENDIF %}



#290543 Убрать С Сайта Заказать Звонок

Отправлено от Foxis_10 в 09 Февраль 2022 - 10:27 в Другое

Здравствуйте. В шаблоне HTML найдите

<form method="post" action="{FEEDBACK_URL}" class="callbackForm" enctype="multipart/form-data">
								<input type="hidden" name="hash" value="{HASH}" />
								<input class="callbackredirect" type="hidden" name="return_to" value="{FEEDBACK_URL}"/>
								<!-- Набор полей которые не видит пользователь, но видят боты. Когда они их заполняют мы точно знаем, что их прислал нам бот и мы не сохраняем подобный отзыв о товаре, а боту отправившему отзыв сообщаем, что отзыв добавлен успешно, но будет отображён здесь после прохождения модерации -->
								{ANTISPAM_CODE}
								<div class="callback-input">
								  <input id="callback_person" class="input callback_person required"  type="text" name="form[{ANTISPAM_FORM_FIELD_NAME_FEEDBACK_NAME}]"  value="{FORM_FEEDBACK_NAME}" placeholder="Представьтесь, пожалуйста" maxlength="50" title="Представьтесь, пожалуйста" autocomplete="off">
								</div>
								<div class="callback-input">
								  <input id="callback_email_" class="input callback_email required" type="text" name="form[{ANTISPAM_FORM_FIELD_NAME_FEEDBACK_EMAIL}]"  value="{FORM_FEEDBACK_EMAIL}" placeholder="Введите email" maxlength="50" title="Введите email" autocomplete="off">
								</div>
								<input type="hidden"  name="form[{ANTISPAM_FORM_FIELD_NAME_FEEDBACK_MESSAGE}]" value="Обратный звонок"/>
								{% IFNOT FORM_SEND_OK %}<button type="submit" title="Отправить" class="button">Отправить</button>{% ENDIF %}								   
								<div class="pp">Нажимая на кнопку Отправить, <br/>Вы соглашаетесь с <a href="#">правилами обработки данных</a></div>
						  </form>

замените на

 <form method="post" action="{CALLBACK_URL}" class="callbackForm" enctype="multipart/form-data">
								<input type="hidden" name="hash" value="{HASH}" />
								<input type="hidden" name="form[{ANTISPAM_FORM_FIELD_NAME_CALLBACK_PHONE}]" value="Подписаться"  autocomplete="off">
								<input class="callbackredirect" type="hidden" name="return_to" value="{CALLBACK_URL}"/>
								<!-- Набор полей которые не видит пользователь, но видят боты. Когда они их заполняют мы точно знаем, что их прислал нам бот и мы не сохраняем подобный отзыв о товаре, а боту отправившему отзыв сообщаем, что отзыв добавлен успешно, но будет отображён здесь после прохождения модерации -->
								{ANTISPAM_CODE}
								<div class="callback-input" >
								  <input id="callback_person_subscribe" class="input callback_person required" required type="text" name="form[{ANTISPAM_FORM_FIELD_NAME_CALLBACK_PERSON}]" value="{FORM_CALLBACK_PERSON}" placeholder="Представьтесь, пожалуйста" maxlength="50" title="Представьтесь, пожалуйста" autocomplete="off">
								</div>
								<div class="callback-input">
								  <input id="callback_email_subscribe" class="input callback_email required" required type="text" name="form[callback_email]" value="" placeholder="Введите email" maxlength="50" title="Введите email" autocomplete="off">
								</div>
								{% IFNOT FORM_SEND_OK %}<button type="submit" title="Отправить" class="button">Отправить</button>{% ENDIF %}								   
								<div class="pp">Нажимая на кнопку Отправить, <br/>Вы соглашаетесь с <a href="#">правилами обработки данных</a></div>
						  </form>

а в шаблоне main.js

// Валидаторы для Имени и телефона
function validName(){
  var $input = $('#footer #callback_person');
  var name = $input.val();
 
  if(name != ''){
	$input.next('.name-error').remove();
	$input.removeClass('input--error');
   
	return true;
  }else{
	$input.next('.name-error').remove();
	$input.addClass('input--error');
	$input.after('<div class="name-error">Вы не указали ваше имя</div>');
   
	return false;
  }
}
function validPhone(){
  var $input = $('#footer #callback_phone_')
  var tel = $input.val();
  var check = /^((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{5,10}$/.test(tel);
 
  if(check == true && check != ''){
	$input.next('.phone-error').remove();
	$input.removeClass('input--error');
   
	return true;
  }
  else{
	$input.next('.phone-error').remove();
	$input.addClass('input--error');
	$input.after('<div class="phone-error">Вы ввели неверный номер телефона</div>');
   
	return false;
  }
}
//Проверка телефона в обратном звонке.
function validCallBack(){
  var name = validName();
  var phone = validPhone();
 
  return name && phone;
}

замените на

// Валидаторы для Имени Подписаться
function validName(){
  var $input = $('#footer #callback_person_subscribe');
  var name = $input.val();
 
  if(name != ''){
	$input.next('.name-error').remove();
	$input.removeClass('input--error');
   
	return true;
  }else{
	$input.next('.name-error').remove();
	$input.addClass('input--error');
	$input.after('<div class="name-error">Вы не указали ваше имя</div>');
   
	return false;
  }
}

//Проверка для Подписаться в подвале .
function validCallBack(){
  var name = validName();
  return name ;
}



#290082 Недопустимый Тип Объекта В Поле "author"

Отправлено от Foxis_10 в 01 Ноябрь 2021 - 10:58 в Другие вопросы

Для Прайм, Делюкс, Фреш, Какаду
Скрытый текст

Для Профи, Драйв, Гламур, Цейлон, Маркетплейс, Шарм
Скрытый текст

Для Техно, Нептун, Неон, Цветочный, Ночь, Сканди (в 2 местах), Инфинити, Лотос, Город, Дружок, Мотор, Мастер, Лазурь, Ассорти, Новогодний, Спорт, Рассвет, Лето
Скрытый текст

Для Франт
Скрытый текст

Для Фазенда, Сервис, Будуар, Динамика, Индиго, Дольче, Бетховен, Фиеста, Фитнес, Сказка
Скрытый текст

Для Кондитер
Скрытый текст

Для Хобби
Скрытый текст

Для Цитрус
Скрытый текст



#289573 Сортировка. Добавляем Кнопки Вместо Списка

Отправлено от Foxis_10 в 23 Июль 2021 - 17:16 в Каталог товаров

Добавим 2 кнопки Сначала дороже и Сначала дешевле вместо выпадающего списка

В шаблоне Товары (в 2х местах) найдите

<div class="sort-by">
		 <label>Сортировать по:</label>
		 <select name="goods_search_field_id" class="selectBox" title="Название сортировки" onchange="this.form.submit();">
			 {% FOR goods_order_fields %}
			 <option value="{goods_order_fields.ID}" {% IF goods_order_fields.SELECTED %}selected="selected"{% ENDIF %}>{goods_order_fields.NAME}</option>
			 {% ENDFOR %}
		 </select>
		 </div>

замените на

<div class="sort-by">
<label>Сортировать по:</label>
<span class="cheaper">Сначала подешевле</span>
<span class="expensive">Сначала подороже</span>
<select name="goods_search_field_id" style="display:none" class="selectBox" title="Название сортировки" onchange="this.form.submit();">
{% FOR goods_order_fields %}
<option value="{goods_order_fields.ID}" {% IF goods_order_fields.SELECTED %}selected="selected"{% ENDIF %}>{goods_order_fields.NAME}</option>
{% ENDFOR %}
</select>
</div>

В шаблоне main.css в самый низ добавьте

.expensive, .cheaper{cursor: pointer;font-size: 14px;}

В шаблоне main.js

// Фильтры по товарам. При нажании на какую либо характеристику или свойство товара происходит фильтрация товаров
$('.contentTbodySearchFilterBlock input').click(function(){
$(this)[0].form.submit();
});

замените на

// Фильтры по товарам. При нажании на какую либо характеристику или свойство товара происходит фильтрация товаров
$('.contentTbodySearchFilterBlock input').click(function(){
$(this)[0].form.submit();
});

$(function(){
cheaper = $('.cheaper');
expensive = $('.expensive');
cheaper.on('click', function(){
$('select[name="goods_search_field_id"] option').removeAttr('selected');
$('select[name="goods_search_field_id"] option[value="2"]').attr('selected', 'selected');
$('select[name="goods_search_field_id"]').val(2);
	 $('select[name="goods_search_field_id"]').change();
});
expensive.on('click', function(){
$('select[name="goods_search_field_id"] option').removeAttr('selected');
$('select[name="goods_search_field_id"] option[value="1"]').attr('selected', 'selected');
$('select[name="goods_search_field_id"]').val(1);
$('select[name="goods_search_field_id"]').change();
});

})



#289326 Оформление Заказа. Скрытие Информации О Доставке И Появление По Нажатию

Отправлено от Foxis_10 в 18 Май 2021 - 10:29 в Оформление заказа

В шаблоне main.js найдите

if(DELIVERY_TYPE === 'radio'){

замените на

if(DELIVERY_TYPE === 'radio'){
// Скрытие
$('.quickform-delivery__item').find('.zones-list').hide(); //Зона
$('.quickform-delivery__item').find('.quickform-delivery__price').hide(); //Цена
$('.quickform-delivery__item').find('.quickform-delivery__descr').hide(); //Описание
// Показать первый элемент
$('.quickform-delivery__item').filter(':first').find('.zones-list').show();//Зона
$('.quickform-delivery__item').filter(':first').find('.quickform-delivery__price').show(); //Цена
$('.quickform-delivery__item').filter(':first').find('.quickform-delivery__descr').show(); //Описание

найдите

$('.delivery-radio').on('change',function(){
var deliveryId = $(this).val();
var deliveryName = $(this).data('name');

замените на

$('.delivery-radio').on('change',function(){
var deliveryId = $(this).val();
var deliveryName = $(this).data('name');
// Скрытие у всех описание, цена, зона и отображение у выбранной доставки
$('.quickform-delivery__item').find('.zones-list').hide();
$('.quickform-delivery__item').find('.quickform-delivery__price').hide();
$('.quickform-delivery__item').find('.quickform-delivery__descr').hide();
$('.quickform-delivery__item[data-rel='+deliveryId+']').find('.zones-list').show();
$('.quickform-delivery__item[data-rel='+deliveryId+']').find('.quickform-delivery__price').show();
$('.quickform-delivery__item[data-rel='+deliveryId+']').find('.quickform-delivery__descr').show();



#289282 Календарь. Отключение Определенных Дней

Отправлено от Foxis_10 в 05 Май 2021 - 11:13 в Оформление заказа

В шаблоне main.js найдите код

$("#deliveryConvenientDate").datepicker({
// Если true, то при активации даты, календарь закроется.
autoClose: true,
// Можно выбрать только даты, идущие за сегодняшним днем, включая сегодня
minDate: new Date()
});

замените на

$("#deliveryConvenientDate").datepicker({
// Если true, то при активации даты, календарь закроется.
autoClose: true,
// Можно выбрать только даты, идущие за сегодняшним днем, включая сегодня
minDate: new Date(),
onRenderCell: function (date, cellType) {
if (cellType == 'day')
{
var date = new Date(date);
var day = date.getDate();
if (day < 10) day = '0' + day; var month = date.getMonth() + 1;
// месяц 1-12
if (month < 10) month = '0' + month;
var year = date.getFullYear();
var disabledDaysArray = ['10.05.2021', '11.05.2021', '12.05.2021', '15.05.2021'];
// Массив недоступных дат
var dateString = day + '.' + month + '.' + year // Текущая дата ячейки
isDisabled = disabledDaysArray.indexOf(dateString) != -1; return { disabled: isDisabled }
}
}
});

Даты 10.05.2021, 11.05.2021, 12.05.2021, 15.05.2021 будут отключены

Чтобы даты отключались независимо от года, то заменить нужно на этот код

$("#deliveryConvenientDate").datepicker({ 
	// Если true, то при активации даты, календарь закроется. 
	autoClose: true, 
	// Можно выбрать только даты, идущие за сегодняшним днем, включая сегодня 
	minDate: new Date(), 
	onRenderCell: function (date, cellType) {
	  if (cellType == 'day') 
		{ 
		  var date = new Date(date); var day = date.getDate(); 
		  if (day < 10) day = '0' + day; var month = date.getMonth() + 1; 
		  // месяц 1-12 
		  if (month < 10) month = '0' + month;

		  var disabledDaysArray = ['10.05', '11.05', '12.05', '15.05'];
		  // Массив недоступных дат
		  var dateString = day + '.' + month  // Текущая дата ячейки
		  isDisabled = disabledDaysArray.indexOf(dateString) != -1; return { disabled: isDisabled } 
		} 
	} 
  });



#289280 Как Убрать,изменить Текст На Слайде Главной Страницы

Отправлено от Foxis_10 в 05 Май 2021 - 09:50 в Изменение общей стилистики

Здравствуйте. Ответили вам по почте



#289218 Интеграция С Пэк

Отправлено от Foxis_10 в 23 Апрель 2021 - 09:32 в Оформление заказа

Здравствуйте. Пришлите пожалуйста документацию по установке пункта выдачи ПЭК



#289215 Увеличение Главного Изображения При Наведении (Лупа)

Отправлено от Foxis_10 в 22 Апрель 2021 - 17:49 в Страница товара

В шаблоне Товар найдите

{% FOR goods_images %}
<li><a href="#" data-image="{goods_images.LARGE}" title="{goods_images.NAME}" data="{goods_images.ID}" class="thumblisticon"><img src="{goods_images.ICON}" alt="{goods_images.NAME}" class="goods-image-icon" itemprop="image" /></a></li>
{% ENDFOR %}

замените на

{% FOR goods_images %}
<li data-id="{goods_images.ID}"><a href="{goods_images.LARGE}" title="{goods_images.NAME}" data="{goods_images.ID}" class="cloud-zoom-gallery" rel="useZoom:'zoom1',smallImage:'{goods_images.LARGE}'"><img src="{goods_images.ICON}" alt="{goods_images.NAME}" class="goods-image-icon" itemprop="image" /></a></li>
{% ENDFOR %}

найдите

<div class="product-image">
<a class="general-img" data-id="{GOODS_IMAGE_ID}" href="{GOODS_IMAGE_LARGE}" id="zoom1" title="Увеличить {GOODS_NAME}" itemprop="image">
<img src="{GOODS_IMAGE_MEDIUM}" title="{GOODS_NAME}" alt="{GOODS_NAME}" class="goods-image-medium" />
{% IF GOODS_IS_NEW %}
<span class="ico-new">Новинка</span>
{% ELSEIF GOODS_IS_TOP %}
<span class="ico-best">Хит</span>
{% ENDIF %}
{% IF GOODS_MOD_MAX_DISCOUNT %}
<span class="ico-sale">Скидка</span>
{% ENDIF %}
</a>
<div class="goodsImageZoom" data="{GOODS_IMAGE_ID}" style="display: none;"><a href="#" title="Увеличить изображение"></a></div>
{% IFNOT goods_images_empty %}
<div class="goodsImageList" style="display: none;">
{% FOR goods_images %}
<div class="thumblist__item" data-id="{goods_images.ID}"><a href="{goods_images.LARGE}" data="{goods_images.ID}" title="{goods_images.NAME}" rel="gallery"><img src="{goods_images.ICON}" alt="{goods_images.NAME}" /></a></div>
{% ENDFOR %}
</div>
{% ENDIF %}
</div>

замените на

<div class="product-image" data-id="{GOODS_IMAGE_ID}">
<div class="general-img">
<a href="{GOODS_IMAGE_LARGE}" class="cloud-zoom" id="zoom1" rel="position:'inside',adjustX:0,adjustY:0" title="Увеличить {GOODS_NAME}" itemprop="image">
<img src="{GOODS_IMAGE_MEDIUM}" title="{GOODS_NAME}" alt="{GOODS_NAME}" class="goods-image-medium" />
</a>
{% IFNOT goods_images_empty %}
<div class="goodsImageZoom" data="{GOODS_IMAGE_ID}" style="display: none;"><a href="#" title="Увеличить изображение"></a></div>
<div class="goodsImageList" style="display: none;">
{% FOR goods_images %}
<div class="thumblist__item" data-id="{goods_images.ID}"><a href="{goods_images.LARGE}" data="{goods_images.ID}" title="{goods_images.NAME}" rel="gallery"><img src="{goods_images.ICON}" alt="{goods_images.NAME}" /></a></div>
{% ENDFOR %}
</div>
{% ENDIF %}
</div>
</div>


В шаблоне main.js найдите

// Увеличение изображения при нажатии изображение
$(function() {
$('a[rel="gallery"]').fancybox();
// Увеличение изображение при клике на него и открытие галереи изображений
$('.goodsImageZoom a, .thumblist a').click(function(){
if($(this).closest('.thumblist').length) {
$('.goodsImageZoom').attr('data', $(this).attr('data'));
return(true);
}
$('.goodsImageList a[data="' + $('.goodsImageZoom').attr("data") + '"]').trigger('click');
return(false);
});
// Увеличение при нажатии на кнопку
$("#zoom1").click(function(event){
event.preventDefault();
$(".goodsImageZoom a").click();
});
});

замените на

// Увеличение изображения в карточке товара при наведении если ширина экрана больше 992px
$(window).load(function(){
$(".cloud-zoom, .cloud-zoom-gallery").CloudZoom();
});
// Увеличение изображения при нажатии изображение
$(function() {
$('a[rel="gallery"]').fancybox();
// Увеличение изображение при клике на него и открытие галереи изображений
$('.goodsImageZoom a, .thumblist a').click(function(){
if($(this).closest('.thumblist').length) {
$('.goodsImageZoom').attr('data', $(this).attr('data'));
return(true);
}
$('.goodsImageList a[data="' + $('.goodsImageZoom').attr("data") + '"]').trigger('click');
return(false);
});
// Увеличение при нажатии на кнопку
$("#zoom1").click(function(event){
event.preventDefault();
$(".goodsImageZoom a").click();
});

// Фикс для увеличения изображения при нажатии на изображение
$("#wrap").on('click', '.mousetrap', function(){
$(this).prev().trigger('click');
});

});

В шаблоне main.css в самый низ добавьте

/* This is the moving lens square underneath the mouse pointer. */
.cloud-zoom-lens {border: 4px solid #888;margin:-4px;background-color:#fff;cursor:move;}
/* This is for the title text. */
.cloud-zoom-title {position: absolute;background-color: #000;color: #fff;padding: 3px;width: 100%;text-align: center;font-size: 12px;top: 0px;max-height: 40px;overflow: hidden;}
.cloud-zoom-big {overflow:hidden;}
/* This is the loading message. */
.cloud-zoom-loading {color:white;background:#222;padding:3px;border:1px solid #000;}

найдите

.product-view .product-img-box .product-image .general-img {position: relative;text-align: center;min-height: 200px;}

замените на

.product-view .product-img-box .product-image .general-img {position: relative;text-align: center;min-height: 200px;overflow: hidden;}

В шаблоне forall.js в самый низ добавьте

/*!
* Cloud Zoom V1.0.3
* Увеличение товара при наведении
* (c) 2010-2012 by R Cecco. <http://www.professorcloud.com>
*/
(function($){var scripts=document.getElementsByTagName("script");var last=scripts[scripts.length-1].src.lastIndexOf("/");var scriptPath=scripts[scripts.length-1].src.slice(0,last);function format(str){for(var i=1;i<arguments.length;i++){str=str.replace("%"+(i-1),arguments[i])}return str}function CloudZoom(jWin,opts){var sImg=$("img",jWin);var img1;var img2;var zoomDiv=null;var $mouseTrap=null;var lens=null;var $tint=null;var softFocus=null;var $ie6Fix=null;var zoomImage;var controlTimer=0;var cw,ch;var destU=0;var destV=0;var currV=0;var currU=0;var filesLoaded=0;var mx,my;var ctx=this,zw;setTimeout(function(){if($mouseTrap===null){var w=jWin.width();jWin.parent().append(format('<div style="width:%0px;position:absolute;top:75%;left:%1px;text-align:center" class="cloud-zoom-loading" >Loading...</div>',w/3,(w/2)-(w/6)));$("cloud-zoom-loading",jWin.parent()).css("opacity",0.5)}},200);var ie6FixRemove=function(){if($ie6Fix!==null){$ie6Fix.remove();$ie6Fix=null}};this.removeBits=function(){if(lens){lens.remove();lens=null}if($tint){$tint.remove();$tint=null}if(softFocus){softFocus.remove();softFocus=null}ie6FixRemove();$(".cloud-zoom-loading",jWin.parent()).remove()};this.destroy=function(){jWin.data("zoom",null);if($mouseTrap){$mouseTrap.unbind();$mouseTrap.remove();$mouseTrap=null}if(zoomDiv){zoomDiv.remove();zoomDiv=null}this.removeBits()};this.fadedOut=function(){if(zoomDiv){zoomDiv.remove();zoomDiv=null}this.removeBits()};this.controlLoop=function(){if(lens){var x=(mx-sImg.offset().left-(cw*0.5))>>0;var y=(my-sImg.offset().top-(ch*0.5))>>0;if(x<0){x=0}else{if(x>(sImg.outerWidth()-cw)){x=(sImg.outerWidth()-cw)}}if(y<0){y=0}else{if(y>(sImg.outerHeight()-ch)){y=(sImg.outerHeight()-ch)}}lens.css({left:x,top:y});lens.css("background-position",(-x)+"px "+(-y)+"px");destU=(((x)/sImg.outerWidth())*zoomImage.width)>>0;destV=(((y)/sImg.outerHeight())*zoomImage.height)>>0;currU+=(destU-currU)/opts.smoothMove;currV+=(destV-currV)/opts.smoothMove;zoomDiv.css("background-position",(-(currU>>0)+"px ")+(-(currV>>0)+"px"))}controlTimer=setTimeout(function(){ctx.controlLoop()},30)};this.init2=function(img,id){filesLoaded++;if(id===1){zoomImage=img}if(filesLoaded===2){this.init()}};this.init=function(){$(".cloud-zoom-loading",jWin.parent()).remove();$mouseTrap=$(".mousetrap",jWin.parent());if(!$mouseTrap.length){var $m=$("<div class='mousetrap' style='background-image:url(\""+scriptPath+"/blank.png\")'></div>");$mouseTrap=jWin.parent().append($m).find(":last");$mouseTrap=$(".mousetrap",jWin.parent())}$mouseTrap.css({width:sImg.outerWidth(),height:sImg.outerHeight(),top:0,left:0,position:"absolute",zIndex:9999});$mouseTrap.bind("mousemove",this,function(event){mx=event.pageX;my=event.pageY});$mouseTrap.bind("mouseleave",this,function(event){clearTimeout(controlTimer);if(lens){lens.fadeOut(299)}if($tint){$tint.fadeOut(299)}if(softFocus){softFocus.fadeOut(299)}zoomDiv.fadeOut(300,function(){ctx.fadedOut()});return false});$mouseTrap.bind("mouseenter",this,function(event){mx=event.pageX;my=event.pageY;zw=event.data;if(zoomDiv){zoomDiv.stop(true,false);zoomDiv.remove()}var xPos=opts.adjustX,yPos=opts.adjustY;var siw=sImg.outerWidth();var sih=sImg.outerHeight();var w=opts.zoomWidth;var h=opts.zoomHeight;if(opts.zoomWidth=="auto"){w=siw}if(opts.zoomHeight=="auto"){h=sih}var appendTo=jWin.parent();switch(opts.position){case"top":yPos-=h;break;case"right":xPos+=siw;break;case"bottom":yPos+=sih;break;case"left":xPos-=w;break;case"inside":w=siw;h=sih;break;default:appendTo=$("#"+opts.position);if(!appendTo.length){appendTo=jWin;xPos+=siw;yPos+=sih}else{w=appendTo.innerWidth();h=appendTo.innerHeight()}}zoomDiv=$(".cloud-zoom-big",appendTo);if(zoomDiv.length){zoomDiv.replaceWith(format('<div id="cloud-zoom-big" class="cloud-zoom-big" style="display:none;position:absolute;left:%0px;top:%1px;width:%2px;height:%3px;background-image:url(\'%4\');z-index:99;"></div>',xPos,yPos,w,h,zoomImage.src)).find(":last")}else{zoomDiv=appendTo.append(format('<div id="cloud-zoom-big" class="cloud-zoom-big" style="display:none;position:absolute;left:%0px;top:%1px;width:%2px;height:%3px;background-image:url(\'%4\');z-index:99;"></div>',xPos,yPos,w,h,zoomImage.src)).find(":last")}zoomDiv=$(".cloud-zoom-big",appendTo);if(sImg.attr("title")&&opts.showTitle){zoomDiv.append(format('<div class="cloud-zoom-title">%0</div>',sImg.attr("title")));$(".cloud-zoom-title",zoomDiv).css("opacity",opts.titleOpacity)}if($.browser&&$.browser.msie&&$.browser.version<7){$ie6Fix=$('<iframe frameborder="0" src="#"></iframe>').css({position:"absolute",left:xPos,top:yPos,zIndex:99,width:w,height:h}).insertBefore(zoomDiv)}zoomDiv.fadeIn(500);if(lens){lens.remove();lens=null}cw=(sImg.outerWidth()/zoomImage.width)*zoomDiv.width();ch=(sImg.outerHeight()/zoomImage.height)*zoomDiv.height();lens=$(".cloud-zoom-lens",jWin);if(lens.length){lens.replaceWith(format("<div class = 'cloud-zoom-lens' style='display:none;z-index:98;position:absolute;width:%0px;height:%1px;'></div>",cw,ch)).find(":last")}else{lens=jWin.append(format("<div class = 'cloud-zoom-lens' style='display:none;z-index:98;position:absolute;width:%0px;height:%1px;'></div>",cw,ch)).find(":last")}lens=$(".cloud-zoom-lens",jWin);$mouseTrap.css("cursor",lens.css("cursor"));var noTrans=false;if(opts.tint){lens.css("background",'url("'+sImg.attr("src")+'")');$tint=jWin.append(format('<div class="cloud-zoom-tint" style="display:none;position:absolute; left:0px; top:0px; width:%0px; height:%1px; background-color:%2;" />',sImg.outerWidth(),sImg.outerHeight(),opts.tint)).find(":last");$tint=$(".cloud-zoom-tint",jWin);$tint.css("opacity",opts.tintOpacity);noTrans=true;$tint.fadeIn(500)}if(opts.softFocus){lens.css("background",'url("'+sImg.attr("src")+'")');jWin.append(format('<div class="cloud-zoom-soft" style="position:absolute;display:none;top:2px; left:2px; width:%0px; height:%1px;" />',sImg.outerWidth()-2,sImg.outerHeight()-2,opts.tint));softFocus=$(".cloud-zoom-soft",jWin);softFocus.css("background",'url("'+sImg.attr("src")+'")');softFocus.css("opacity",0.5);noTrans=true;softFocus.fadeIn(500)}if(!noTrans){lens.css("opacity",opts.lensOpacity)}if(opts.position!=="inside"){lens.fadeIn(500)}zw.controlLoop();return})};img1=new Image();$(img1).load(function(){ctx.init2(this,0)});img1.src=sImg.attr("src");img2=new Image();$(img2).load(function(){ctx.init2(this,1)});img2.src=jWin.attr("href")}$.fn.CloudZoom=function(options){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}this.each(function(){var relOpts,opts;eval("var a = {"+$(this).attr("rel")+"}");relOpts=a;if($(this).is(".cloud-zoom")){$(this).css({position:"relative",display:"inline-block"});$("img",$(this)).css({display:"block"});if($(this).parent().attr("id")!="wrap"){$(this).wrap('<div id="wrap" style="top:0px;z-index: 7;position:relative;"></div>')}opts=$.extend({},$.fn.CloudZoom.defaults,options);opts=$.extend({},opts,relOpts);$(this).data("zoom",new CloudZoom($(this),opts))}else{if($(this).is(".cloud-zoom-gallery")){opts=$.extend({},relOpts,options);$(this).data("relOpts",opts);$(this).bind("click",$(this),function(event){var data=event.data.data("relOpts");$("#"+data.useZoom).data("zoom").destroy();$("#"+data.useZoom).attr("href",event.data.attr("href"));$("#"+data.useZoom+" img").attr("src",event.data.data("relOpts").smallImage);$("#"+event.data.data("relOpts").useZoom).CloudZoom();return false})}}});return this};$.fn.CloudZoom.defaults={zoomWidth:"auto",zoomHeight:"auto",position:"right",tint:false,tintOpacity:0.5,lensOpacity:0.5,softFocus:false,smoothMove:3,showTitle:true,titleOpacity:0.5,adjustX:0,adjustY:0}})(jQuery);

Далее чтобы исправить ошибку в мобильной версии нужно заменить в main.js у данного кода  loop: true, на  loop: false, у слайдеров "Сопутствующие товары" и "С этим товаром смотрят"
loop - параметр зацикливания слайдера

В шаблоне main.js найдите

// Сопутствующие товары
jQuery(function($) {
var owl = $('.related-goods .products-grid');
// Показывать\Скрывать навигацию
owl.on('initialized.owl.carousel changed.owl.carousel', function(event) {
var items = event.item.count;
var size = event.page.size;
if (items < size){
$('.related-goods .navigation').hide();
} else {
$('.related-goods .navigation').show();
}
});
// Запуск слайдера
owl.owlCarousel({
responsiveClass:true,
responsive:{
0:{items:1},
480:{items:1},
641:{items:2},
991:{items:3},
1400:{items:4}
},
loop: true,
lazyLoad: false,
pagination: false,
touchDrag: false,
mouseDrag: false,
autoplay: false,
autoplayHoverPause: true,
autoHeight: true
});
// Кнопки навигации
$('.related-goods .navigation .next').click(function(event) {
event.preventDefault();
owl.trigger('next.owl.carousel');
});
$('.related-goods .navigation .prev').click(function(event) {
event.preventDefault();
owl.trigger('prev.owl.carousel');
});
});

замените на

// Сопутствующие товары
jQuery(function($) {
var owl = $('.related-goods .products-grid');
// Показывать\Скрывать навигацию
owl.on('initialized.owl.carousel changed.owl.carousel', function(event) {
var items = event.item.count;
var size = event.page.size;
if (items < size){
$('.related-goods .navigation').hide();
} else {
$('.related-goods .navigation').show();
}
});
// Запуск слайдера
owl.owlCarousel({
responsiveClass:true,
responsive:{
0:{items:1},
480:{items:1},
641:{items:2},
991:{items:3},
1400:{items:4}
},
loop: false,
lazyLoad: false,
pagination: false,
touchDrag: false,
mouseDrag: false,
autoplay: false,
autoplayHoverPause: true,
autoHeight: true
});
// Кнопки навигации
$('.related-goods .navigation .next').click(function(event) {
event.preventDefault();
owl.trigger('next.owl.carousel');
});
$('.related-goods .navigation .prev').click(function(event) {
event.preventDefault();
owl.trigger('prev.owl.carousel');
});
});

найдите

// С этим товаром смотрят
jQuery(function($) {
var owl = $('.related-views .products-grid');
// Показывать\Скрывать навигацию
owl.on('initialized.owl.carousel changed.owl.carousel', function(event) {
var items = event.item.count;
var size = event.page.size;
if (items < size){
$('.related-views .navigation').hide();
} else {
$('.related-views .navigation').show();
}
});
// Запуск слайдера
owl.owlCarousel({
responsiveClass:true,
responsive:{
0:{items:1},
480:{items:1},
641:{items:2},
991:{items:3},
1400:{items:4}
},
loop: true,
lazyLoad: false,
pagination: false,
touchDrag: false,
mouseDrag: false,
autoplay: false,
autoplayHoverPause: true,
autoHeight: true
});
// Кнопки навигации
$('.related-views .navigation .next').click(function(event) {
event.preventDefault();
owl.trigger('next.owl.carousel');
});
$('.related-views .navigation .prev').click(function(event) {
event.preventDefault();
owl.trigger('prev.owl.carousel');
});
});

замените на

// С этим товаром смотрят
jQuery(function($) {
var owl = $('.related-views .products-grid');
// Показывать\Скрывать навигацию
owl.on('initialized.owl.carousel changed.owl.carousel', function(event) {
var items = event.item.count;
var size = event.page.size;
if (items < size){
$('.related-views .navigation').hide();
} else {
$('.related-views .navigation').show();
}
});
// Запуск слайдера
owl.owlCarousel({
responsiveClass:true,
responsive:{
0:{items:1},
480:{items:1},
641:{items:2},
991:{items:3},
1400:{items:4}
},
loop: false,
lazyLoad: false,
pagination: false,
touchDrag: false,
mouseDrag: false,
autoplay: false,
autoplayHoverPause: true,
autoHeight: true
});
// Кнопки навигации
$('.related-views .navigation .next').click(function(event) {
event.preventDefault();
owl.trigger('next.owl.carousel');
});
$('.related-views .navigation .prev').click(function(event) {
event.preventDefault();
owl.trigger('prev.owl.carousel');
});
});



#289213 Отразить Наличие Товара В Каталоге

Отправлено от Foxis_10 в 22 Апрель 2021 - 14:32 в Каталог товаров

Здравствуйте. Если просто выделить цветом в шаблоне main.css в самый низ добавьте

.goodsModRestValue {color: #019934;}



#289191 Новости. Не Работает Переключение Страниц

Отправлено от Foxis_10 в 14 Апрель 2021 - 16:36 в Шаблон Фиеста

В шаблоне Список новостей найдите


 <ol>
		{% IF NEWS_PAGES_SHOW_FIRST %}
		  <li><a class="pagination-prev" href="?sid={NEWS_SECTION_ID}&page={NEWS_PAGES_PREVIOUS}" title="Предыдущая страница"></a></li>
		  <li><a href="?sid={NEWS_SECTION_ID}&page={NEWS_PAGES_PREVIOUS}" title="Предыдущая страница">{NEWS_PAGES_PREVIOUS}</a></li>
		{% ENDIF %}
		  <li class="current"><span>{news_pages.PAGE}</span></li>
		{% IF GOODS_PAGES_SHOW_LAST %}
		  <li class="next-page"><a href="?sid={NEWS_SECTION_ID}&page={NEWS_PAGES_NEXT}" title="Следующая страница">{NEWS_PAGES_NEXT}</a></li>
		  <li><a class="pagination-next" href="?sid={NEWS_SECTION_ID}&page={NEWS_PAGES_NEXT}" title="Следующая страница"></a></li>
		{% ENDIF %}
	  </ol>

замените на


 <ol>
		{% IF NEWS_PAGES_SHOW_PREVIOUS %}   
		  <li class="first"><a href="?sid={NEWS_SECTION_ID}&page={NEWS_PAGES_PREVIOUS}" title="Предыдущая страница"><i class="fal fa-angle-double-left"></i></a></li>
		{% ENDIF %}
		{% FOR news_pages %}
		  {% IF news_pages.CURRENT %}
			<li class="current"><span>{news_pages.PAGE}</span></li>
		  {% ELSE %}
			<li><a href="?sid={NEWS_SECTION_ID}&page={news_pages.PAGE}">{news_pages.PAGE}</a></li>
		  {% ENDIF %}
		{% ENDFOR %}
		{% IF NEWS_PAGES_SHOW_NEXT %}
		  <li class="last"><a href="?sid={NEWS_SECTION_ID}&page={NEWS_PAGES_NEXT}" title="Следующая страница"><i class="fal fa-angle-double-right"></i></a></li>
		{% ENDIF %}
	  </ol>



#289186 Установка Виджета Пунктов Выдачи Заказа Сдэк

Отправлено от Foxis_10 в 13 Апрель 2021 - 16:50 в Оформление заказа

Здравствуйте. Правки вам внесли. В main.js добавленный код вы можете найти через поиск по коду Ctrl+F

var fz = $($('.zone__radio[deliveryid='+val+']')[0]); 
	if (val== 376263)

У вас был зациклен код из-за этой строки в main.js (закомментировала вам её)

// .trigger('click');