Home › Forums › WoodMart support forum › Incorrect wishlist counter after registration
Incorrect wishlist counter after registration
- This topic has 20 replies, 2 voices, and was last updated 4 weeks, 1 day ago by
Artem Temos.
-
AuthorPosts
-
March 5, 2025 at 11:58 am #642936
tomassParticipantIf guest wishlist has items in it, then user registers, the wishlist counter is incorrect initially
March 5, 2025 at 12:14 pm #642945
Artem TemosKeymasterHello,
Could you please record a short video demonstration of the problem so we can better understand what is wrong?
Kind Regards
March 5, 2025 at 1:26 pm #642989
tomassParticipantA link to video has been added
-
This reply was modified 1 month, 1 week ago by
tomass. Reason: Added a link
March 5, 2025 at 4:28 pm #643088
Artem TemosKeymasterYou 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
March 5, 2025 at 4:51 pm #643108
tomassParticipantThanks, 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.March 6, 2025 at 10:16 am #643295
Artem TemosKeymasterYou need to update the theme to the latest version first – 8.1.1.
Kind Regards
March 6, 2025 at 12:16 pm #643358
tomassParticipantI’ve updated the theme and applied the patch, but now we lose the guest checkout after registration, please see video.
March 6, 2025 at 3:50 pm #643482
Artem TemosKeymasterPlease send us your admin access so we can check this.
March 6, 2025 at 4:53 pm #643533
tomassParticipantSending access details
March 6, 2025 at 6:04 pm #643574
Artem TemosKeymasterYou didn’t update the theme and didn’t apply the patch. We have fixed this on your website. Please test from your end now.
March 7, 2025 at 7:08 pm #643968
tomassParticipantSorry, 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.
March 10, 2025 at 10:37 am #644360
Artem TemosKeymasterHello,
OK, please clear the browser cache and test how it works. Let me know if it helps.
Kind Regards
March 10, 2025 at 3:43 pm #644513
tomassParticipantHi, 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.
March 10, 2025 at 3:49 pm #644515
tomassParticipantAdding video
March 10, 2025 at 6:00 pm #644566
Artem TemosKeymasterPlease send us your actual admin access so we can check this further.
March 12, 2025 at 11:13 am #645090
tomassParticipantSending 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.
March 12, 2025 at 3:05 pm #645242
Artem TemosKeymasterTry 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);
March 12, 2025 at 6:18 pm #645316
tomassParticipantSo, 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?
March 12, 2025 at 6:28 pm #645318
Artem TemosKeymasterYes, 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.
March 12, 2025 at 7:16 pm #645326
tomassParticipantOkay, this is solved then
March 13, 2025 at 10:21 am #645435
Artem TemosKeymasterGreat, I close this topic for now.
-
This reply was modified 1 month, 1 week ago by
-
AuthorPosts
Tagged: wishlist
The topic ‘Incorrect wishlist counter after registration’ is closed to new replies.
- You must be logged in to create new topics. Login / Register