• Resolved siyaryucel

    (@siyaryucel)


    Hey! I was just curious if adding “ASAP” option to the top of the time selection might be possible for both of the delivery and pickup options?

    The page I need help with: [log in to see the link]

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

    (@rajeshsingh520)

    Hi,

    you can add this code in your theme functions.php file that will add that option

    add_filter('pisol_dtt_time_slot_filter', 'addingAsap',10,2);
    add_filter('pisol_dtt_time_range_filter', 'addingAsap',10,2);
    function addingAsap($slot, $date){
    	$today = current_time('Y/m/d');
    	
    	if($today === $date && !empty($slot)){
    		$type = pi_dtt_delivery_type::getType();
    		if($type === 'delivery'){
    			$msg = 'ASAP';
    		}else{
    			$msg = 'ASAP';
    		}
    		$top = array(array('id'=>$msg, 'text'=>$msg));
    		$slot = array_merge($top, $slot);
    	}
    	return $slot;
    }
    Thread Starter siyaryucel

    (@siyaryucel)

    Thank you!

    Hi Rajesh,
    this does not add a prep time when you choose the asap option. Is there any way to add it and then remove the next slot when asap option is selected? Thank you!

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    Sorry did not understood the issue can you please explain in detail

    Hi Rajesh, thanks a lot for the quick response.. let’s say I set 30 minutes as preparation time, than if I choose, for example the slot 18.00-18.30, once the order is placed that slot disappears because the system calculates the 30 minutes of preparation and then shows as the first slot 18:30 – 19:00. If instead I select asap this does not happen and the preparation hours are not calculated. How can I get the preparation time calculated on the asap slot too?
    Thanks

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    Hi,

    It looks you are using the PRO version of the plugin, please contact us on [email protected] for the pro support

    2nd you are wrong about the preparation time:

    preparation time will not block the slot just because order was placed on 18:00 – 18:30

    preparation time will block the slot if current time is say 18:00 + 30 (preparation time) then your slot will auto blocked

    in the pro version we have a order limit feature for time slot, if you have set order limit of say 1 order on time slot 18:00 – 18:30 then it will be blocked after receiving 1 order

    And that order limit do not apply on ASAP order as it was an extra slot added without order limit on it

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Asap option’ is closed to new replies.