• Resolved benbluef

    (@benbluef)


    Woo Discount Rules = 2.6.1
    Woo Discount Rules PRO 2.0 = 2.6.1
    WooCommerce = 7.7.0
    WordPress = 6.2.2

    PHP Fatal error: ?Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in \wp-content\plugins\woo-discount-rules\v2\App\Controllers\ManageDiscount.php:2037

    Stack trace:

    #0 \wp-content\plugins\woo-discount-rules\v2\App\Controllers\ManageDiscount.php(2037): round(”, 4)

    [16-Aug-2023 09:08:10 UTC] $discount_details: Array
    
    (
    
    ? ? [initial_price] =>
    
    ? ? [initial_price_with_tax] =>
    
    ? ? [discounted_price_with_tax] => 0
    
    ? ? [discounted_price] => 0
    
    ? ? [is_free_product] => 1
    
    ? ? [total_discount_details] => Array
    
    ? ? ? ? (
    
    ? ? ? ? ? ? [ae46fd0b014f5205ad06b01186abeab5] => Array
    
    ? ? ? ? ? ? ? ? (
    
    ? ? ? ? ? ? ? ? ? ? [30] => Array
    
    ? ? ? ? ? ? ? ? ? ? ? ? (
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [discount_type] => free_product
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [count_based_on] => product_cumulative
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [discount_value] => 0
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [discount_quantity] => 1
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [discount_price_per_quantity] => 0
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [discount_price] =>
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [discount_for_cart_item_keys] => Array
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [0] => 47fc570e3957a5078150824ea96416e1
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [1] => 47fc570e3957a5078150824ea96416e1
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [2] => 47fc570e3957a5078150824ea96416e1
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [3] => 47fc570e3957a5078150824ea96416e1
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [4] => 47fc570e3957a5078150824ea96416e1
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? )
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [discount_products] => Array
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [0] => 113331
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? )
    
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? [rule_id] => 30
    
    ? ? ? ? ? ? ? ? ? ? ? ? )
    
    ? ? ? ? ? ? ? ? )
    
    ? ? ? ? )
    
    )

Viewing 1 replies (of 1 total)
  • sangeethasrinivasan

    (@sangeethasrinivasan)

    Hi,

    Thank you for getting back to us and for the detailed reply.

    To have a detailed check on this, we kindly request you to open a support ticket through the following link:?https://www.flycart.org/support?and provide us with the below details:

    • When and where you’re experiencing the issue, along with screenshots or video screen cast showing the steps to reproduce the same
    • Screenshots of the discount rules you’ve set up.
    • Your website’s URL.

    This will enable us to assist you better and get back to you quickly.

    Really appreciate it.

    Thanks
    Team Flycart

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float’ is closed to new replies.