В настройках нужно включить показ всплывающего окна.
В файле /themes/leoelec/js/modules/blockcart/ajax-cart.js должно определться окно при клике на кнопку с классом ajax_add_to_cart_button.Вы в шаблоне классы не меняли?
Цитата: Mr.Sen от 02 Ноябрь 2015, 16:07:46В файле /themes/leoelec/js/modules/blockcart/ajax-cart.js должно определться окно при клике на кнопку с классом ajax_add_to_cart_button.Вы в шаблоне классы не меняли?неа не менял но сейчас посмотрю на всякий случай.
Проблема не в этом файле, в ваших шаблонах tpl. У вас нет блока layer_cart, который показывает всплывающее окно. Проверьте шаблон корзины blockcart.tpl.
<div id="layer_cart"> <div class="clearfix"> <div class="layer_cart_product col-xs-12 col-md-6"> <span class="cross" title="{l s='Close window' mod='blockcart'}"></span> <h2> <i class="icon-ok"></i>{l s='Product successfully added to your shopping cart' mod='blockcart'} </h2> <div class="product-image-container layer_cart_img"> </div> <div class="layer_cart_product_info"> <span id="layer_cart_product_title" class="product-name"></span> <span id="layer_cart_product_attributes"></span> <div> <strong class="dark">{l s='Quantity' mod='blockcart'}</strong> <span id="layer_cart_product_quantity"></span> </div> <div> <strong class="dark">{l s='Total' mod='blockcart'}</strong> <span id="layer_cart_product_price"></span> </div> </div> </div> <div class="layer_cart_cart col-xs-12 col-md-6"> <h2> <!-- Plural Case [both cases are needed because page may be updated in Javascript] --> <span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}"> {l s='There are [1]%d[/1] items in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']} </span> <!-- Singular Case [both cases are needed because page may be updated in Javascript] --> <span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}"> {l s='There is 1 item in your cart.' mod='blockcart'} </span> </h2> <div class="layer_cart_row"> <strong class="dark"> {l s='Total products' mod='blockcart'} {if $priceDisplay == 1} {l s='(tax excl.)' mod='blockcart'} {else} {l s='(tax incl.)' mod='blockcart'} {/if} </strong> <span class="ajax_block_products_total"> {if $cart_qties > 0} {convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)} {/if} </span> </div> {if $show_wrapping} <div class="layer_cart_row"> <strong class="dark"> {l s='Wrapping' mod='blockcart'} {if $priceDisplay == 1} {l s='(tax excl.)' mod='blockcart'} {else} {l s='(tax incl.)' mod='blockcart'} {/if} </strong> <span class="price cart_block_wrapping_cost"> {if $priceDisplay == 1} {convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)} {else} {convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)} {/if} </span> </div> {/if} <div class="layer_cart_row"> <strong class="dark"> {l s='Total shipping' mod='blockcart'} {l s='(tax excl.)' mod='blockcart'} </strong> <span class="ajax_cart_shipping_cost"> {if $shipping_cost_float == 0} {l s='Free shipping!' mod='blockcart'} {else} {$shipping_cost} {/if} </span> </div> {if $show_tax && isset($tax_cost)} <div class="layer_cart_row"> <strong class="dark">{l s='Tax' mod='blockcart'}</strong> <span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span> </div> {/if} <div class="layer_cart_row"> <strong class="dark"> {l s='Total' mod='blockcart'} {if $priceDisplay == 1} {l s='(tax excl.)' mod='blockcart'} {else} {l s='(tax incl.)' mod='blockcart'} {/if} </strong> <span class="ajax_block_cart_total"> {if $cart_qties > 0} {if $priceDisplay == 1} {convertPrice price=$cart->getOrderTotal(false)} {else} {convertPrice price=$cart->getOrderTotal(true)} {/if} {/if} </span> </div>
На вашем сайте на первой странице нет этого кода. Окройте код страницы и проверьте.У вас не подключются файлы блока карзины.Сравнивайте с оригинальным шаблоном и ищите что вы удалили или изменили при правки шаблонов темы.
Тем не менее этого блока нет в коде страницы. Нужно искать причину.
Цитата: DarinSr от 02 Ноябрь 2015, 16:28:35Тем не менее этого блока нет в коде страницы. Нужно искать причину.буду искать
Стандарный модуль blockcart бесплатный. В нем есть такая функция.