Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Помогите разобраться с кодом


 Share

Recommended Posts

Стоит задача сделать в шапке сайта вот такую штуку

img1.JPG.930ff8ea1fa74641083e16bae8e87aa0.JPG

Сделали, но вот при добавлении в список сравнения или список желания - вся картинка портится 

img2.JPG.3f9ff39ac251c85f9ef33abd055a59cf.JPG

То есть картинка пропадает, а число остается. При обновлении страницы, картинка подгружается и все выглядит снова хорошо. 

img3.JPG.03a2abcb6e80cdb2cbbd37ef5aa5cf1f.JPG

 

Код такой:

<div class="new-compare">
	<div class="hidden-xs hidden-sm shopping_cart pull-right">
		<div class="shop_compare">
			<a href="<?php echo $compare; ?>" id="compare-total" title="<?php echo $text_compare; ?>"><img src="/image/catalog/system/libra-balanced.png"><p class="title">Сравнить</p><span class="text-shopping-cart cart-total-full"><?php echo $text_compare; ?></span></a>
		</div>
	</div>
</div>
						
<div class="new-wishlist">
	<div class="hidden-xs hidden-sm shopping_cart pull-right">
		<div class="shop_wishlist">	
			<a href="<?php echo $wishlist; ?>" id="wishlist-total" class="top-link-t top-link-wishlist" title="<?php echo $text_wishlist; ?>"><span><img src="/image/catalog/system/heart-cart.png"><p class="title">Желания</p><span class="text-shopping-cart cart-total-full"><?php echo $text_wishlist; ?></span></span></a>
		</div>	
	</div>
</div>
					
					<?php //HEADER CART ?>
					<div class="header-cart">
						<div class="shopping_cart pull-right">
						   <?php echo $cart; ?>
					    </div>
					</div>	

 Подскажите, где в чем моя ошибка? 

Спасибо.

 

Link to comment
Share on other sites


Смотрите в сторону js (common.js и product.tpl|twig).

Посмотрите внимательно как обрабатывается ...on('click'... и что там содержится, сравните с тем, что есть у вас, внесите соответсвующие правки.

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
 Share

×
×
  • Create New...

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.