Support » Plugin: NP Quote Request WooCommerce » Quote Cart gets removed after checkout

  • Resolved vidhugoel

    (@vidhugoel)


    Hi, if a user logs out and logs in again, all products previously added to the quote request cart get removed. I want that the user should be able to see the products in the cart after he/she logs in again. Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Neah Plugins

    (@gplsaver)

    Add this to your functions.php

    if(isset($GLOBALS['GPLS_WOO_RFQ'])){
    
    add_action('init', 'my_setup_customer_cookie', 2000);
    
    function my_setup_customer_cookie()
        {
    
           if (!is_admin()) {
    
                if(!function_exists('gpls_woo_rfq_get_item')) {
                    require_once(gpls_woo_rfq_DIR . 'wp-session-manager/wp-session-manager.php');
                    require_once(ABSPATH . 'wp-includes/class-phpass.php');
                }
    
                add_filter('_rfqtk_wp_session_expiration_variant', 'gpls_woo_rfq_set_expiration_time', 24* 58 * 60);
                add_filter('_rfqtk_wp_session_expiration', 'gpls_woo_rfq_set_expiration_variant_time', 24* 60 * 60);
    
                $wp_session = RFQTK_WP_Session::get_instance();
            }
    
        }
    	
    	function gpls_woo_rfq_set_expiration_variant_time($exp)
        {
            return 24* 60 * 60;
        }
    
        function gpls_woo_rfq_set_expiration_time($exp)
        {
            return 24* 58 * 60;
        }
    	
    	
    	 remove_action('wp_logout', array($GLOBALS['GPLS_WOO_RFQ'], 'gpls_woo_rfq_logout'), 100);
    	
    	 
    	
    }
    Plugin Author Neah Plugins

    (@gplsaver)

    ignore the last post. update to 1.8.164. that should do it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quote Cart gets removed after checkout’ is closed to new replies.