• Resolved reivorz

    (@reivorz)


    Hi there.

    I came across an issue in the checkout process of my website. When successfully paying for an order, the Order complete page is not loading, and instead a blank Checkout details page is loaded. If making the payment using checks ( in Sandbox mode ), it goes back to an empty Shopping Cart page with the message: Checkout is not available whilst your cart is empty.

    In both cases orders are processed, but the user should get to a page like this when it is done:

    I have been running a plugin compatibility check and this is only happening with Permalink Manager activated. Is there anything I can change in the settings to avoid it? Screenshots below:

    General SettingsRedirect Third partyAdvanced Permastructures

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @reivorz,

    As far as I can see, the problem is caused by the mismatch between the original endpoint name (‘order-received’) and its translated version (‘pedido-recibido’).

    Could you try to add the below snippet to functions.php file in your child theme directory to see if the issue still persists?

    function pm_unhook_translate_endpoint_function() {
    	global $permalink_manager;
    
    	if(!empty($permalink_manager) && property_exists($permalink_manager, 'functions')) {
    		remove_filter('request', array($permalink_manager->functions['language-plugins'], 'wpml_translate_wc_endpoints'), 99999);
    	}
    }
    add_action('init', 'pm_unhook_translate_endpoint_function', 100);
    Thread Starter reivorz

    (@reivorz)

    Thanks a lot, that solved the problem!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order complete page not working’ is closed to new replies.