• Resolved smartdiyer

    (@smartdiyer)


    Hi Stratos,
    I am facing this new issue. This might have been addressed earlier. But it didn’t solve the problem. If I deactivate your plugin, it works fine. NO loops. If activated, infinite loop @ checkout.
    I found this error in php,

    (): htmlParseEntityRef: no name in Entity, line: 32 in /home/username/domains/domain.in/public_html/wp-content/plugins/wc-smart-cod/public/class-wc-smart-cod-public.php on line 268

    Can You please detect the problem?
    Specs:
    WP Version 5.7.2
    Woocommerce Version 5.4.1

    PS: I already have disabled Flat Rate when Free Shipping is available.
    I am also using Refer a Friend Plugin, disabling it doesn’t make any change. Loop exists. Caching is completely OFF on WP and Server/DNS side.

    Edit: ?wc-ajax=update_order_review Status:200

    • This topic was modified 3 years, 5 months ago by smartdiyer. Reason: Added AJAX Status
Viewing 3 replies - 1 through 3 (of 3 total)
  • SNK

    (@seannikilabs)

    Hi! not sure if it helps but have you tried

    turning off all plugins, leaving just Woo and Smart cod activated. seeing if that works.
    If it works, its a plugin error, and you will have to go through and check each one one by one.
    If its still showing, try switching to a default theme.
    give that a try, hopefully it helps

    Thread Starter smartdiyer

    (@smartdiyer)

    Hi seannikilabs, your suggestion indeed helped me.
    Thank you. I had did all kinds of troubleshooting with plugins. Didn’t expect the Theme to conflict.
    Yes. It was theme conflict. I then started to check my codes in functions.php.
    Removing all solved the issue. Started looking for the exact code causing this error.
    Finally found that. I am creating an extra message before ‘Place Order’ Button using this code hook below.

    add_action( ‘woocommerce_review_order_before_submit’, ‘woo_terms_conditions’ );
    function woo_terms_conditions() {
    echo ‘<p style=”text-align:center;color:#08445c;font-size:13px;”> By Placing Order you Accept our Terms & Conditions</p>’;
    }

    Issue solved as soon as I removed that. But I am still curious as why this code only messed with smartCOD!!. Works fine with all other payment methods.

    Thread Starter smartdiyer

    (@smartdiyer)

    Finally found the actual error causing ‘infinite loops’
    The above should like this,

    add_action( ‘woocommerce_review_order_before_submit’, ‘woo_terms_conditions’, 10 );
    function woo_terms_conditions(){
    echo ‘<p style=”text-align:center;color:#08445c;font-size:13px;”> By Placing Order you Accept our Terms and Conditions</p>’;
    }

    There is no difference except the ‘&’ character is not accepted and creates loops.

    • This reply was modified 3 years, 5 months ago by smartdiyer.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Infinite Loop @ Checkout’ is closed to new replies.