Problem: The client wants to add a currency code after the price in WooCommerce, such as USD or EUR, and modify the language selector to match the style of the currency selector. Solution: To display the currency code after the price, you can use the
woocommerce_price_format
filter. Here is an example of how you can customize it:
add_filter('woocommerce_price_format', 'custom_woocommerce_price_format', 10, 2);<br />function custom_woocommerce_price_format($format, $currency) {<br /> return '%1$s %2$s ' . $currency; // Shows the currency code after the price<br />}
For more details, you can refer to these documentation links:
Since this customization is outside our support scope as it involves WooCommerce settings not directly related to WPML, we recommend consulting professional developers if further customization is needed. You can find qualified developers at https://wpml.org/contractors/.
Please note that this solution might be irrelevant if it's 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 the issue persists, please open a new support ticket for further assistance.
Problème : Le client souhaite utiliser la même licence WPML pour une version de développement et une version de production de son site, sans utiliser les crédits de traduction. Solution : Nous permettons l'enregistrement de 3 sites de production et 9 sites de développement sous un seul compte Multilingual CMS. Voici les étapes à suivre : 1. Lors de la migration d'un site, sélectionnez "C'est une copie" sur la bannière "Site copié ou déplacé" pour permettre la coexistence des deux sites. Pour plus d'informations, consultez ce guide. 2. Il est possible de partager ou non la mémoire de traduction et les crédits entre les deux sites. Si vous choisissez de ne pas partager les crédits, vous n'aurez pas de crédits à dépenser sur le site de développement. Plus de détails sont disponibles ici : gestion des crédits pour plusieurs sites. 3. Chaque site doit avoir sa propre clé de licence. Vous pouvez enregistrer vos clés de sites directement dans vos fichiers wp-config.php pour faciliter les migrations entre les environnements de développement et de production. Consultez l'enregistrement automatique de WPML pour plus d'informations.
Si cette solution ne résout pas votre problème ou semble obsolète, nous vous recommandons de vérifier les problèmes connus, de confirmer que vous avez installé les dernières versions des thèmes et plugins, et d'ouvrir un nouveau ticket de support si nécessaire.