• Resolved cornerstonewebdev

    (@cornerstonewebdev)


    Hello:

    Minimum distance variable is not being used by plugin. Even with the minimum distance set to 100 the distance base fee is being added to the fixed/base fee. The destination address is 6.68 miles from the origin address.

    Origin: 1300 Peachtree Industrial Boulevard, Suwanee, GA, 30024
    Destination: 3665 Woodberry Dr, Duluth, GA, 30096

    Thanks
    GARY

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

    (@webdata)

    I guess this topic is related to the previous one, so:

    – Set one shipping method with fixed fee, 0 distance based fee, divider 1, minimum distance limit to 0 and maximum distance limit to 100 miles.

    – And another one with 0 fixed fee and with distance based fee 1 (or anything you want), divider 1, minimum distance limit to 100 miles and maximum distance limit to 9999 (or any large number)

    Kim

    Thread Starter cornerstonewebdev

    (@cornerstonewebdev)

    Kim:
    This was actually me reporting an issue with the plugin since the update 1.2.
    However, I wanted to go ahead and do what you advised above.

    I set up 2 shipping methods as you described above. One at a time:
    1st method) Fixed Fee: 10 / Minimum distance:0 / maximum distance:10 / divider:1 / price:1
    **NOTE** I went to cart after setting just this method up since my destination was less than 10 miles. This error is being displayed across the screen:
    Warning: A non-numeric value encountered in /home/corners6/public_html/cwdbizbuild.xyz/wp-content/plugins/webdata-custom-shipping-methods-for-woocommerce/includes/class-woocommerce-custom-shipping-method-constructor.php on line 707.

    I went and set up the second method as you described above:
    2nd method)Fixed Fee: 0 / Minimum distance:10.1 / maximum distance:40 / divider:1 / price:1
    **NOTE**
    I got the same error message as with just the 1st method entered.

    Thanks, and let me know.

    Plugin Author Gaylord Focker

    (@webdata)

    Ok, I added type casting on that, which should fix that error. However, I am not quite sure why you got that error in the first place, so please check you have entered correct values to those fields.

    Kim

    Thread Starter cornerstonewebdev

    (@cornerstonewebdev)

    Kim:

    All the variables were entered correctly. Thank you for putting the type casting check in. The error is gone and everything is working perfectly. I finally figured out how to get the method to only charge the fixed fee if the destination was less than 10 miles. The setup you recommended of Fixed fee:10 / min distance:0 / max distance: 10. I changed price to 0 and now no distance charge is added to the fixed price.

    Thank you for all the assistance.

    GARY

    Thread Starter cornerstonewebdev

    (@cornerstonewebdev)

    THANKS

    Plugin Author Gaylord Focker

    (@webdata)

    Great, happy to help! 🙂

    Kim

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘minimum distance not working since last update’ is closed to new replies.