Search…

X3 Photo Gallery Support Forums

Search…
 
trpgforum
Experienced
Topic Author
Posts: 133
Joined: 05 Jul 2019, 03:40

Hide the shopping cart button when no items are selected

05 Aug 2025, 05:09

Hello

I want to hide the small shopping cart button on bottom right on my redesigned website www.thomas-ruf.ch as long as it does not contain at least one item. I have tried everything using the “Automatically Show Cart” option, but I can't get it to work. 

All other settings work perfectly! 

Do you have any advice or a workaround using HTML/CSS/script?

Many thanks and best regards
THOMAS RUF PHOTOGRAPHY
Landscape - Nature - Macro
4132 Muttenz
Switzerland
www.thomas-ruf.ch
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Hide the shopping cart button when no items are selected

05 Aug 2025, 21:54

You could add this to custom CSS:
Code
.x3-cart-is-empty #button_cart {
  display: none;
}
I have tried everything using the “Automatically Show Cart” option
That option about showing the actual cart sidebar, not the button itself.
 
trpgforum
Experienced
Topic Author
Posts: 133
Joined: 05 Jul 2019, 03:40

Re: Hide the shopping cart button when no items are selected

08 Aug 2025, 01:41

That is perfect! Thank you so much!
THOMAS RUF PHOTOGRAPHY
Landscape - Nature - Macro
4132 Muttenz
Switzerland
www.thomas-ruf.ch