• Resolved cigno76

    (@cigno76)


    Dear Stratos Vetsos,
    the issue is with “Refer a Friend for WooCommerce” plugin.

    Their support told me that:

    Once we remove the coupon, checkout needs to recalculate, and that’s when this COD plugin gets in infinite loop.

    I really care about your nice plugin, please help me solve.

    Thanks in advance,
    Nicola

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter cigno76

    (@cigno76)

    Hi,
    any news ?
    It seems that the problem is with all plugins that update the cart on checkout

    Can you help me please?

    best regard,
    Nicola

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi there,

    Most probably it’s their fault, since you checked that breaks any cart update plugin and you should find an alternative

    Nevertheless, please paste the link of the plugin so I can double check

    Thread Starter cigno76

    (@cigno76)

    Thread Starter cigno76

    (@cigno76)

    Dear Stratos Vetsos,
    any news for your check?

    Kind regard,
    Nicola

    For some reason, the issue happens when we call

    wc_add_notice( __( ‘The coupon has been removed from your cart.’, ‘gens-raf’ ), ‘error’ );

    if we comment it out, an infinite loop is not happening.

    WC()->cart->remove_coupon( $guest_coupon_code );

    is working fine.

    WC()->cart->remove_coupon( $guest_coupon_code );
    wc_add_notice( __( ‘The coupon has been removed from your cart.’, ‘gens-raf’ ), ‘error’ );

    this one brings infinite loop.

    Thread Starter cigno76

    (@cigno76)

    I thank Goran87 for his precious clarification.
    I look forward to the double check of Stratos Vetsos

    Thanks in advance,
    Nicola

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi @cigno76 and @goran87,

    @goran87 I tested with the free version of your plugin and the removal of coupon works fine.
    Also I didn’t found the code you referred in the previous post in the free version code.
    So probably @cigno76 use your premium version and there is no way I can test this.

    @goran87 please check the network response on xhr ?wc-ajax=update_order_review and paste me the error

    • This reply was modified 4 years, 6 months ago by FullStack-ing.

    All good, I was having the wc_add_notice message outside of use/case which should fire it, and COD plugin was refreshing order status on each fire, so it went to infinite loop, strange that it was fine with other payment gateways, but all good now.

    Thread Starter cigno76

    (@cigno76)

    thank you very much

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘infinite loop on checkout page’ is closed to new replies.