Compatibility with XStore Theme from 8theme.
Fixed a variable name in the gift card email template that may cause the Amount to be blank in the email.
Throw an exception if a gift card could not be created when attempting to add it to the order. Prevent a possible PHP error if calling cart_contains_gift_card before the WooCommerce Cart object exists. Confirmed compatibility with WooCommerce 7.3