Home › Forums › Basel support forum › (urgent) Language switch to default EN in checkout page › Reply To: (urgent) Language switch to default EN in checkout page
October 15, 2019 at 8:43 am
#150120
Eric Watson
Participant
Hello,
Try to edit the file wp-content/plugins/woocommerce-multilingual/inc/class-wcml-store-pages.php
and replace this code
if (
! $is_admin ||
( 'admin.php' === $pagenow && isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] )
) {
// Translate shop page ids
$this->add_filter_to_get_shop_translated_page_id();
}
with this one
if (
! $is_admin || ( isset( $_POST['action'] ) && $_POST['action'] === 'woodmart_ajax_add_to_cart' ) || ( 'admin.php' === $pagenow && isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] )
) {
// Translate shop page ids
$this->add_filter_to_get_shop_translated_page_id();
}
as shown in the screenshot http://prntscr.com/pauyvg
Kind Regards
XTemos Studio