emilkonit
Forum Replies Created
-
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Lists changes user on the same computerNevermind, we solved the issue. But if anyone else is experiencing the same problem:
There are two functions in woocommerce-wishlists-api.php that are there for guests to be able to create lists and for lists to be created before registering. They connect lists with cookie sessions. We didn’t need these functions so we commented out the following lines:
add_action( ‘wp_login’, ‘woocommerce_wishlists_logon’, 10, 2 );
function woocommerce_wishlists_logon( $user_login, $user ) {
global $wishlist_session_key;
if ( $wishlist_session_key ) {
$lists = WC_Wishlists_User::get_wishlists( false, $wishlist_session_key );
if ( $lists && count( $lists ) ) {
foreach ( $lists as $list ) {
WC_Wishlists_Wishlist::update_owner( $list->id, $user->ID, $wishlist_session_key );
}
}
}
}add_action( ‘user_register’, ‘woocommerce_wishlists_register’, 10, 1 );
function woocommerce_wishlists_register( $user_id ) {
$wishlist_session_key = WC_Wishlists_User::get_wishlist_key();
if ( $wishlist_session_key ) {
$lists = WC_Wishlists_User::get_wishlists( false, $wishlist_session_key );
if ( $lists && count( $lists ) ) {
foreach ( $lists as $list ) {
WC_Wishlists_Wishlist::update_owner( $list->id, $user_id, $wishlist_session_key );
}
}
}
}After this change it works well for us.
Thank you anyway! ??
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Lists changes user on the same computerIt might have something to do with cookies and how it’s coded to use them.
Forum: Plugins
In reply to: [Membership 2] Membership2 increases load times considerablyHi Predrag,
Thank you so much for your support. Unfortunately I couldn’t spend more time troubleshooting and had to settle for another solution.
Still it’s a great plugin and I really appreciate your efforts to help!
Have a nice day!
Best regards,
EmilForum: Plugins
In reply to: [Membership 2] Membership2 increases load times considerablyHello again,
I think the PHP-version on the first server was 5.5.9, and on the new server it is 7.0.15. I’ve only had the add-on Media Protection activated.
Any help is appreciated!
Best regards,
Emil
Forum: Plugins
In reply to: [Membership 2] WooCoomerce category pages links to imagesThanks for the effort, but I solved it by deleting the images that were displayed. It seemed to only happen with those particular images, I have no idea why.
Have a nice day!
Best reagards,
Emil