Skip Navigation

Resolved

Overview of the issue

When you add a product in the second language to your wishlist, the TI WooCommerce Wishlist pop-up contains untranslated messages.

Workaround

We’re working with the plugin developer to fix the issue permanently. In the meantime, please follow these steps to fix the issue on your website:

  1. Backup your website files and database.
  2. Go to wp-content/plugins/ti-woocommerce-wishlist/includes/product.helper.php (around line 412) and find
    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. Replace that snippet with
    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;
    						}
    					}