Post by slycrespo » Thu Dec 10, 2020 8:35 pm

Hello!
I have a weird problem. On product page, when I click on small images (marked with red circle in picture below), the big picture abowe is not changing. I hope you will understand what I mean...

Image

Maybe it has something to do with this error:

PHP Notice: Undefined variable: http_type in /home/mojforum/domains/mysiteurl/public_html/vqmod/vqcache/vq2-catalog_view_theme_slycrespo1_template_product_product.tpl on line 3

I am using Opencart Version 1.5.6.1. (I know it's old).


Here are the first 45 lines of product.tpl:

Code: Select all

<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?> 
  <div class="breadcrumb" xmlns:v="<?php echo $http_type;?>//rdf.data-vocabulary.org/#" id="brd-crumbs"  >
  
	<ul>
		<?php foreach ($breadcrumbs as $breadcrumb) { ?>
			<li typeof="v:Breadcrumb">
			<?php echo $breadcrumb['separator']; ?><a property="v:title" rel="v:url" href="<?php echo $breadcrumb['href']; ?>"><span><?php echo $breadcrumb['text']; ?></span></a></li>
    	<?php } ?>
	</ul>
  </div>
  
    <div class="product-info" itemscope itemtype="http://schema.org/Product">
    <?php if ($thumb || $images) { ?>
    <div class="left product-image">
      <?php if ($thumb) { ?>      
	  <!-- Megnor Cloud-Zoom Image Effect Start -->
	  	<span class="image"><img id="cloud-zoom" src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" data-zoom-image="<?php echo $popup; ?>"/></span> 
      <?php } ?>
      <?php if ($images) { ?>	  
	  	 <?php 
			$sliderFor = 3;
			$imageCount = sizeof($images); 
		 ?>	
		 <div class="additional-carousel">	
		  <?php if ($imageCount >= $sliderFor): ?>
		  	<div class="customNavigation">
				<a class="btn prev">&nbsp;</a>
				<a class="btn next">&nbsp;</a>
			</div> 
		  <?php endif; ?>	      
		  <div id="additional-carousel" class="image-additional <?php if ($imageCount >= $sliderFor){?>product-carousel<?php }?>">
    	    <?php foreach ($images as $image) { ?>
				<div class="slider-item">
				<div class="product-block">		
        			<a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="elevatezoom-gallery" data-image="<?php echo $image['thumb']; ?>" data-zoom-image="<?php echo $image['popup']; ?>"><img id="cloud-zoom" src="<?php echo $image['thumb']; ?>" width="74" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
				</div>
				</div>		
	        <?php } ?>				
    	  </div>
		 
		  <span class="additional_default_width" style="display:none; visibility:hidden"></span>
		  </div>		  	  
	  
    <?php } ?>


New member

Posts

Joined
Tue Aug 28, 2012 7:41 am

Post by JNeuhoff » Thu Dec 10, 2020 10:04 pm

You'll have to ask the theme author for support on this, to sort its 'Megnor Cloud-Zoom Image Effect' feature.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by IP_CAM » Sat Dec 12, 2020 4:42 am

REMOVE THIS: <div class="breadcrumb" xmlns:v="<?php echo $http_type;?>//rdf.data-vocabulary.org/#" id="brd-crumbs" >
Replace your Breadcrumb Section with this one in the product.tpl file,
and if it works (better), replace it in every file, whereever it exists.

Code: Select all

<div class="breadcrumb">
<ul>
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><?php echo $breadcrumb['separator']; ?> <a href="<?php echo $breadcrumb['href']; ?>"> <span><?php echo $breadcrumb['text']; ?></span></a></li>
<?php } ?>
</ul>
</div>
Just an Idea ... :D

I am no longer active at the Forum. Please do NOT send me Personal Mails,
they will no longer be replied to.
My Github OC Site: https://github.com/IP-CAM
3'765 + FREE OC Extensions, on the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 27 guests