• Resolved emergelsberg

    (@emergelsberg)


    Hi all,
    are there any chance to disable the shipping methode after 10 kilometers completly?
    Our use case is, that we will charge 5 EUR in the range from 8 to 10 kilometers, and if someone will order above 10km range, the shipping should be not available.

    Are there any chance to disable that with the hook option?

    Hope someone can help me out with that.

    Best regards,
    Eric

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

    (@webdata)

    Hi,

    Yes, set maximum distance to 10km and then choose “Shipping Conditions – Hide shipping methods”. After this choose WooCommerce – Settings – Choose your shipping method and save the shipping method’s settings once.

    Kim

    Thread Starter emergelsberg

    (@emergelsberg)

    Thank you for your fast response.

    Unfortunately, this is not applicable with my current setup.
    To charge the distance fee of 5 EUR for distances higher then 8km, i need to set the maximum distance to 8km to fall into the „not matching“ distance and charging of a fixed fee of 5 EUR.
    If i set this to 10km, the distance between 8km and 10km where not charged.

    Therefore, maybe i need a extra hook and function to disable the shipping method for higher then 10km distance?

    We don‘t want to charge a fee per kilometer, because we need the fixed fee option.

    Hope this explains the situation better and you can help me out in this case.

    Plugin Author Gaylord Focker

    (@webdata)

    There is a hook dbf_calculated_fee which can be used to create custom logic.

    Hooks with examples you can find here: https://web-data.online/docs/woocommerce-distance-based-fee/#dbf_developers

    Kim

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable shipping by distance’ is closed to new replies.