On our checkout page, we provide an option to add an additional donation amount to your order. We provide both a suggested amount (based on the total value of your gifts - eg a round-up your order option) or an other amount that allows the customer to input he/r own amount. I am having some issues:
But is there one for when the email changes?
FC.client.on("customer-email-update", setDonation); is not working for this.
2. If the user does add an additional donation to their order, the gift of that amount is added to the cart, however for some reason, the custom css is being lost. For example, we hide some of the item details on mobile unless "view gift details" is clicked. This "view gift details" link should be hidden on desktop, and it is on initial load of the checkout, but if the donation is added to the cart, then all the items have their "view gift details" link revealed and it appears that the issue is the css is not being applied, how do I fix this? This also happens when an item is removed from the cart on the checkout page, what do I do to make sure the js and css are called again to fix the display?
Thanks in advance for any suggestions.