Flash sale: Get up to 30% off themes and extensions. Ends April 26 at 3 pm UTC. Shop the sale.
Product Icon

Woo Subscriptions

Let customers subscribe to your products or services and pay on a weekly, monthly or annual basis.

DivideByZero in class-wcs-admin-meta-boxes

Hi,

I found an issue when saving a subscription which is caused by $current_base_location_taxes or $old_line_subtotal being set to 0 in class-wcs-admin-meta-boxes: line 572.

I wondered if it would be possible to include a check and continue if either of these variables are 0 to avoid the DivideByZero issue?

Please let me know if you would like any further details.
Thanks,
Scott

Screenshots

Author

skotwilliams

Current Status

Open

Last updated: March 15, 2024

0 comments

Log in to comment on this feature request.