Problem: If you're experiencing issues where product category images are not the same height across different language versions of your site, it might be due to custom CSS not being applied to the translated template. Solution: We recommend checking your default language category template for any custom CSS. If found, ensure this CSS is also added to the translated templates. Alternatively, for better management and consistency, add your custom CSS in a centralized location such as Elementor > Custom code, or Appearance > Customize > Additional CSS. Here is an example of CSS that you might need to apply:
.woocommerce ul.products li.product-category a img {<br /> width: 300; /* Ensures the image fills the container width */<br /> height: auto; /* Adjusts height to maintain aspect ratio if needed */<br /> aspect-ratio: 1 / 1; /* Forces a square format */<br /> object-fit: cover; /* Crops the image without distortion */<br />}
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 issues persist, please open a new support ticket at WPML support forum.
Problem: Das Problem besteht darin, dass WPML Preisänderungen in der führenden Sprache 'DE' nicht korrekt auf die Produkte in anderen Sprachen wie 'FR' und 'EN' überträgt. Solution: 1) Erstellen Sie ein volles Backup Ihrer Website. 2) Verbinden Sie sich mit Ihrer Datenbank und führen Sie das folgende SQL-Skript aus:
DELETE FROM wp_postmeta WHERE meta_key IN ('_price', '_regular_price') AND meta_id NOT IN (SELECT max_id FROM (SELECT MAX(meta_id) as max_id FROM wp_postmeta WHERE meta_key IN ('_price', '_regular_price') GROUP BY post_id, meta_key) AS keepers);
3) Bearbeiten Sie das Produkt in der Standardsprache und schließen Sie die Übersetzung ab. Der Preis sollte nun korrekt in allen Sprachen aktualisiert werden. Zusätzlich wurde das Problem durch das Release von WooCommerce Multilingual 5.4.3 behoben, welches Sie hier finden: https://wpml.org/errata/multiple-postmeta-inserted-incorrectly-for-a-variable-product/
Falls diese Lösung nicht relevant oder veraltet erscheint oder falls das Problem weiterhin besteht, empfehlen wir, ein neues Support-Ticket zu eröffnen. Wir empfehlen auch, die Seite mit bekannten Problemen (https://wpml.org/known-issues/) zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und zu bestätigen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben.