Jump to content

[solved] Blockcart displays (empty) when cart is not empty


Smijn1

Recommended Posts

Hi,

 

I'm using prestashop 1.5.4.1 and a custom theme from leotheme (leotracy).

 

The cart block displays (empty) when empty, but it doesn't disappear when somethings in the cart. The amount of products in the cart + order total is displayed and (empty) is still being displayed underneath.. so I need (empty) to be only displayed when cart is actually empty, can anyone help me with this?

 

I think this is the piece of code in blockcart.tpl that should be changed:

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

please click here to view the live site (it says "(leeg)", which is dutch for empty)

 

thanks!

 

Edited by Smijn1 (see edit history)
Link to comment
Share on other sites

create somewhere in your css styles file

 

.hidden {

display:none!important;

}

 

and recompile theme (you've got option to minify CSS fies turned ON)

 

No, unfortunately this also takes away the 'leeg' when it should be there, (when the cart is empty), as the display: block; in .ajax_cart_no_product (in file: /themes/leotrac/css/modules/blockuserinfo/blockuserinfo.css ) is then 'neglected'.

 

 

 

What you can try is this:

 

Edit file: /presta/themes/leotrac/css/global.css (line 92)

.hidden {

display: none;                              <-- take out

text-indent: -9999px;                  <-- add

}

 

This moves the text off the screen when it should be hidden.

 

Check if this has some consequences somewhere else, but I think this does the trick.

pascal

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...