Developer forum
E-mail notifications
Hiding shopping cart
Posted on 08/05/2007 08:31:18
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
Posted on 08/05/2007 18:05:49
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
Posted on 09/05/2007 12:58:19
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.
I would like to hide the cart untill the very moment someone puts a product in it.
Posted on 13/05/2007 23:23:14
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
Posted on 01/06/2007 14:12:21
I lifted the HTML from aschehoug.dk:) What about this small modification:
Varer i kurven: |
Pris: |
if ("" != ""){
document.getElementById("EcomCartArea").style.display = "";
}
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