This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Duplicated product to another language
Started by: Bahij
in: English Support
Problem: global $wpdb;<br />$table_name = $wpdb->prefix . 'icl_translations';<br />$product_ids = $wpdb->get_col("SELECT element_id FROM $table_name WHERE element_type = 'post_product'");<br />foreach ($product_ids as $product_id) {<br /> do_action('wpml_make_post_duplicates', $product_id);<br /> do_action('wpml_set_element_translation', 'post_product', $product_id, [<br /> apply_filters('wpml_default_language', NULL) => $product_id,<br /> apply_filters('wpml_secondary_language', NULL) => $product_id,<br /> ]);<br />} This code should be triggered with a CTA for test purposes. If this solution does not apply to your case, or if it seems outdated, 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 further assistance is needed, please open a new support ticket at WPML support forum. |
2 | 3 | 3 months, 2 weeks ago | ||
YITH Store Locator Duplicate content/locations
Started by: Bahij in: English Support |
2 | 6 | 6 months, 2 weeks ago | ||
URL Translation | Multisite Subfolder
Started by: Bahij in: English Support |
2 | 4 | 4 years, 1 month ago |