• Resolved napathello

    (@napathello)


    Hi

    my website have backorder product shipping in 1-7 day but in stock shipping 1-2 day , possible have function in my function your have hook for this ?

    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor natekinkead

    (@natekinkead)

    Ask and you shall receive!

    Update and you can now use the filter hook called ‘gcr_delivery_days’.

    function my_delivery_days_function($num_days, $order) {
    	// $order is the WC_Order object so you can run any of the relevant methods on it
    	// $num_days is the number of days it typically takes to deliver.  This function is overriding the default from the plugin settings.
    
    	// Do something with the $order object to change the $num_days integer.
    
    	return (int)$num_days;
    }
    add_filter('gcr_delivery_days', 'my_delivery_days_function');
    Thread Starter napathello

    (@napathello)

    Thank you

    Plugin Contributor natekinkead

    (@natekinkead)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Have hook on delivery day ?’ is closed to new replies.