Hello @ljconsulting
Thank you for reaching out. We are working on a premium plugin which will also include this functionality. But this is no quiet yet ready yet. If you really need it urgently, then you can contact us at support@wpscripts.in for paid support. We are looking at another couple of weeks for this addon to be ready.
Thanks & Regards,
Team WP Scripts
Ok thanks for your answer. I will wait a little bit more.
Sincerely
Julien
Any news on this ? Since there a two endpoints available (?type=pickup, ?type=delivery) I see some ways to do this as a workaround.. embedding into the template (so delivery costs not only show on checkout) costs some more time but is doable.
If it’s a matter of days before this “feature” is available, i’ll just wait.. if it’s a matter of weeks/months i consider a simple workaround.
Same here, my client is killing me for this option. Looks bad and not that proffesional at the moment because you have to select twice deliver or pickup.
Once for the Food store and second for the delivery addon.
As a temp solution you could add this to your functions.php. It uses the wc cart filter and returns the shipping costs only when service type is set to ‘delivery’. It remove’s the costs when ‘pickup’ is chosen. Will look into the popup cart later.
function wfs_shipping_service_type( $delivery_costs ) {
$service_type = isset( $_COOKIE['service_type'] ) ? $_COOKIE['service_type'] : $this->default_type;
if ( $service_type != 'delivery' ) {
return false;
} else {
return $delivery_costs;
}
}
add_filter( 'woocommerce_cart_ready_to_calc_shipping', 'wfs_shipping_service_type', 99 );
Great job @robbert89 let me try it
Sincerely
Julien