Written by Chris Klosowski. Last updated on June 28, 2023. Added support for quantities introduced in EDD v1.7.