Hello again,
Can you please add this in a future release? It’s just a few quick additions to have that issue sorted. Will be great.
Replace in “/wpml-config.xml”
<key name="yith_wcwl_already_in_wishlist_text" />
with
<key name="yith_wcwl_already_in_wishlist_text" />
<key name="yith_wcwl_no_product_added_in_wishlist_text" />
Replace in “/includes/yith-wcwl-admin-init.php”
'already_in_wishlist_text' => array(
'name' => __( '"Product already in wishlist" text', 'yith-woocommerce-wishlist' ),
'id' => 'yith_wcwl_already_in_wishlist_text',
'default' => __( 'The product is already in the wishlist!', 'yith-woocommerce-wishlist' ),
'type' => 'text',
'css' => 'min-width:300px;',
),
with
'already_in_wishlist_text' => array(
'name' => __( '"Product already in wishlist" text', 'yith-woocommerce-wishlist' ),
'id' => 'yith_wcwl_already_in_wishlist_text',
'default' => __( 'The product is already in the wishlist!', 'yith-woocommerce-wishlist' ),
'type' => 'text',
'css' => 'min-width:300px;',
),
'no_product_added_in_wishlist_text' => array(
'name' => __( '"No product added in wishlist" text', 'yith-woocommerce-wishlist' ),
'id' => 'yith_wcwl_no_product_added_in_wishlist_text',
'default' => __( 'No products were added to the wishlist', 'yith-woocommerce-wishlist' ),
'type' => 'text',
'css' => 'min-width:300px;',
),
Replace in “/includes/class.yith-wcwl.php”
$message = apply_filters( 'yith_wcwl_no_product_to_remove_message', __( 'No products were added to the wishlist', 'yith-woocommerce-wishlist' ) );
with
$message = apply_filters( 'yith_wcwl_no_product_to_remove_message', get_option( 'yith_wcwl_no_product_added_in_wishlist_text' ) );
Replace in “/templates/wishlist-view.php”
<?php echo apply_filters( 'yith_wcwl_no_product_to_remove_message', __( 'No products were added to the wishlist', 'yith-woocommerce-wishlist' ) ) ?>
with
<?php echo apply_filters( 'yith_wcwl_no_product_to_remove_message', get_option( 'yith_wcwl_no_product_added_in_wishlist_text' ) ) ?>
or if you do not like this method, add it differently, but please add it on a next release ?? (as I said, was requested even more then 2 years ago with no solution)
-
This reply was modified 6 years, 1 month ago by
Doru Tirlea.