Home Forums WoodMart support forum Issue found with checout / cart links with WPML Reply To: Issue found with checout / cart links with WPML

#146609

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