WPML
Status
Gelöst
Zugehöriges Plugin/Theme
TI WooCommerce Wishlist

Übersicht über das Problem

Wenn Sie ein Produkt in der Sekundärsprache zu Ihrer Wunschliste hinzufügen, enthält das Pop-up von TI WooCommerce Wishlist unübersetzte Meldungen.

Problemumgehung

Wir arbeiten mit dem Plugin-Entwickler zusammen, um das Problem dauerhaft zu beheben. Befolgen Sie in der Zwischenzeit bitte diese Schritte, um das Problem auf Ihrer Website zu beheben:

  1. Sichern Sie die Dateien und die Datenbank Ihrer Website.
  2. Gehen Sie zu wp-content/plugins/ti-woocommerce-wishlist/includes/product.helper.php (ungefähr Zeile 412) und suchen Sie nach
    if ( $_product->get_id() === absint( ( apply_filters( 'wpml_object_id', $wlproduct['product_id'], 'product', false ) ) ? apply_filters( 'wpml_object_id', $wlproduct['product_id'], 'product', false ) : $wlproduct['product_id'] ) ) {
    						if ( in_array( $_product->get_type(), array( 'variable', 'grouped' ) ) ) {
    							$products[ $key ]['data'] = $wlproduct['variation_id'] ? wc_get_product( $wlproduct['variation_id'] ) : $_product;
    						} else {
    							$products[ $key ]['data'] = $_product;
    						}
    					}
  3. Ersetzen Sie dieses Snippet durch
    if ( $_product->get_id() === absint( ( apply_filters( 'wpml_object_id', $wlproduct['product_id'], 'product', false ) ) ? apply_filters( 'wpml_object_id', $wlproduct['product_id'], 'product', false ) : $wlproduct['product_id'] ) ) {
    						if ( in_array( $_product->get_type(), array( 'variable', 'grouped' ) ) ) {
    							$products[ $key ]['data'] = $wlproduct['variation_id'] ? wc_get_product( apply_filters( 'wpml_object_id', $wlproduct['variation_id'], 'product_variation', false )) : $_product;
    						} else {
    							$products[ $key ]['data'] = $_product;
    						}
    					}

Alle bekannten Probleme →