Question

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #94597
    Mohammed Iqbal
    Participant

    Hi I want to do the following and have tried but cannot figure it out.

    Delivery restricted to 5 miles and if over then no only collection, under £8 charge of £1.25 and over £8 charge of £0.75 can you let me know how this can be achieved as I have tried below and does not seem to work

    [costs_table prop="cost" table="0-1.25|8-0.75" distance key="MYKEY" default_distance="5" debug="yes" units="mi"]

    Thanks

    #94598
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Mohammed,

    If I understood you correctly – you need distance for shipping method availability only and not for price calculation, correct? If that’s so – this is not possible at the moment but seems like a useful feature, so please give me a couple of days to add it to the plugin.

    P.S. As for cost calculation, your formula seems correct, i.e.:

    [costs_table prop="cost" table="0-1.25|8-0.75"]
    #94599
    Tom Anbinder
    Moderator
    Plugin Support

    In case if anyone else has a similar question – since plugin v1.5.2, you can now set “Min distance” and/or “Max distance” options in the “Availability” section for each custom shipping method. So in case if you need to restrict shipping to distances below 5 miles, you need to set the “Max distance” option to 5 and “Distance calculation” option to something like:

    [distance key="YOUR_KEY" units="mi" debug="yes" default_distance="5"]
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.