• Resolved thoongchunonn

    (@thoongchunonn)


    Hi,

    I have a website which using WordPress version 6.6.2, WooCommerce version 9.3.3 and this plugin version 2.6.6. However, there is an error occurred when an order applied a voucher which have discount value that higher than cart total.

    Below is the error log that get from server:

    [18-Oct-2024 03:28:32 UTC] PHP Fatal error:  Uncaught WC_Data_Exception: Invalid discount amount in /home/jomtanam/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:943
    Stack trace:
    #0 /home/jomtanam/public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(572): WC_Data->error('coupon_invalid_...', 'Invalid discoun...')
    #1 /home/jomtanam/public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(1189): WC_Coupon->set_amount('117.647059')
    #2 /home/jomtanam/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php(297): WC_Coupon->set_short_info(Array)
    #3 [internal function]: WC_REST_Orders_V2_Controller->get_order_item_data(Object(WC_Order_Item_Coupon))
    #4 /home/jomtanam/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php(475): array_map(Array, Array)
    #5 /home/jomtanam/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-o in /home/jomtanam/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 943

    Can you help to check on this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thoongchunonn

    (@thoongchunonn)

    FYI, the voucher was created by using Woo Discount Rule plugin.

    Plugin Support akshayathangaraj

    (@akshayathangaraj)

    Hi,

    Thank you for reaching out.

    To better assist you with your issue, could you please submit a support ticket on our website at Flycart Support? When submitting the ticket, kindly include the following details:

    1. Screenshots of the discount rules/coupon you have configured.
    2. Screenshots of the cart page indicating the issue you’re facing
    3. Your site URL.

    This information will help us investigate further and provide you with possible solutions.

    Best regards,

    Flycart support team.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.