• Resolved markmrk

    (@markmrk)


    Good day,

    I have a bug with your newest version of wishlist. I a tried to preview the react version, but it broke my site a bit so I decided to exit preview and keep PHP. However when I press the button to exit preview, it is still activated. I get redirected to this url: ……wp-admin/admin.php?page=yith_wcwl_panel&tab=settings&yith-wcwl-exit-from-preview-mode=1 But the preview mode is still activated.

    Is it possible to somehow disable it in database or somewhere else directly? Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter markmrk

    (@markmrk)

    OK, I found a quick hack-solution. The issue is that it is still updating the cookie and setting preview mode in loop. So when you disable it, it is just re-enabled again.

    Here:
    /wp-content/plugins/yith-woocommerce-wishlist/includes/traits/trait-yith-wcwl-rendering-method-access-trait.php
    on line 152 function you need to set the $value to 0 (which means false)

    yith_setcookie( self::$react_preview_key, 0 );
    $user_id = function_exists( ‘get_current_user_id’ ) ? get_current_user_id() : false;
    if ( $user_id ) {
    update_user_meta( $user_id, self::$react_preview_key, 0 );
    }

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.