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

Sasha22

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

1 Follower

Sasha22's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Добрый день. Столкнулся с проблемой: при установке шаблона Yoolight_ocstore на OcStore v1.0.1 пропадает оповещение о переносе товара в корзину. Товар переноситься в корзину, но оповещения "Товар Х добавлен в корзину" не всплывает. Решил бороться добавлением модуля Модуль Add To Cart Confirm Ajax Popup (Ссылка). Но не могу решить проблему так как кода указанного в инструкции в файле catalog\view\theme\ВАШ_ШАБЛОН\template\product\product.tpl нет. Если у кого-то есть возможность, пожалуйста, помогите. Могу выслать все необходимые файлы. <script type="text/javascript"><!-- $('#button-cart').bind('click', function() { $.ajax({ url: 'index.php?route=checkout/cart/update', 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']['warning']) { $('#menu').after('<div class="warning" style="display: none;">' + json['error']['warning'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>'); $('.warning').fadeIn('slow'); } for (i in json['error']) { $('#option-' + i).after('<span class="error">' + json['error'] + '</span>'); } } if (json['success']) { $('#menu').after('<div class="attention" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>'); $('.attention').fadeIn('slow'); $('#cart_total').html(json['total']); var image = $('#image').offset(); var cart = $('#cart').offset(); $('#image').before('<img src="' + $('#image').attr('src') + '" id="temp" style="position: absolute; top: ' + image.top + 'px; left: ' + image.left + 'px;" />'); params = { top : cart.top + 'px', left : cart.left + 'px', opacity : 0.0, width : $('#cart').width(), height : $('#cart').height() }; $('#temp').animate(params, 'slow', false, function () { $('#temp').remove(); }); } } }); }); //--></script> установка Add to card.txt
Guest
×
  • 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.