Navagon: So what happens if you empty your cart?
If I reload the page, the "0" flags are hidden again, if no flags are visible, I can't get them to display (because they're only displayed once I show and dismiss the list for the messages/cart - that is, the list that's displayed when clicking the flag, not the page displayed when clicking "check out now" or the name of whoever sent me a message).
If the cart is empty, I have no messages, and no replies: Nothing is displayed.
If the cart is empty, I have at least one new message, but no replies: at page load, the "my message" flag is shown, after showing and dismissing the list, "my messages" and "forum replies" are shown.
If I have something in the cart: at load the "my cart" flag is shown (as well as any other flags with a count above 0), when showing and dismissing the cart list, all flags are shown (including 0-count).
Removing all items in the cart (through the list) only removes the cart flag, the other flags are still there (even 0-count).