@bizit In this case, I’ll need some additional informations
It would be wonderful if you could do some guided debug, but please, proceed only if you’re testing on a staging environment
First step in order to proceed is to understand if system is able to retrieve default wishlist.
Please, follow these steps:
1. Add the following snippet of code at the end of functions.php file of your theme or child (Please, remember to remove it as we’re done debugging!)
if( ! function_exists( 'yith_wcwl_debug_default_wishlist' ) ){
function yith_wcwl_debug_default_wishlist(){
if( ! isset( $_GET['yith_wcwl_debug_default_wishlist'] ) ){
return;
}
$default_wishlist = YITH_WCWL_Wishlist_Factory::get_default_wishlist();
var_dump( YITH_WCWL_Session()->get_session_id() );
var_dump( $default_wishlist );
var_dump( $default_wishlist ? $default_wishlist->get_items() : array() );
var_dump( YITH_WCWL()->count_products() );
die;
}
add_action( 'init', 'yith_wcwl_debug_default_wishlist' );
}
2. As a logged in user, add a brand new item to your wishlist
3. Visit your homepage, appending ?yith_wcwl_debug_default_wishlist
query string to the url
4. This should prompt some debug informations; please, share them with us
5. Repeat steps 2-4, but this time as a guest user, in Incognito mode
In both cases system should print some info regarding wishlist status
Please, let me know