Order complete page not working

[ad_1]

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);

Thanks a lot, that solved the problem!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer