Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2010
    Posts
    53
    Plugin Contributions
    0

    red flag Extra Shipping Charge to a Specific City?

    Hi,

    I'd like to charge an extra $50 to ship and order to a specific city and I'm using perweightunit. What add-on should I use or what should I do?

    Thanks in advance.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Extra Shipping Charge to a Specific City?

    You will have to setup a zone for this city/state and clone the "perweightunit" module and set it for this zone
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Extra Shipping Charge to a Specific City?

    I have not tested this, but I believe you could customize the shipping module for:

    /includes/modules/shipping/perweightunit.php

    with the code in RED:


    Code:
      function quote($method = '') {
        global $order, $shipping_weight, $shipping_num_boxes;
    
        $total_weight_units = $shipping_weight;
        
        if (strtoupper($order->delivery['city']) == 'NEW YORK') {
          $chk_extra_shipping = 50.00;
        } else {
          $chk_extra_shipping = 0.00;
        }
        $this->quotes = array('id' => $this->code,
                              'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
                              'methods' => array(array('id' => $this->code,
                                                       'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
                                                       'cost' => $chk_extra_shipping + MODULE_SHIPPING_PERWEIGHTUNIT_COST * ($total_weight_units * $shipping_num_boxes) +
                                                       (MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING) ) ));
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Adding extra shipping charge to specific items
    By kevinoneil68 in forum General Questions
    Replies: 1
    Last Post: 22 Nov 2011, 02:21 AM
  2. set shipping charge city wise ...????
    By chetanthumar in forum General Questions
    Replies: 0
    Last Post: 2 Jun 2010, 01:07 PM
  3. Flate rate City Shipping charge
    By Yatin in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 29 Jul 2009, 12:13 PM
  4. Extra charge for specific bulky items (table-weight module)
    By SHK in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 9 Apr 2008, 12:23 PM
  5. Free Shipping to Specific City
    By ideasgirl in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 16 Apr 2007, 05:26 PM

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