• Resolved Mohammad Mahdi Kabir

    (@kobi1)


    I think you should remove calculate_totals() method from inside recalculate_coupons() method.

    Probably recalculate_coupons() method has needed to use in this actions:

    'woocommerce_order_before_calculate_totals'
    'woocommerce_order_after_calculate_totals'

    But it gives infinite loop error!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Saif

    (@babylon1999)

    Hello @kobi1,

    Thank you for the input and suggestions we appreciate any effort in enhancing WooCommerce. 😃

    However, the forums might not be the most suitable place for discussing code changes. If you have any development-related feedback, feel free to submit a new “issue report” on GitHub as an enhancement request.

    Enhancement requests usually work on a voting system but in this case, the process might be different. I recommend posting your suggestion and waiting for the developers’ feedback.

    Cheers!

    Thread Starter Mohammad Mahdi Kabir

    (@kobi1)

    Hi @babylon1999

    Thank you for your response. I have submitted in:

    https://github.com/woocommerce/woocommerce/issues/38509

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug in recalculate_coupons() method’ is closed to new replies.