Jump to content

Mixed Content - bad images on index


menubox_sk

Recommended Posts

Hello, I have activated an EV SSL certificate on my shop, everywhere is runnning fine besides the homepage. After a moment of searching, I found that some of the images still refer to "http" instead of "https", and they mark my shop as unprotected. I know that I have to find the appropriate .tpl files and edit the links to https, but the question is how? Would anyone look at that please? I just need to find correct .tpl files to edit.  

Url to shop: shop.menubox.sk

The bugs that the Chrome Console displays are also attached to the screen.

Thanks for every help.

image.png

Link to comment
Share on other sites

Thanks for the quick response musicmaster!

Yes, it's that module, becouse when I turn it off, SSL is working. I downloaded .tpl of the module, but i can't find any links in it to edit (sorry, I am not the programmer). Can you please help me how should I edit it?

 

Here is the code:

<div class="col-xs-12">
<div class="postabcateslider postabcateslider1 block_product">
	<div class="title_block">
		<h3>
			<span class="cate_thumb"><img src={$cate_thumbnail} alt="cate_thumb" class="img-responsive"/></span>
			<span class="cate_name">{$category_name}</span>
		</h3>
		{$countss = 0}
		{foreach from=$productCates item=productCate name=postabcateslider}
			<div id="navi1_{$countss}" class="navi">
				<a class="prevtab"><i class="icon-angle-left"></i></a>
				<a class="nexttab"><i class="icon-angle-right"></i></a>
			</div>
			{$countss= $countss+1}
		{/foreach}
		<div class="cate_title">
			<ul class="tabs1"> 
				{$count=0}
				{foreach from=$productCates item=productCate name=posTabCategory}
					<li class="{if $count==0} active {/if}" rel="tab1_{$count}" data-navi="navi1_{$count}">
						{$productCate.name}
					</li>
				{$count= $count+1}
				{/foreach}	
			</ul>
		</div>
	</div>
	<div class="cate_image_bg"><img src={$cate_image} alt="category image" class="img-responsive"/></div>
	<div class="tab_container block_content"> 
			{$counts = 0}
			{foreach from=$productCates item=productCate name=postabcateslider}
				<div id="tab1_{$counts}" class="tab_content">
					<div class="row_edited">
					<div id="tab1_{$counts}_in" class="tabSlide">
						{foreach from=$productCate.product item=product name=myLoop}
							{if $smarty.foreach.myLoop.index % 1 == 0 || $smarty.foreach.myLoop.first }
								<div class="item_out">
							{/if}
								<div class="item">
									<div class="home_tab_img">
										<a class="product_img_link"	href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url">
											<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}"
											alt="{$product.legend|escape:'html':'UTF-8'}"
											class="img-responsive"/>
										</a>
										{if isset($product.new) && $product.new == 1}
											<a class="new-box" href="{$product.link|escape:'html':'UTF-8'}"><span>{l s='New' mod='poscategorylist1'}</span></a>
										{/if}
										{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
											<a class="sale-box" href="{$product.link|escape:'html':'UTF-8'}"><span>{l s='Sale' mod='poscategorylist1'}</span></a>
										{/if}
										{if isset($quick_view) && $quick_view}
											<a 	title="{l s='Quick view' mod='poscategorylist1'}"
												class="quick-view"
												href="{$product.link|escape:'html':'UTF-8'}">
												<i class="icon-eye"></i>{l s='Quick view' mod='poscategorylist1'}
											</a>
										{/if}
									</div>
									<div class="home_tab_info">
										<a class="product-name" href="{$product.link|escape:'html'}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">
											{$product.name|escape:'htmlall':'UTF-8'}
										</a>
										<div class="comment_box">
											{hook h='displayProductListReviews' product=$product}
										</div>
										<div class="price-box">
											<meta itemprop="priceCurrency" content="{$priceDisplay}" />
											{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
												<span class="old-price product-price">
													{displayWtPrice p=$product.price_without_reduction}
												</span>
											{/if}
											<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>
										</div>
										<div class="btn_content">
												{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
													{if ($product.allow_oosp || $product.quantity > 0)}
														{if isset($static_token)}
															<a class="exclusive ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&amp;id_product={$product.id_product|intval}&amp;token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='poscategorylist1'}" data-id-product="{$product.id_product|intval}">
																{l s='Add to cart' mod='poscategorylist1'}
															</a>
														{else}
															<a class="exclusive ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, 'add=1&amp;id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='poscategorylist1'}" data-id-product="{$product.id_product|intval}">
																{l s='Add to cart' mod='poscategorylist1'}
															</a>
														{/if}
													{else}
														<span class="exclusive ajax_add_to_cart_button btn btn-default disabled">
															{l s='Add to cart' mod='poscategorylist1'}
														</span>
													{/if}
												{/if}
												<a class="add_to_compare" 
													href="{$product.link|escape:'html':'UTF-8'}" 
													title="{l s='Add to compare' mod='poscategorylist1'}"
													data-id-product="{$product.id_product}">
													<i class="icon-signal"></i>
												</a>
												<a 	title="{l s='Add to wishlist' mod='poscategorylist1'}"
													class="addToWishlist wishlistProd_{$product.id_product|intval}"
													href="#"
													onclick="WishlistCart('wishlist_block_list', 'add', '{$product.id_product|intval}', false, 1); return false;">
													<i class="icon-heart"></i>
												</a>
										</div>
									</div>
								</div>
							{if $smarty.foreach.myLoop.iteration % 1 == 0 || $smarty.foreach.myLoop.last}
								</div>
							{/if}
						{/foreach}
					</div>
					</div>
				</div>
				<script type="text/javascript">
					$(document).ready(function() {
						var postabcateslider1 = $("#tab1_{$counts}_in");
						postabcateslider1.owlCarousel({
							items : 5,
							itemsDesktop : [1199,4],
							itemsDesktopSmall : [991,3],
							itemsTablet: [767,2],
							itemsMobile : [480,1],
							autoPlay :  false,
							stopOnHover: false,
							addClassActive: true,
						});
						$(".postabcateslider.postabcateslider1 #navi1_{$counts} .nexttab").click(function(){
							postabcateslider1.trigger('owl.next');})
						$(".postabcateslider.postabcateslider1 #navi1_{$counts} .prevtab").click(function(){
							postabcateslider1.trigger('owl.prev');})
					});
				</script>
				{$counts = $counts+1}
			{/foreach}
	</div>
</div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
		$(".postabcateslider.postabcateslider1 .navi").hide();
		$(".postabcateslider.postabcateslider1 .tab_content").hide();
		$(".postabcateslider.postabcateslider1 #navi1_0").show(); 
		$(".postabcateslider.postabcateslider1 .tab_content:first").show(); 
		$(".postabcateslider.postabcateslider1 ul.tabs1 li").click(function() {
			$(".postabcateslider.postabcateslider1 ul.tabs1 li").removeClass("active");
			$(this).addClass("active");
			$(".postabcateslider.postabcateslider1 .tab_content").hide();
			$(".postabcateslider.postabcateslider1 .navi").hide();
			var activeTab1 = $(this).attr("rel");
			var activeTab11 = $(this).attr("data-navi");
			console.log(activeTab1);
			$("#"+activeTab1).fadeIn(); 
			$("#"+activeTab11).fadeIn(); 
		});
	});
</script>

 

Thanks a lot for help.

Link to comment
Share on other sites

The logical place to ask first would be the provider of the module.

I don't see a cause at first sight. I would need FTP access to do further investigations. But that would become so time-consuming that I would need to charge you some money. You can pm me if you are interested.                                                  

Link to comment
Share on other sites

Thanks guys. Module provider is not responding, so I took it in my own hands and figured it out by myself. 

If someone has same problem - look for image src in code of .tpl file and edit it this way:

<div class="cate_image_bg"><img src={$cate_image} alt="category image" class="img-responsive"/></div>
.
.
.
<div class="cate_image_bg"><img src="https://yourshop.com/modules/modulename/img/cate_image.jpg" alt="category image" class="img-responsive"/></div>

That solved my problem. Thanks for support guys. ;-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...