Woocommerce and different checkout field for different countries

I am considering to migrate from Magento to Woocommerce. My main site is for Japan, and the other is in English. I read you can go for either WPML or multisite. I understood WPML can handle multi language and multi currency. But how about different checkout form for different countries? I have now Woo Checkout … Read more

Cannot use object of type WP_Error as array

Using a WordPress Plugin WPML I have been getting this error on saving a draft post: PHP Fatal error: Cannot use object of type WP_Error as array in /home/user/domain.com/wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-term-translations.class.php on line 1018 On that line I have $new_term = wp_insert_term( $term_name, $taxonomy, array( ‘slug’ => self::term_unique_slug( sanitize_title( $term_name ), $taxonomy, $post_lang ) ) ); if … Read more

WordPress multilingual site using page-id.php files

I’m building a WordPress site which I hope to offer in three languages namely: English Spanish French In the past I’ve always built out my sites by creating the pages via the backend, recording the ids for each page and creating php files with the following naming convention: page-123.php and including get_header() and get_footer. This … Read more

Created pages not showing up in ‘All Pages’ list

Due to some custom software integration, I have my theme generate some pages automatically with set templates in order to achieve the required functionalities. I do so with the following script: (page names are fictitious but realistic) function xc_add_custom_pages() { // Get pages list, function below $pageList = xc_get_custom_page_list(); foreach ($pageList as $customPage) { // … Read more

Why isn’t WMPL correctly redirecting users based on browser language? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question Even though I … Read more