Home / Forums / WoodMart support forum / 1st account Compare items are still available in browser even with 2 nd account
Home › Forums › WoodMart support forum › 1st account Compare items are still available in browser even with 2 nd account
1st account Compare items are still available in browser even with 2 nd account
- This topic has 12 replies, 2 voices, and was last updated 1 year, 5 months ago by
Luke Nielsen.
-
AuthorPosts
-
January 2, 2025 at 7:39 pm #626892
kidsdial4ParticipantLogin with one account , add “compare” button on any product.
Than logout
Login with 2nd ACCOUNT, than if you see compare page, than items added by 1st user are still available in 2nd account compare page. please resolve this.
January 3, 2025 at 6:43 am #626939
kidsdial4ParticipantWe logged in to the website
added some items to compare products list
we logged out
than refresh the website
still we can see “compare ” products exists if we check the compare page
January 3, 2025 at 11:57 am #627026
Luke NielsenMemberHello,
Use the code below for help:
function clear_woodmart_compare_cookie_on_logout() { if (isset($_COOKIE['woodmart_compare_list'])) { setcookie('woodmart_compare_list', '', time() - 3600, COOKIEPATH, COOKIE_DOMAIN); } } add_action('wp_logout', 'clear_woodmart_compare_cookie_on_logout');Define it in the functions.php file in your child theme.
Kind Regards
January 8, 2025 at 12:28 pm #628224
kidsdial4ParticipantI have updated the code , now new issue is there
1)Login to website
2) Add Products to compare
3)Logou
4)Login again
5) The items added to compare are lost.
Please resolve this
January 8, 2025 at 1:54 pm #628243
Luke NielsenMemberHello,
Sorry, but now the Compair works in such a way and there is no way to change it via custom code. You can create a future request here – https://woodmart.canny.io/feature-requests and describe how it should work.
Kind Regards
January 9, 2025 at 1:51 pm #628557
kidsdial4Participantthan why “cart ” is working perfectly fine ? same like that we need for compare also.
January 9, 2025 at 4:05 pm #628607
Luke NielsenMemberHello,
This is different functionalities, e.g. Cart functionality comes from WooCommerce. At the moment, we don’t have a specific solution for the Compare so please create future request here https://woodmart.canny.io/feature-requests and our developers consider such functionality.
Kind Regards
January 10, 2025 at 5:35 pm #628856
kidsdial4Participantso basically this is there because “compare items” are saving in session, not in database, right ?
January 13, 2025 at 11:01 am #629185
Luke NielsenMemberHello,
Yep, it’s right. Let me know if you have any questions.
Kind Regards
January 13, 2025 at 11:08 am #629187
kidsdial4Participantokay, so how long it ll take a developer [ who have 1/2 year experience ] to do the customization and save the items in database instead of sessions ?
January 13, 2025 at 12:26 pm #629221
Luke NielsenMemberHello,
It could take approximately 2 hours.
Thank you for your time and have a good day!
Kind Regards
January 24, 2025 at 3:26 pm #632502
kidsdial4ParticipantIn Compare page ,there is option to clear/delete one item at a time.
Please add a button in that page, so that user can “delete” all items just by clicking “Delete all” button
January 27, 2025 at 11:54 am #632975
Luke NielsenMemberHello,
Leave a future request here – https://woodmart.canny.io/feature-requests so our developers can consider such a functionality.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register