Jump to content

Basket in header states "Basket 2 products (empty)"


Recommended Posts

Hello PrestaPeeps,

 

My Header Nav Element, Basket, shows text "Basket 2 products (empty)". It does this not at the product page when you add the products (it works fine then) but after you navgate to a new page. The basket and shopping cart works fine otherwise.

 

Does any one know how to fix that?

 

Firebug says the problem "empty" text is" (last line of code below):

<div id="header_user">
<ul id="header_nav">
<li id="shopping_cart">
<a rel="nofollow" title="View my shopping cart" href="https://mystore.co.uk/order" style="border-radius: 3px;">
Basket
<span class="ajax_cart_quantity">2</span>
<span class="ajax_cart_product_txt hidden">Product</span>
<span class="ajax_cart_product_txt_s">Products</span>
<span class="ajax_cart_total"> £ 39.90 </span>
<span class="ajax_cart_no_product hidden">(empty)</span>
Edited by me2013 (see edit history)
Link to comment
Share on other sites

Ok in themes/mytheme/modules/blockcart/blockcart.tpl, I see a few mentions of the code from above:

line 68

<span class="ajax_cart_no_product" {if $cart_qties != 0}style="display:none"{/if}>{l s='(empty)' mod='blockcart'}</span>

and line 118

<p {if $products}class="hidden"{/if} id="cart_block_no_products">{l s='No products' mod='blockcart'}</p>

Maybe this is javascript related, does any of the above spread some light on the situation?

Link to comment
Share on other sites

×
×
  • Create New...