• Hi again,

    Sorry to disturb but I have a doubt.
    I am not sure to well understand how to manage deliveries policies.

    I have created shipping cost in woocommerce settings, it seems to well working except than the shipping cost are displayed with Pick-up service in the cart and checkout.

    I don’t know how to make the difference between two of them :
    – delivery shipping cost Display
    – Pick-up shipping Not Display

    Thanks a lot

    Regards

    Julien

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

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

    (@wpscripts)

    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 [email protected] for paid support. We are looking at another couple of weeks for this addon to be ready.

    Thanks & Regards,
    Team WP Scripts

    Thread Starter ljconsulting

    (@ljconsulting)

    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 );
    Thread Starter ljconsulting

    (@ljconsulting)

    Great job @robbert89 let me try it

    Sincerely

    Julien

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