Jump to content

Recommended Posts

Здравствуйте, подскажите пж установил модуль Cloud Zoom но зум не работает в логах vqmod. Подскажите пж как поправить.

 

/var/www/u0106598/data/www/site.ru/vqmod/xml/Cloud-Zoom.xml
 
File Name    : catalog/view/theme/*/template/product/product.tpl(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): <?php if ($thumb) { ?>

Share this post


Link to post
Share on other sites

Написано же, vqmod не находит <?php if ($thumb) { ?> в файле catalog/view/theme/*/template/product/product.tpl

Share this post


Link to post
Share on other sites

mazein - это понятно куда не пробовал его добавить не работает. 

 

<?php echo $header; ?>
<div class="cat_info pwb product-info <?php if(isset($_GET['tracking'])){ ?>qqq<?php } ?>">
<div class="cat_info_l">
<div class="cat_in_sl">
<div class="sl_big_box">
                <?php if ($thumb) { ?>
<img id="main_img" src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" />
<?php } ?>
                </div>
<?php if(!isset($_GET['tracking'])){ ?>
<div class="sl_item_box">
<ul class="images_dop">
 <?php foreach ($images as $image) { ?>
<li class="img_prev" data-thumb="<?php echo $image['popup']; ?>"><a title="<?php echo $heading_title; ?>"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a></li>
 <?php } ?>
</ul>
</div>
<?php } ?>
<?php if(!isset($_GET['tracking'])){ ?>
<p>Доставка по Москве от 3 000 руб бесплатно <br/> Доставка до 3 000 руб = 300 руб в пределах МКАД</p>
 
<button onclick="document.location.href = '/shipping';">
<img src="img/ico/car.png" alt="img">
<p>Оплата и доставка</p>
</button>
<?php } ?>
</div>
</div>
 
<div class="cat_info_r">
<div class="info_top_box">
<h2><?php echo $heading_title; ?></h2>
<?php if ($special) { ?>
<h3><span><?php echo $special; ?></span> <span class="price_old"><?php echo $price; ?></span> руб</h3>
<?php }else{ ?>
<h3><span><?php echo $price; ?></span> руб</h3>
<?php } ?>
<p><span>Артикул:</span> <?php echo $model; ?></p>
<?php if ($upc){ ?><p><span>Цвет:</span> <u id="pr_color"><?php echo $upc; ?></u></p><?php } ?>
<?php if ($location){ ?><p><span>Состав:</span> <?php echo $location; ?></p><?php } ?>
</div>
 
<?php if(!isset($_GET['tracking'])){ ?><?php echo $description; ?><?php } ?>
<input type="hidden" value="<?php echo $product_id; ?>" name="product_id">
<?php if ($options) { ?>
<?php foreach ($options as $option) { ?>
 <?php if ($option['option_id'] == 14) { ?>
  <div class="info_r_color">
<h3>Выберите цвет:</h3>
<ul> 
 <?php foreach ($option['option_value'] as $option_value) { ?>
<li title="<?php echo $option_value['name']; ?>" class="li_<?php echo $option_value['product_option_value_id']; ?>">
<input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
<label for="option-value-<?php echo $option_value['product_option_value_id']; ?>" onclick="
$('.info_r_color ul li').removeClass('color_act');
$('#pr_color').text('<?php echo $option_value['name']; ?>');
$('.li_<?php echo $option_value['product_option_value_id']; ?>').addClass('color_act');
">
<a style="background:<?php echo $option_value['image']; ?>;"></a> 
</label>
</li>
 <?php } ?>
</ul>
  </div>
 <?php } ?>
<?php } ?>
<?php } ?>
<?php if ($options) { ?>
<?php foreach ($options as $option) { ?>
  <?php if ($option['option_id'] == 13) { ?>
<div class="info_r_size">
<h3>Выберите размер:</h3>
<?php if ($sku){ ?><a class="h4 fancybox" href="<?php echo $sku; ?>">Таблица размеров</a>
<script>
$('.fancybox').fancybox({
//'href' : <?php echo $sku; ?>, 
});
</script>
<?php } ?>
<ul>
 <?php foreach ($option['option_value'] as $option_value) { ?>
 <li class="li_<?php echo $option_value['product_option_value_id']; ?>"><a>
 <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
 <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>" onclick="
$('.info_r_size ul li').removeClass('size_act');
$('.li_<?php echo $option_value['product_option_value_id']; ?>').addClass('size_act');
 "> 
 <?php echo $option_value['name']; ?>
 </label></a></li>
 <?php } ?>
</ul>
 
<button id="button-cart"><img src="img/ico/bay_ico.png" alt="img">В корзину</button>
</div>
  <?php } ?>
 <?php } ?>
<?php } ?>
<?php if(!isset($_GET['tracking'])){ ?>
<?php if ($attribute_groups) { ?>
<?php foreach ($attribute_groups as $attribute_group) { ?>
<?php if ($attribute_group['name'] != 'Система'){ ?>
 <div class="info_more_box">
<h2><?php echo $attribute_group['name']; ?>:</h2>
<table>
<tbody>
 <?php foreach ($attribute_group['attribute'] as $attribute) { ?>
<tr>
 <td><?php echo $attribute['name']; ?></td>
 <td><?php echo $attribute['text']; ?></td>
</tr>
 <?php } ?>
</tbody>
</table>
 </div>
<?php } ?>
<?php } ?>
<?php } ?>
<?php } ?>
</div>
 
