Este usuário não tem tópicos favoritos.
Tópicos de Fórum Favoritos
Tópicos do fórum criados
Status |
Tópico
|
Supporter | Vozes | Posts | Tempo |
---|---|---|---|---|---|
I have an issue regarding translating some strings
Iniciado por: John
em: English Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 1 ano, 8 mes atrás | ||
issue with wpml and product attributes
1
2
Iniciado por: John
em: English Support
Problem: Solution: /** * WPML Workaround for compsupp-6299 */ add_action('wp_head', 'wpml_compsupp6299_replace_term_meta_on_translations'); function wpml_compsupp6299_replace_term_meta_on_translations() { // Settings $taxonomy = 'pa_color'; // Replace with the attribute taxonomy $term_meta_key = '_xts_attribute_image'; //Replace with the term meta key //Get Terms $terms = get_terms(array( 'taxonomy' => $taxonomy, 'hide_empty' => false, ) ); echo '<div style="margin: 20px auto; border-radius: 20px; width: 800px; padding: 20px; border: 4px solid #ff0000;">'; foreach ( $terms as $term ) { $term_meta_value = get_term_meta( $term->term_id, $term_meta_key, true ); //Get Translations $taxonomy_wpml_key = 'tax_'.$taxonomy; $trid = apply_filters( 'wpml_element_trid', NULL, $term->term_id, $taxonomy_wpml_key ); $translations = apply_filters( 'wpml_get_element_translations', NULL, $trid, $taxonomy_wpml_key); foreach ($translations as $translation) { $translation_id = intval($translation->element_id); // Update term meta on translations with the meta value from the original term if ($translation_id != $term->term_id ) { update_term_meta( $translation_id, $term_meta_key, $term_meta_value ); echo '<h4>Term '.$translation_id.' updated.</h4>'; echo '<hr/>'; } } } echo '<p>Please remove the workaround from the functions.php file.'; echo '</div>'; } - Visit the site on front-end which will execute the code and the values from _xts_attribute_image term meta will be copied to the translations of the taxonomy/attributes. Relevant Documentation: |
2 | 24 | 1 ano, 8 mes atrás | ||
Split: Product template with Vega theme
Iniciado por: John em: English Support |
2 | 4 | 1 ano, 9 mes atrás | ||
WPML importing attributes issue
Iniciado por: John
em: English Support
Problem: [WP All Export] Exporting products taxonomies – missing WPML Translation ID field Solution: You are trying to export product attributes in 8 languages from one site and import them to another site. You must do that before importing any products with those attribute terms associated with them. You do not need to include the Term ID in the import file because the terms will get new IDs on the new site once the import is complete. So here are the steps you need to take. 1. Export terms in one language, then edit the file and add a unique identifier field/column to all terms. 2. Export terms in another language and edit the file to add a unique identifier field/column to all terms. 3. Import both files as per our standard procedure, explained in our guide here. Relevant Documentation: |
2 | 11 | 1 ano, 10 mes atrás | ||
WP JobSearch issue
Iniciado por: John em: English Support |
2 | 2 | 1 ano, 11 mes atrás | ||
WPML price issue
Iniciado por: John em: English Support |
2 | 6 | 2 anos atrás | ||
Mobile nav bar
Iniciado por: John em: English Support |
2 | 2 | 2 anos atrás | ||
Jupiter theme can't translate portfolio slug
Iniciado por: John em: English Support |
2 | 5 | 2 anos, 2 mes atrás | ||
Custom post type couldn't change the slug
Iniciado por: John em: English Support |
3 | 11 | 2 anos, 3 mes atrás | ||
Scheduled sale price mixes the pricing with default language part 2
Iniciado por: John em: English Support |
2 | 9 | 2 anos, 4 mes atrás | ||
Performance issues
Iniciado por: John em: English Support |
2 | 11 | 2 anos, 5 mes atrás | ||
Product Feed PRO for WooCommerce – Issue with get product currency
Iniciado por: John em: English Support |
2 | 4 | 2 anos, 7 mes atrás | ||
Translation doesn't update
Iniciado por: John em: English Support |
3 | 7 | 3 anos, 3 mes atrás | ||
Phlox pro not showing on frontent
Iniciado por: John em: English Support |
1 | 1 |
3 anos, 3 mes atrás
John |
||
Invalis payment method.
Iniciado por: John em: Chat Support |
1 | 2 |
3 anos, 4 mes atrás
|