This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
How to avoid gibberish in URLs of translated pages?
Started by: jeremyL-10
in: English Support
Problem: https://www.domain-name.com.cn/%e8%b0%a2%e8%b0%a2%e6%82%a8%ef%bc%81 instead of a human-readable format, this is due to URL encoding, commonly known as percent-encoding. If this solution doesn't look relevant to your issue, please open a new support ticket and we will be happy to assist you further. |
3 | 8 | 2 months, 2 weeks ago | ||
Wordfence translated a plugin when it is not wanted
Started by: jeremyL-10 in: English Support |
2 | 7 | 3 months, 3 weeks ago | ||
Asked to "Update taxonomy hierarchy" but it is already synced!
Started by: jeremyL-10 in: English Support |
2 | 7 | 8 months, 1 week ago | ||
Split: Japanese version won't show up
Started by: jeremyL-10 in: English Support |
2 | 2 | 8 months, 3 weeks ago | ||
We display a custom notice on WooCommerce product check out pages
Started by: jeremyL-10
in: English Support
Problem: I am having an issue with translating a custom notice displayed on WooCommerce product checkout pages into other languages. I use the Woocommerce Cart Notices plugin. Solution: The plugin in question is not coded in a compatible way with WPML. Here is a workaround that is suggested by the compatibility team: - Open the wp-content\plugins\woocommerce-cart-notices\class-wc-cart-notices.php file - Replace exactly this portion of the code: // now, see if we should be showing the notice foreach ( $notice->data['category_ids'] as $category_id ) { if ( has_term( $category_id, 'product_cat', $cart_item['product_id'] ) ) { - With this: // now, see if we should be showing the notice foreach ( $notice->data['category_ids'] as $category_id ) { // WPML Workaround for compsupp-6715 if ( class_exists('Sitepress' ) ) { $category_id = apply_filters( 'wpml_object_id', $category_id, 'product_cat', TRUE ); } if ( has_term( $category_id, 'product_cat', $cart_item['product_id'] ) ) { - Open the functions.php file of your theme and add the code below there: function wpml_translate_cart_notice_categories_notice( $cart_notice, $notice, $args ) { $wpml_default_lang = apply_filters('wpml_default_language', NULL ); $wpml_current_lang = apply_filters( 'wpml_current_language', NULL ); $message = $notice->message; if ( $wpml_default_lang == $wpml_current_lang ) { // If it's default language, register the string do_action( 'wpml_register_single_string', 'woocommerce-cart-notices', 'Cart notice message - ' . substr( $message, 0, 50 ), $message ); } // Apply the translation to the string $translated_message = apply_filters( 'wpml_translate_single_string', $message, 'woocommerce-cart-notices', 'Cart notice message - ' . substr( $message, 0, 50 ) ); $cart_notice = $cart_notice = str_replace( $message, wp_kses_post( $translated_message ), $cart_notice ); return $cart_notice; } add_filter( 'woocommerce_cart_notice_categories_notice', 'wpml_translate_cart_notice_categories_notice', 10, 3 ); - Visit the checkout page containing the notice, both in English and Chinese languages in the front end. - Go to WordPress Dashboard > WPML > String Translation. - This time if you search for the text you will find it and you can translate it. |
2 | 6 |
11 months, 3 weeks ago
jeremyL-10 |
||
Gravity form translation not working
Started by: jeremyL-10 in: English Support |
2 | 4 |
1 year ago
jeremyL-10 |
||
Problem persisted: WPML tried to translate this page three times and failed. To
Started by: jeremyL-10 in: English Support |
2 | 5 | 1 year, 6 months ago | ||
Product prices in 2nd language not being updated automatically
Started by: jeremyL-10 in: English Support |
2 | 6 | 1 year, 10 months ago | ||
Menu items not displayed correctly on translated Chinese website
Started by: jeremyL-10 in: English Support |
2 | 2 | 1 year, 10 months ago | ||
batch duplicating English language product into Japanese translation
Started by: jeremyL-10 in: English Support |
2 | 2 | 1 year, 11 months ago | ||
WPML plugin cannot connect to wpml
Started by: jeremyL-10 in: English Support |
2 | 6 | 2 years, 1 month ago | ||
page not found
1
2
Started by: jeremyL-10 in: English Support |
2 | 18 | 2 years, 6 months ago | ||
A translated page couldn't be found
Started by: jeremyL-10 in: English Support |
2 | 4 | 3 years, 6 months ago |