Product Icon

WooCommerce 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.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.