Problem: Sie möchten in Ihrer wpml-config.xml-Datei eines individuellen Plugins Metadaten zum Kopieren registrieren, wobei die genaue Bezeichnung des Feldes dynamisch ist. Der Code
Weitere Informationen und Beispiele finden Sie in unserer Dokumentation und diesem Code-Snippet. Falls Sie Unterstützung benötigen, empfehlen wir die Zusammenarbeit mit einem unserer zertifizierten WPML-Partner: https://wpml.org/contractors/.
Bitte beachten Sie, dass diese Lösung möglicherweise veraltet oder nicht auf Ihren Fall zutreffend ist. Wir empfehlen, die bekannten Probleme zu überprüfen, die Version der dauerhaften Lösung zu bestätigen und sicherzustellen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Falls weiterhin Probleme auftreten, zögern Sie nicht, ein neues Support-Ticket zu eröffnen.
Problem: Se stai riscontrando errori 500 sulla versione inglese del tuo sito e utilizzi una funzione custom per la selezione della lingua che genera errori, potrebbe essere dovuto all'uso di una funzione non definita o deprecata come
languages_list_head()
e
icl_get_languages()
.
Solution: Verifica che la funzione
languages_list_head()
sia correttamente definita nel tuo tema, poiché non è una funzione di WPML e potrebbe essere la causa dell'errore 500. Inoltre,
icl_get_languages()
è una funzione deprecata di WPML. Se necessiti di inserire un selettore di lingua, ti consigliamo di utilizzare gli hook e le funzioni fornite da WPML che sono aggiornate e supportate. Puoi trovare maggiori informazioni sugli hook di WPML qui: https://wpml.org/wpml-hook/wpml_head_langs/.
Se questa soluzione non risolve il tuo problema o se le informazioni risultano obsolete, ti invitiamo a verificare i problemi noti su https://wpml.org/known-issues/, a controllare la versione della correzione permanente e a confermare di avere installato le ultime versioni dei temi e dei plugin. In caso di ulteriori difficoltà, ti consigliamo di aprire un nuovo ticket di supporto.
Problem: The client is experiencing an issue where products without a custom price set for a specific currency are still visible and purchasable when accessed from a country using that currency. This occurs despite having activated the 'Show only products with custom prices in secondary currencies' setting in WCML. The expectation was that the product would either not be displayed or not show prices and prevent purchasing in such scenarios.
Solution: We clarified that the 'Show only products with custom prices in secondary currencies' setting should hide products that do not have a manual price entered for the secondary currency on the frontend of the translated shop. However, if no custom price is entered, the system defaults to using the automatic exchange rate to display prices, which is the observed behavior. This is not a bug but the intended functionality of the plugin. To achieve the desired behavior of hiding products or disabling purchases when no custom price is set for the specific currency, a custom solution would be necessary as this is not supported out of the box by the WPML plugins.
If this solution does not resolve your issue or seems outdated, we recommend checking the related known issues and verifying that you have the latest versions of themes and plugins installed. If the problem persists, please open a new support ticket.