Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Docs: CartComponent #3

Closed
Markus-MfN opened this issue Mar 9, 2018 · 3 comments
Closed

Docs: CartComponent #3

Markus-MfN opened this issue Mar 9, 2018 · 3 comments
Assignees
Labels

Comments

@Markus-MfN
Copy link

Related page: CartComponent

I'm not familiar with Angular Templates. I would like to show the cart beneath the TicketComponent on the same page. How would a template for the CartComponent look like where the cart is only displayed if it is not empty? And how can I display a message like "your cart is empty" if the cart is empty and dislplay the cart if it is not? Thank you.

@douglasward
Copy link
Contributor

Hi Markus, currently this it is not possible to hide the cart when it is empty, as normally it has it's own page. But it sounds as though we could simply solve this with css.

If I added some helper classes to the go-cart element, to indicate whether the cart is empty your contains items, would you be able to use this to hide the cart and display your "empty" message? Or would it be more useful on the body element?

@Markus-MfN
Copy link
Author

Douglas, thanks for your answer. Since what I'm working on is only a test page to show the basic functions, it is not necessary to show the cart is empty message. I was just curious how this would work for future implementation. Our UX experts will decide how it will look like in the end.

@douglasward douglasward self-assigned this Mar 19, 2018
@douglasward
Copy link
Contributor

Okay, great. Let me know if any extension is needed to be done on our side. Will close this for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants