هذا المستخدم ليس لديه مواضيع مفضلة.
مواضيع المنتدى المفضلة
تم إنشاء مواضيع المنتدى
الحالة |
عنوان
|
مؤيد، مشجع، داعم | أصوات | المقالات | نضارة |
---|---|---|---|---|---|
Cron Job – translated products displaying as not having attributes
بدأ ب: dimitrisD-7
في: English Support
Problem: add_action('wssupp_custom_cron_job', 'wssupp_custom_task_function');<br />function wssupp_custom_task_function() {<br /><br /> // update the product attributes of a specific product as a demo<br /> $product_id = 21;<br /> $attribute = 'pa_color';<br /> $term_slug = 'yellow';<br /><br /> $original_term = get_term_by( 'slug', $term_slug, $attribute );<br /> $default_language = apply_filters( 'wpml_default_language', NULL );<br /><br /> // Step 1. Programmatically set product attribute for sample default-language post<br /> wp_set_object_terms( $product_id, $term_slug, $attribute );<br /><br /> // Step 2. Get the translations of the product to other languages<br /> $product_trid = apply_filters( 'wpml_element_trid', NULL, $product_id, 'post_product' );<br /> $product_translations = apply_filters( 'wpml_get_element_translations', NULL, $product_trid, 'post_product' );<br /><br /> // Step 3. Get the term translations<br /> $term_trid = apply_filters( 'wpml_element_trid', NULL, $original_term->term_id, 'tax_'.$attribute );<br /> $term_translations = apply_filters( 'wpml_get_element_translations', NULL, $term_trid, 'tax_'.$attribute );<br /><br /> // Step 4. Iterate over the product translations and update product attribute for each<br /> foreach ($product_translations as $lang => $product_translation) {<br /><br /> if ( $lang == $default_language ) {<br /> continue; // skip default language<br /> }<br /><br /> wp_set_object_terms( $product_translation->element_id, $term_translations[$lang]->term_id, $attribute );<br /> }<br />}<br /> For further details, refer to our WPML Hooks Reference. You should adjust the code to your needs. If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if needed. |
|
2 | 14 | قبل 8 أشهر، 3 أسابيع | |
Update Product Results in 502 Error
بدأ ب: dimitrisD-7
في: English Support
Problem: If the solution provided here is not relevant to your case, either because it's outdated or it doesn't apply to your situation, we suggest opening a new support ticket. We also highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us through the WPML support forum. |
|
2 | 14 | قبل 11 شهر، 1 أسبوع | |
TablePress plugin translation
بدأ ب: dimitrisD-7 في: English Support |
|
3 | 13 | قبل 12 شهر | |
Issue with Custom Product Tabs for WooCommerce
بدأ ب: dimitrisD-7 في: English Support |
|
2 | 2 | قبل 1 سنة، 1 شهر | |
Issue with product attributes and custom tabs
بدأ ب: dimitrisD-7
في: English Support
Problem: Solution: If this solution doesn't look relevant to your issue, please open a new support ticket with us. |
|
2 | 7 | قبل 1 سنة، 1 شهر | |
WPML chat support ticket by dimitrisD-7 – 1706257580
بدأ ب: dimitrisD-7 في: English Support |
1 | 1 |
قبل 1 سنة، 1 شهر
|
||
Missing save button at product translation
بدأ ب: dimitrisD-7
في: English Support
Problem: Solution: If this solution doesn't look relevant, please open a new support ticket. |
|
2 | 4 | قبل 1 سنة، شهرين | |
Logo translation (Astra Theme)
بدأ ب: dimitrisD-7 في: English Support |
|
2 | 12 | قبل سنتين، 1 شهر | |
Translation Management Pagination
بدأ ب: dimitrisD-7 في: English Support |
|
2 | 2 | قبل سنتين، 3 أشهر | |
WPML hooks
بدأ ب: dimitrisD-7 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات، 9 أشهر
|
|
Product Likes not working in translations
بدأ ب: dimitrisD-7 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات، 9 أشهر
|
|
PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object
بدأ ب: dimitrisD-7 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات، 9 أشهر
|
|
Translating custom fields
بدأ ب: dimitrisD-7 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات، 9 أشهر
|
|
Translate texts in admin screens
بدأ ب: dimitrisD-7 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات، 9 أشهر
|
|
Product vars
بدأ ب: dimitrisD-7 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات، 9 أشهر
|