• Resolved RadhikaJAKS

    (@radhikajaks)


    Hi I want to set cancel button active for guest customer 5 minutes after completing order and for paid member 24 hrs. Is it possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rajeshsingh520

    (@rajeshsingh520)

    Hi,

    Upgrade to latest version released today 1.2.1.1 in after that add the below code in your theme functions.php file that will make the button visibility as 5min for guest and 24hr for loged in customer

    
    add_filter('pisol_corw_setting_filter_pi_corw_hide_button_after_time', function($minutes){
    	$user = get_current_user_id();
    	if(empty($user)) return 5;
    	
    	return 1440;
    });
    
    Thread Starter RadhikaJAKS

    (@radhikajaks)

    Hi @rajeshsingh520 thank you for support I have 3 type customer one is guest checkout,second free registered and third one is paid elite member.

    For guest and registered member cancel button will be activated for 15 minuts and for paid it will be activated for 24 hrs.Is it possible? I am not technical coder.

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    sorry it wont be possible withut coding

    and you must be using some other plugn along with woocommerce to have a free customer and paid cusotomer as in woocommerce you have guest customer and login custoemr

    will recomend trying some other plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cancel order button disable on User Role Based’ is closed to new replies.