vyskoczilova / woocommerce-payforpayment

WordPress plugin WooCommerce Pay for Payment
13 stars 11 forks source link

PHP warning when coupon applied + percentage fee #30

Closed calvintam236 closed 3 years ago

calvintam236 commented 7 years ago
( ! ) Warning: A non-numeric value encountered in /home/calvin/www/fillup.space/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay.php on line 138
--

1 | 0.0000 | 363112 | {main}( ) | .../index.php:0
2 | 0.0001 | 363400 | require( '/home/calvin/www/fillup.space/wp-blog-header.php' ) | .../index.php:17
3 | 0.0349 | 5326384 | require_once( '/home/calvin/www/fillup.space/wp-includes/template-loader.php' ) | .../wp-blog-header.php:19
4 | 0.0399 | 5626944 | include( '/home/calvin/www/fillup.space/wp-content/themes/storefront/page.php' ) | .../template-loader.php:74
5 | 0.0610 | 6033656 | get_template_part( ) | .../page.php:22
6 | 0.0610 | 6034176 | locate_template( ) | .../general-template.php:167
7 | 0.0610 | 6034288 | load_template( ) | .../template.php:647
8 | 0.0610 | 6034560 | require( '/home/calvin/www/fillup.space/wp-content/themes/storefront/content-page.php' ) | .../template.php:690
9 | 0.0612 | 6035312 | do_action( ) | .../content-page.php:18
10 | 0.0612 | 6035688 | WP_Hook->do_action( ) | .../plugin.php:453
11 | 0.0612 | 6035688 | WP_Hook->apply_filters( ) | .../class-wp-hook.php:323
12 | 0.0612 | 6036792 | storefront_page_content( ) | .../class-wp-hook.php:298
13 | 0.0612 | 6036792 | the_content( ) | .../storefront-template-functions.php:339
14 | 0.0613 | 6036864 | apply_filters( ) | .../post-template.php:240
15 | 0.0613 | 6037264 | WP_Hook->apply_filters( ) | .../plugin.php:203
16 | 0.0620 | 6039384 | do_shortcode( ) | .../class-wp-hook.php:298
17 | 0.0620 | 6042368 | preg_replace_callback ( ) | .../shortcodes.php:223
18 | 0.0620 | 6043000 | do_shortcode_tag( ) | .../shortcodes.php:223
19 | 0.0621 | 6043000 | WC_Shortcodes::checkout( ) | .../shortcodes.php:345
20 | 0.0621 | 6043000 | WC_Shortcodes::shortcode_wrapper( ) | .../class-wc-shortcodes.php:99
21 | 0.0621 | 6059784 | WC_Shortcode_Checkout::output( ) | .../class-wc-shortcodes.php:76
22 | 0.0621 | 6059784 | WC_Shortcode_Checkout::checkout( ) | .../class-wc-shortcode-checkout.php:68
23 | 0.0639 | 6078744 | WC_Cart->calculate_totals( ) | .../class-wc-shortcode-checkout.php:225
24 | 0.0640 | 6078688 | WC_Cart_Totals->__construct( ) | .../class-wc-cart.php:1248
25 | 0.0640 | 6078688 | WC_Cart_Totals->calculate( ) | .../class-wc-cart-totals.php:127
26 | 0.0683 | 6103744 | WC_Cart_Totals->calculate_fee_totals( ) | .../class-wc-cart-totals.php:138
27 | 0.0683 | 6103744 | WC_Cart_Totals->get_fees_from_cart( ) | .../class-wc-cart-totals.php:787
28 | 0.0683 | 6103744 | WC_Cart->calculate_fees( ) | .../class-wc-cart-totals.php:273
29 | 0.0683 | 6103744 | do_action( ) | .../class-wc-cart.php:1715
30 | 0.0683 | 6104120 | WP_Hook->do_action( ) | .../plugin.php:453
31 | 0.0683 | 6104120 | WP_Hook->apply_filters( ) | .../class-wp-hook.php:323
32 | 0.0684 | 6105248 | Pay4Pay->add_pay4payment( ) | .../class-wp-hook.php:298
33 | 0.0684 | 6105248 | Pay4Pay->calculate_pay4payment( ) | .../class-pay4pay.php:82
calvintam236 commented 6 years ago

@vyskoczilova Can you confirm this bug?

vyskoczilova commented 6 years ago

@calvintam236 I have to test it first and I haven't had time to do it right now (too busy with my customers) if you'll fix it feel free to create a pull request. Thanks for understanding.

stale[bot] commented 5 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

vyskoczilova commented 5 years ago

Hey bot, I know about the issue, I will have a look on it later.

stale[bot] commented 5 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

vyskoczilova commented 5 years ago

Hey bot, I know about the issue, I will have a look on it later.

stale[bot] commented 5 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

vyskoczilova commented 5 years ago

Hey bot, I know about the issue, I will have a look on it later.

stale[bot] commented 5 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

vyskoczilova commented 5 years ago

Hey bot, I know about the issue, I will have a look on it later.

stale[bot] commented 4 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

vyskoczilova commented 4 years ago

Hey bot, I know about the issue, I will have a look on it later.

stale[bot] commented 4 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

vyskoczilova commented 4 years ago

Hey bot, I know about the issue, I will have a look on it later.

stale[bot] commented 4 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

vyskoczilova commented 4 years ago

Hey bot, I know about the issue, I will have a look on it later.

stale[bot] commented 4 years ago

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)