Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33
  1. #21
    Join Date
    Jul 2005
    Location
    Tennessee, USA
    Posts
    14
    Plugin Contributions
    2

    Default Re: Mileage based shipping module?

    Just uploaded v1.5

    "Door to Door" now rather than zip code to zip code. Added option to limit delivery area by actual distance.

    Some things I would like to do to improve this Plug in are:
    a. Make the drop-down show street address along with the city, state, zip code and country.
    b. Add a configuration option for the shipping origin(s) other that the store location. Perhaps by adding an attribute for each product.
    c. I guess its not specific to this Plug in, but when the customer isn't logged in the distance still can't be calculated closer than the Zip Code. Fixing that is a little advanced for me right now. Could make a big difference in whether a potential customer goes through the trouble of creating an account.
    d. The calculation doesn't account for the free distance. For example: Free delivery area is 1 mile being delivered 5 miles charges for the entire 5 mile distance, credit for free mile isn't included. But I guess that's getting a little nit-picky anyway.

  2. #22
    Join Date
    Jul 2005
    Location
    Tennessee, USA
    Posts
    14
    Plugin Contributions
    2

    Default Re: Mileage based shipping module?

    Quote Originally Posted by jeffwebb View Post
    Just uploaded v1.5
    Oops! I got the version number wrong, forgot to include GPL license, and needed some improvements in the documentation. Got in a hurry I guess. Re-submitted with corrections. Hope the Admins will accept sincere apologies!

  3. #23
    Join Date
    Nov 2013
    Location
    Dorset, UK
    Posts
    121
    Plugin Contributions
    0

    Default Re: Mileage based shipping module?

    Hi All.

    I am looking at trying to modify this plugin to work as a local delivery module. The Google lookup works lovely and very accurate, in fact to accurate and that's the problem.

    My task is to charge in tier groups, example below.

    Up to 3 miles = Free
    >3 but <5 miles = £2.00
    >5 but <7 miles = £5.00
    >7 = No Delivery Available

    Anyone got any ideas?

  4. #24
    Join Date
    Mar 2016
    Location
    Norcatur, Kansas, USA
    Posts
    80
    Plugin Contributions
    3

    Default Re: Mileage based shipping module?

    Hi All.

    I am looking at trying to modify this plugin to work as a local delivery module. The Google lookup works lovely and very accurate, in fact to accurate and that's the problem.

    My task is to charge in tier groups, example below.

    Up to 3 miles = Free
    >3 but <5 miles = £2.00
    >5 but <7 miles = £5.00
    >7 = No Delivery Available

    Anyone got any ideas?

    Hi, I wrote the original module.

    You will need to go into the code and modify it to reflect your tiers, is all. Take for instance, the code from the /includes/modules/shipping/mileageship.php file starting line 50:

    Code:
    if (MODULE_SHIPPING_MILEAGESHIP_FREEMILES > 0) {
                    $cost_miles = $info['distance'] - MODULE_SHIPPING_MILEAGESHIP_FREEMILES ;
    	      }
              else {
    		    $cost_miles = $info['distance'];
    	      }
    Then modify it to have an ElseIf section for each distance you wish to categorize:

    Code:
    if (MODULE_SHIPPING_MILEAGESHIP_FREEMILES > 0) {
                    $cost_miles = $info['distance'] - MODULE_SHIPPING_MILEAGESHIP_FREEMILES ;
    	      }
              else {
    		    if ($info['distance'] < 3) {
    		        $cost_miles = 0;
    		    } elseif ($info['distance'] < 5) {
    		        $cost_miles = 2;
    		    } elseif ($info['distance'] < 7) {
    		        $cost_miles = 5;
    		    } else {
    		        $shipping_cost = 0;
    		        $error = true;
    		    }
    	      }
    Good Luck!

    Fjolsvith
    Last edited by Fjolsvith; 30 Aug 2017 at 03:59 PM. Reason: Added quote of question.

  5. #25
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Mileage based shipping module?

    Hi Is this module still being updated? The reason I ask is because we are offering an installation and delivery service and think this would be useful

    Also could this work for UK?

    please let me know
    Last edited by dharrison; 1 Nov 2017 at 02:33 PM.
    Debbie Harrison
    DVH Design | Web Design blog

  6. #26
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Mileage based shipping module?

    Ok I have got this working on our current website 1.5.5e. However is there a way that we can enable this shipping for one category only?

    For example we have desks which are fully assembled and delivered from our distribution centre in Yorkshire, which is the section we need the mileage shipping option for. With every other product delivery is free.

    Please advise.
    Debbie Harrison
    DVH Design | Web Design blog

  7. #27
    Join Date
    Mar 2016
    Location
    Norcatur, Kansas, USA
    Posts
    80
    Plugin Contributions
    3

    Default Re: Mileage based shipping module?

    Hi,

    Shipping modules are typically global with respect to products. To specify free shipping for a product, you would need to do that for each product in its catalog listing. Just don't specify free shipping for the products you have in the one category.

    Good Luck!

  8. #28
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Mileage based shipping module?

    Quote Originally Posted by dharrison View Post
    Ok I have got this working on our current website 1.5.5e. However is there a way that we can enable this shipping for one category only?

    For example we have desks which are fully assembled and delivered from our distribution centre in Yorkshire, which is the section we need the mileage shipping option for. With every other product delivery is free.

    Please advise.

    You can code a filter/switch into the shopping cart pages anywhere you find the shipping module lookup - it would simply post true or false based on the products in the cart.

    - It sees a regular product or category - shipping remains free - move on.

    - It sees a mileage product or category - mileage shipping module is added - move on.

    On page refresh or if the customer added mixed products to the cart it would default to 'true' or 'add' the mileage shipping module.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  9. #29
    Join Date
    Jan 2018
    Location
    PA
    Posts
    14
    Plugin Contributions
    0

    Default Re: Mileage based shipping module?

    Any chance this can be updated to include the API Key parameters now required by Google to use it. I signed up for and have a key but I cant seem to add the key to the milageship.php in a way that google accepts it.
    I was trying to do something like
    HTML Code:
    'https://maps.googleapis.com/maps/api/directions/xml?origin='.$start.'&destination='.$finish.'&sensor=false'.'key=YOUR_API_KEY';

  10. #30
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Mileage based shipping module?

    Mind adding the link to the plugin/module?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 22
    Last Post: 12 Apr 2010, 04:45 PM
  2. Module for local mileage based delivery?
    By esobalvarro in forum General Questions
    Replies: 0
    Last Post: 8 Feb 2010, 04:39 AM
  3. MZMT shipping module - Display Shipping Options based on Weight
    By DogTags in forum Addon Shipping Modules
    Replies: 2
    Last Post: 27 Feb 2007, 04:26 AM
  4. Shipping Module based on price?
    By europod in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jun 2006, 07:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR