Woo commerce using add_fee to add discount to cart not saving discount amount the admin backend when guest user is shopping

Woo commerce using add_fee to add discount to cart not saving discount amount the admin backend when guest user is shopping