</div>
 
<?php if(!isset($_GET['tracking'])){ ?>
<?php if ($products) { ?>
 <div class="most_bay_w">
<div class="most_bay pwb">
<h2>С этим товаром покупают</h2>
<div class="most_bay_item_box animated boxHided">
 <?php foreach ($products as $product) { ?>
<div class="bay_item">
<?php if ($product['thumb']) { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a>
                    <?php } ?>
<a class="bi_text" href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<p><span><?php echo $product['price']; ?></span> руб.</p>
<input type="submit" name="" value="В корзину" onclick="addToCart('<?php echo $product['product_id']; ?>');" >
</div>
 <?php } ?>
</div>
</div>
 </div>
<?php } ?>
 
<div class="cart_review_w">
<div class="cart_review_box animated boxHided pwb">
<h2 id="review-title">Отзывы</h2>
 
<div class="cart_review_input">
<img src="img/rev/cart_rev_a.jpg" alt="img">
<p><?php echo $this->customer->getFirstName()?$this->customer->getFirstName():'Гость'; ?> <input type="hidden" name="name" value="<?php echo $this->customer->getFirstName()?$this->customer->getFirstName():'Гость'; ?>" /></p>
<textarea name="text"></textarea>
<button id="button-review">Оставить отзыв</button>
</div>
<div id="review"></div> 
</div>
</div>
 
<?php echo $content_bottom; ?>
<?php } ?>
<script type="text/javascript"><!--
$('.img_prev').click(function(){
$('#main_img').attr('src', $(this).data('thumb'));
$('.img_prev').removeClass('sl_act');
$(this).addClass('sl_act');
});
 
$('#review .pagination a').live('click', function() {
$('#review').fadeOut('slow');
 
$('#review').load(this.href);
 
$('#review').fadeIn('slow');
 
return false;
});
 
$('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id; ?>');
 
$('#button-review').bind('click', function() {
$.ajax({
url: 'index.php?route=product/product/write&product_id=<?php echo $product_id; ?>',
type: 'post',
dataType: 'json',
data: 'name=' + encodeURIComponent($('input[name=\'name\']').val()) + '&text=' + encodeURIComponent($('textarea[name=\'text\']').val()),
beforeSend: function() {
$('.success, .warning').remove();
$('#button-review').attr('disabled', true);
$('#review-title').after('<div class="attention"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
},
complete: function() {
$('#button-review').attr('disabled', false);
$('.attention').remove();
},
success: function(data) {
if (data['error']) {
$('#review-title').after('<div class="warning">' + data['error'] + '</div>');
}
 
if (data['success']) {
$('#review-title').after('<div class="success">' + data['success'] + '</div>');
 
$('textarea[name=\'text\']').val('');
}
}
});
});
<?php if(!isset($_GET['tracking'])){ ?>
$('#button-cart').bind('click', function() {
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, information, .error').remove();
 
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
$('#option-' + i).after('<span class="error">' + json['error']['option'] + '</span>');
}
}
 
if (json['success']) {
$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
 
$('.success').fadeIn('slow');
 
$('#cart-total').html(json['total']);
$('#cart-price').html(json['price']);
 
$('html, body').animate({ scrollTop: 0 }, 'slow'); 
}
}
});
});
<?php }else{ ?>
$('#button-cart').bind('click', function() {
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, information, .error').remove();
 
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
$('#option-' + i).after('<span class="error">' + json['error']['option'] + '</span>');
}
}
 
if (json['success']) {
parent.$.fancybox.close();
 
parent.$('.success').fadeIn('slow');
 
parent.$('#cart-total').html(json['total']);
parent.$('#cart-price').html(json['price']);
 
parent.$('html, body').animate({ scrollTop: 0 }, 'slow'); 
}
}
});
});
<?php } ?>
//--></script>
<?php if(!isset($_GET['tracking'])){ ?>
<?php echo $footer; ?>
<?php } ?>

Share this post


Link to post
Share on other sites

Надо смотреть Cloud-Zoom.xml

Share this post


Link to post
Share on other sites

Cloud-Zoom.xml

 

