Home › Forums › WoodMart support forum › Single product layout stuck in translation WPML › Reply To: Single product layout stuck in translation WPML
November 14, 2023 at 10:51 am
#512173
Hung Pham
Keymaster
Hi raulis,
Thanks for reaching to us.
Please add below Custom Code to functions.php file in Child theme.
add_action('init', function () {
if ( ! empty( $_SERVER['REQUEST_URI'] ) && false !== strpos( $_SERVER['REQUEST_URI'], trailingslashit( rest_get_url_prefix() ) ) && function_exists( 'wc_load_cart' ) && ! function_exists( 'wc_print_notices' ) ) {
wc_load_cart();
}
}, 1000);
Regards,