Why Yith-wishlist changes WooCommerce add-to-cart message?
-
Hi,
We encounter with an strange part of wishlist code that cause problem in our product and there is no way to disable it. We have a lot of customers that want original message when a product added to cart. This massage changed by Yith-wishlist. How it can be disabled?
Please check the fallowing code in Jquery.yith-wcwl.js : 196
/**
* Print “Product added to cart” notice
*
* @return void
* @since 2.0.11
*/
function print_add_to_cart_notice(){
var messages = $( ‘.woocommerce-message’);if( messages.length == 0 ){
$( ‘#yith-wcwl-form’).prepend( yith_wcwl_l10n.labels.added_to_cart_message );
}
else{
messages.fadeOut( 300, function(){
$(this).replaceWith( yith_wcwl_l10n.labels.added_to_cart_message ).fadeIn();
} );
}
}Thanks.
- The topic ‘Why Yith-wishlist changes WooCommerce add-to-cart message?’ is closed to new replies.