Stripe Tax Banner | Q4 2024

added by Colleen Harrison - Partner Marketing

Product Icon

WooCommerce Subscriptions

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

Warning: Division by zero

vendor/woocommerce/subscriptions-core/includes/class-wc-subscription.php line 2266:
$signup_fee_portion = $sign_up_fee / $line_item_total;

When $line_item_total is zero we get a warning on order-received.
This can easily be solved this way:
if($line_item_total > 0){
$signup_fee_portion = $sign_up_fee / $line_item_total;
} else {
$signup_fee_portion = 0;
}

Author

Heine Lund Thunbo

Current Status

Open

Last updated: May 15, 2023

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.