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

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #626892

    kidsdial4
    Participant

    Login 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.

    #626939

    kidsdial4
    Participant

    We 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

    #627026

    Luke Nielsen
    Member

    Hello,

    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

    #628224

    kidsdial4
    Participant

    I 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

    #628243

    Luke Nielsen
    Member

    Hello,

    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

    #628557

    kidsdial4
    Participant

    than why “cart ” is working perfectly fine ? same like that we need for compare also.

    #628607

    Luke Nielsen
    Member

    Hello,

    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

    #628856

    kidsdial4
    Participant

    so basically this is there because “compare items” are saving in session, not in database, right ?

    #629185

    Luke Nielsen
    Member

    Hello,

    Yep, it’s right. Let me know if you have any questions.

    Kind Regards

    #629187

    kidsdial4
    Participant

    okay, 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 ?

    #629221

    Luke Nielsen
    Member

    Hello,

    It could take approximately 2 hours.

    Thank you for your time and have a good day!

    Kind Regards

    #632502

    kidsdial4
    Participant

    In 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

    #632975

    Luke Nielsen
    Member

    Hello,

    Leave a future request here – https://woodmart.canny.io/feature-requests so our developers can consider such a functionality.

    Kind Regards

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