Iām working on a prototype of a website to purchase tickets for events, and I have the checkout process set up like this:
Go to āScheduleā,
Select the show (in this case, the show for āMello Quakeā),
Select āAdd To Cartā, which redirects you to your cart.
Note: When adding to cart, this toggles a āCartā variable to be set to āTrueā, which will change the āAdd to Cartā button to a variant that reads āView in Cartā. Both buttons have an animated hover state.
From there, you are able to empty the cart by making the counter in the cart go to ā0ā. A pop up will appear as a warning, letting you know that this will empty the cart, and ask the user if thatās what they want to do.
Ā
When testing this, I have been hitting āYesā to empty the cart. Doing this will set the āCartā variable to āFalseā. Ideally, when the āCartā variable is set back to false, the button on the show page will change back to the āAdd to Cartā variant. While it does do this, it defaults to theĀ hoverĀ variant of the button, instead of the non-hover variant. Iām sure thereās some dumb syntax error Iāve done somewhere but I canāt seem to find it. Please help!
Hereās a link to the project file.
Ā
Thanks in advance!
