למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
applepay & googlepay screens
נפתח על ידי: jeanneK
ב: English Support
Problem: If this solution does not resolve your issue or seems irrelevant, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at WPML support forum. |
|
1 | 8 | לפני חודש 4 | |
|
woocommerce – product options – and cart
1
2
נפתח על ידי: jeanneK
ב: English Support
Problem: add_filter( 'woocommerce_add_cart_item_data', 'my_wpo_translate_cart_meta_with_wpml', 20, 4 );<br />function my_wpo_translate_cart_meta_with_wpml( $cart_item_data, $product_id, $variation_id, $quantity ) {<br /> if ( empty( $cart_item_data['wpo_options'] ) ) {<br /> return $cart_item_data;<br /> }<br /> if ( ! class_exists( '\Barn2\Plugin\WC_Product_Options\Plugin_Factory' ) ||<br /> ! class_exists( '\Barn2\Plugin\WC_Product_Options\Integration\WPML' ) ||<br /> ! class_exists( '\Barn2\Plugin\WC_Product_Options\Model\Option' ) ) {<br /> return $cart_item_data;<br /> }<br /> $plugin = \Barn2\Plugin\WC_Product_Options\Plugin_Factory::create( '', '' );<br /> $wpml_integration = new \Barn2\Plugin\WC_Product_Options\Integration\WPML( $plugin );<br /> foreach ( $cart_item_data['wpo_options'] as $option_id => &$option_data ) {<br /> $option = \Barn2\Plugin\WC_Product_Options\Model\Option::find( $option_data['option_id'] ?? 0 );<br /> if ( ! $option ) {<br /> continue;<br /> }<br /> $translated_name = $wpml_integration->translate_string( $option->name, $option, 'option_name' );<br /> $option_data['name'] = $translated_name;<br /> if ( empty( $option_data['choice_data'] ) || empty( $option->choices ) ) {<br /> continue;<br /> }<br /> $index_by_id = [];<br /> foreach ( $option->choices as $idx => $choice ) {<br /> if ( isset( $choice['id'] ) ) {<br /> $index_by_id[ $choice['id'] ] = $idx;<br /> }<br /> }<br /> $values = is_array( $option_data['value'] ) ? $option_data['value'] : [ $option_data['value'] ];<br /> foreach ( $option_data['choice_data'] as $i => &$choice_data ) {<br /> if ( ! isset( $choice_data['label'] ) ) {<br /> continue;<br /> }<br /> if ( empty( $index_by_id ) ) {<br /> continue;<br /> }<br /> $value_for_this_choice = $values[ $i ] ?? null;<br /> if ( ! isset( $index_by_id[ $value_for_this_choice ] ) ) {<br /> continue;<br /> }<br /> $choice_index = $index_by_id[ $value_for_this_choice ];<br /> $original_label = $option->choices[ $choice_index ]['label'];<br /> $choice_data['label'] = $wpml_integration->translate_string( $original_label, $option, 'choice_label', $choice_index );<br /> }<br /> }<br /> return $cart_item_data;<br />}Please note, this workaround has limitations, such as not re-translating labels if the language is changed after products are added to the cart. For a permanent fix, we will need to contact Barn2 for an update to their integration. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum. |
|
1 | 23 | לפני חודש 4, שבוע 2 | |
|
Woocommerce Cart – with Product Options – Text cannot be located and is not translated
נפתח על ידי: jeanneK ב: Chat Support |
|
1 | 4 | לפני חודש 4, שבוע 3 | |
|
Bar2 Product Options
נפתח על ידי: jeanneK ב: English Support |
|
2 | 45 | לפני שנה 1, חודש 3 | |
|
Bar2 Product Options
נפתח על ידי: jeanneK ב: English Support |
|
0 | 2 | לפני שנה 1, חודש 4 | |
|
Split: Duplicated cart items
נפתח על ידי: jeanneK
ב: English Support
Problem: If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML support forum. |
|
0 | 2 | לפני שנה 1, חודש 4 | |
|
Split: Stock not in sync between products
נפתח על ידי: jeanneK
ב: English Support
Problem: Once the plugin is active, it should automatically synchronize stock and prices across different languages. If the stock levels still do not match, try updating the stock on the original product, as this should correct the stock levels in all languages. Additionally, check your settings under WPML > Settings > Custom Field Translation to ensure that stock synchronization is configured correctly. Also, visit WooCommerce > WooCommerce Multilingual & Multi-Currency > Support to verify there are no configuration issues. For more detailed guidance on translating WooCommerce products with WPML, please read our documentation: https://wpml.org/documentation/related-projects/woocommerce-multilingual/ If these steps do not resolve your issue, or if the solution seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at WPML support forum for further assistance. |
|
0 | 10 | לפני שנה 1, חודש 4 |