Home Forums WoodMart support forum Incorrect wishlist counter after registration

Incorrect wishlist counter after registration

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #642936

    tomass
    Participant

    If guest wishlist has items in it, then user registers, the wishlist counter is incorrect initially

    #642945

    Artem Temos
    Keymaster

    Hello,

    Could you please record a short video demonstration of the problem so we can better understand what is wrong?

    Kind Regards

    #642989

    tomass
    Participant

    A link to video has been added

    • This reply was modified 1 month, 1 week ago by tomass. Reason: Added a link
    #643088

    Artem Temos
    Keymaster

    You can fix it by applying patch # 643085. To do this, go to Dashboard -> WoodMart -> Patcher, find the corresponding patch and click on the “Apply” button. Let us know if it works for you.

    Kind Regards

    #643108

    tomass
    Participant

    Thanks, but I do not see a patch with id you mentioned, please see attached image.

    Attachments:
    You must be logged in to view attached files.
    #643295

    Artem Temos
    Keymaster

    You need to update the theme to the latest version first – 8.1.1.

    Kind Regards

    #643358

    tomass
    Participant

    I’ve updated the theme and applied the patch, but now we lose the guest checkout after registration, please see video.

    #643482

    Artem Temos
    Keymaster

    Please send us your admin access so we can check this.

    #643533

    tomass
    Participant

    Sending access details

    #643574

    Artem Temos
    Keymaster

    You didn’t update the theme and didn’t apply the patch. We have fixed this on your website. Please test from your end now.

    #643968

    tomass
    Participant

    Sorry, we had rolled back the update because we needed the feature to be working. But the theme is updated and the patch is applied now.

    #644360

    Artem Temos
    Keymaster

    Hello,

    OK, please clear the browser cache and test how it works. Let me know if it helps.

    Kind Regards

    #644513

    tomass
    Participant

    Hi, what happens now is:

    Guest adds 3 products to wishlist -> User registers -> User is logged in after email confirmation -> the wishlist icon shows 0 (this is good)

    But if I actually click on wishlist, it would show those 3 products the Guest added. Then if I log out the guest wishlist is gone.

    #644515

    tomass
    Participant

    Adding video

    #644566

    Artem Temos
    Keymaster

    Please send us your actual admin access so we can check this further.

    #645090

    tomass
    Participant

    Sending access details. We had to restore from a backup for another issue, but now I see the theme having been updated, but the patch doesn’t appear under patcher settings.

    #645242

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    add_action('alg_wc_ev_user_account_activated', function ( $user_id, $args ) {
    	$user = get_user_by( 'id', $user_id );
    
    	do_action( 'wp_login', $user->user_login, $user );
    }, 10, 2);
    #645316

    tomass
    Participant

    So, currently, after the patch and adding this code, it works like this:

    Guest adds x products to wishlist -> Clicks “Register” -> Wishlist gets cleared for guest -> After e-mail confirmation and logging in, registered user now sees the guest wishlist -> after logging out, guest wishlist is empty.

    Essentially it seems that the registered user inherits guest wishlist, is that intentional?

    #645318

    Artem Temos
    Keymaster

    Yes, when you visit your website while not logged in, you can use the wishlist and it will be merged with your wishlist once you log in.

    #645326

    tomass
    Participant

    Okay, this is solved then

    #645435

    Artem Temos
    Keymaster

    Great, I close this topic for now.

Tagged: 

Viewing 21 posts - 1 through 21 (of 21 total)

The topic ‘Incorrect wishlist counter after registration’ is closed to new replies.