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
Added a checkbox to the Create Gift Cards admin area to optionally reset the form after the gift cards have been created. Only load Pikaday and Moment.js on the gift card product page to improve page speed.