Developer forum

Forum » Development » Hiding shopping cart

Hiding shopping cart


Reply
Is there any way to hide the shopping cart when it is empty? Or at least make the count and price tags output "0" when empty.

Replies

 
Reply
thomas@2krogh.dk wrote:

Is there any way to hide the shopping cart when it is empty? Or at least make the count and price tags output "0" when empty.

Yes - but it should be by default. So what do you experience ?


Look at www.aschehoug.dk for example


 


/Lars

 
Reply
At aschehoug.dk the cart in the top right is shown all the time, and when empty it is displaying "Varer i kurven: " - not even displaying a 0. And if there were put an "empty the cart" link there, it would return an error, unless a product was added to the cart.



I would like to hide the cart untill the very moment someone puts a product in it.
 
Reply
thomas@2krogh.dk wrote:

At aschehoug.dk the cart in the top right is shown all the time, and when empty it is displaying "Varer i kurven: " - not even displaying a 0. And if there were put an "empty the cart" link there, it would return an error, unless a product was added to the cart.







I would like to hide the cart untill the very moment someone puts a product in it.

Good point.. !!

No answer to that right now


 


/Lars

 
Reply

I lifted the HTML from aschehoug.dk:) What about this small modification:


 


 




 


The div containing the cart is default not displayed. When the value of


changes to something other than an empty string, the display style for EcomCartArea is no longer none, and the cart will be displayed.

 

You must be logged in to post in the forum