<!-- Ürün detay sayfasına cloud zoom ekler -->
<!-- www.opencart-soft.com - ersen16 -->
<modification>
<id><![CDATA[Cloud Zoom]]></id>
<version><![CDATA[1.0]]></version>
<author><![CDATA[www.opencart-soft.com - ersen16]]></author>
 
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search position="before"><![CDATA[</head>]]></search>
<add><![CDATA[<link href="catalog/view/javascript/jquery/cloudzoom/cloud-zoom.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript" src="catalog/view/javascript/jquery/cloudzoom/cloud-zoom.1.0.2.js"></script>
<!-- www.opencart-soft.com - ersen16 Cloud Zoom -->
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search position="replace" offset="1"><![CDATA[<?php if ($thumb) { ?>]]></search>
<add><![CDATA[
<?php if ($thumb) { ?>
<div class="image"><a href="<?php echo $zoom_image; ?>" title="<?php echo $heading_title; ?>" class="cloud-zoom" id='zoom1' rel="adjustX: 10, adjustY:-4, tint:'#000000',tintOpacity:0.2, zoomWidth:360"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>   
 ]]></add>
</operation>
<operation>
<search position="before"><![CDATA[<?php foreach ($images as $image) { ?>]]></search>
<add><![CDATA[
<a href="<?php echo $zoom_image; ?>" title="<?php echo $heading_title; ?>" class="cloud-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo $thumb; ?>' "><img src="<?php echo $thumbadditional; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" onclick="largelink('<?php echo $popup; ?>')"/></a>
]]></add>
</operation>
<operation>
<search position="replace" offset="1"><![CDATA[<?php foreach ($images as $image) { ?>]]></search>
<add><![CDATA[
<?php foreach ($images as $image) { ?>
<a href=<?php echo $image['zoom_image]; ?>" title="<?php echo $heading_title; ?>" class="cloud-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo $image['thumbimage']; ?>' "><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" onclick="largelink('<?php echo $image['popup']; ?>')" /></a>
]]></add>
</operation>
</file>
<file name="catalog/controller/product/product.php">
        <operation>
            <search position="after"><![CDATA[$this->load->model('tool/image');]]></search>
            <add><![CDATA[
if ($product_info['image']) {
$this->data['zoom_image'] = $this->model_tool_image->resize($product_info['image'], 1000, 1000);
$this->data['thumbadditional'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_additional_width'), $this->config->get('config_image_additional_height'));
} else {
$this->data['zoom_image'] = '';
$this->data['thumbadditional'] = '';
}
            ]]></add>
        </operation>
<operation>
            <search position="after"><![CDATA[$this->data['images'][] = array(]]></search>
            <add><![CDATA[
'zoom_image' => $this->model_tool_image->resize($result['image'] , 1000, 1000),
'thumbimage' => $this->model_tool_image->resize($result['image'] , $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height')),
            ]]></add>
        </operation>
</file>
</modification>

Share this post


Link to post
Share on other sites
<file name="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search position="replace" offset="1"><![CDATA[<?php if ($thumb) { ?>]]></search>
<add><![CDATA[
<?php if ($thumb) { ?>
<div class="image"><a href="<?php echo $zoom_image; ?>" title="<?php echo $heading_title; ?>" class="cloud-zoom" id='zoom1' rel="adjustX: 10, adjustY:-4, tint:'#000000',tintOpacity:0.2, zoomWidth:360"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>   
 ]]></add>
</operation>

1. Вместо * напиши папку шаблона

2. Вместо <?php if ($thumb) { ?> скопируй полную строку из файла шаблона, вместе с пробелами

3. Если не получится, встрой этот блок в файл шаблона

Share this post


Link to post
Share on other sites

1. Вместо * напиши папку шаблона - писал

 

2. Вместо <?php if ($thumb) { ?> скопируй полную строку из файла шаблона, вместе с пробелами

 

скопировал с шаблона 

 

 

<div class="sl_big_box">
<img id="main_img" src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" />
</div>

 

вставил Cloud-Zoom.xml в место 

 

<?php if ($thumb) { ?>
<div class="image"><a href="<?php echo $zoom_image; ?>" title="<?php echo $heading_title; ?>" class="cloud-zoom" id='zoom1' rel="adjustX: 10, adjustY:-4, tint:'#000000',tintOpacity:0.2, zoomWidth:360"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>   
 
3. Если не получится, встрой этот блок в файл шаблона - куда его вставить?

Share this post


Link to post
Share on other sites

Чёт ты вообще не то делаешь.

Внимательно посмотри на блок из мода, из моего предыдущего сообщения - что, где, и вместо чего меняется модом.

Share this post


Link to post
Share on other sites

mazein - извиняюсь. Наверное так?

 

из шаблона 

 

<img id="main_img" src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" />
 
в  Cloud-Zoom.xml место <?php if ($thumb) { ?>
 
<img id="main_img" src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" />

Share this post


Link to post
Share on other sites

Что мод ищет, но не может найти?

Share this post


Link to post
Share on other sites
catalog/view/theme/default/template/product/product.tpl(0)

VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): <?php if ($thumb) { ?>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.