Jump to content

Cart says (empty) when there are products in it


Recommended Posts

My url is discountwallcovering.com

I'm using 1.5.6.0 with a modified default theme.

Here's my problem:

 

 

 

When the cart is empty is says:      Cart 0 Product Products (empty)

 

 

 

If you add a product is says:           Cart 1 Product

 

 

 

But then if you go to another page is says:  Cart 1 Product Products (empty)

 

 

 

And when you hover it shows the product but under it it says "No Products".

 

I have no idea what is causing this.  I've cleared browser cache and cookies,  cleared the shop cache, tried different browsers and pc's and the problem persists.  Can anyone advise me on how to fix this?  Any help would be greatly appreciated.  Thanks. 

 

Link to comment
Share on other sites

Had a quick look. The problem is as Nemo1 described; A missing hidden class in your css file.

 

Open global.css inside /themes/coolpapes/css/global.css

 

and add this at around line 589:

#header_user .hidden {display:none}

(It doesn't really matter on what line you put it, but 589 will keep it somewhat organized)

Edited by Carlsen (see edit history)
  • Like 1
Link to comment
Share on other sites

After server reboot we faced the same problem.  Cart content dissapears after any page refresh. .htaccess, cleared smarte and PS page cache, PC cache, fresh Blockcart module and blockcart.tpl , problem persist. Checked with Firefox, IE, Chrome. On the forum I found remark this should be cookie issue.

 

Any help is appreciated,

 

Peter

www.derks-wielersport.nl

Link to comment
Share on other sites

The tpl file is broken, the second part should be hidden with display:none, or have the .hidden class under certain conditions. Have you edited blockcart.tpl?

 

Can you also check that you have the .hidden class in your css?

I haven't edited blockcart.tpl, and I have the .hidden class on line 76 of global.css: .hidden {display:none}.

 

After server reboot we faced the same problem.  Cart content dissapears after any page refresh. .htaccess, cleared smarte and PS page cache, PC cache, fresh Blockcart module and blockcart.tpl , problem persist. Checked with Firefox, IE, Chrome. On the forum I found remark this should be cookie issue.

 

This is interesting as we had a server issue last week which is when this started.  I cleared everything including cookies and tried it on multiple PCs with the same result.

Link to comment
Share on other sites

Hi coolpapes,

 

I am quite sure that the issue peter is referring to, is that the cart is being emptied. At your site this does not seem to happen, it's only a visual error, not affecting the actual cart contents.

 

 

It's correct that your hidden class is present in your global.css file.
However it still doesn't seem to apply itself properly.

Try going to global.css, and remove the } at line 75:

}
#free-shipping {
    position: absolute;
    margin: 110px 0 0 390px;
    
    }

}

In the above code, it is the last }

 

 

EDIT: Peter, I cannot recreate the issue on your website. Try yourself in a browser that has no old cookies/cache. If the problem persists, try creating a new topic about the issue.

Edited by Carlsen (see edit history)
  • Like 1
Link to comment
Share on other sites

Hi coolpapes,

 

I am quite sure that the issue peter is referring to, is that the cart is being emptied. At your site this does not seem to happen, it's only a visual error, not affecting the actual cart contents.

 

 

It's correct that your hidden class is present in your global.css file.

However it still doesn't seem to apply itself properly.

Try going to global.css, and remove the } at line 75:

}
#free-shipping {
    position: absolute;
    margin: 110px 0 0 390px;
    
    }

}

In the above code, it is the last }

 

 

EDIT: Peter, I cannot recreate the issue on your website. Try yourself in a browser that has no old cookies/cache. If the problem persists, try creating a new topic about the issue.

It was that extra curly bracket at the end of the #free_shipping id.  I can't believe I missed that.  Thank you Carlsen!

Link to comment
Share on other sites

×
×
  • Create New...