Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Special zone rates for a specific product

    You could try this ... mark the Product as Always Free Shipping ...

    Then edit the file:
    /includes/modules/shipping/zones.php

    and change the line for the IF statement to:
    Code:
                  case (MODULE_SHIPPING_ZONES_METHOD == 'Price'):
    //echo '$dest_zone: ' . $dest_zone . ' $_SESSION[cart]->free_shipping_prices(): ' . $_SESSION['cart']->free_shipping_prices() . '<br>';
    // shipping adjustment
                  if (($dest_zone == 1 ? ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices()) : $_SESSION['cart']->show_total()) <= $zones_table[$i]) {
    
    So that your Zone 1 definition gets the Free Shipping and the other Zone definitions do not ...

    That should exclude the Price of the Free Shipping Product from the calculation on the shipping charges when the quote is on that First Zone definition used by US and PR ...
    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!

  2. #12
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: Special zone rates for a specific product

    Thank you very much - -I'll give that a try.

    John

  3. #13
    Join Date
    Apr 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Special zone rates for a specific product

    I have been following this discussion with interest, Linda and John, and I'm waiting for the outcome. My problem is slightly different. I use zonetable rates on Zencart 139(h), with 11 geozones (zone definitions). And my shipping calculations are based on weight. (I sell books.) I notice John's is on price. I'd like to offer free shipping for specific products in Malaysia, Zone 1 (where I live). Can I edit my zonetable.php to do that? How would I code it? I am a newbie.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v154 Free shipping for a specific zone and for ONE specific product?
    By seattleannie in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 7 Jan 2016, 02:15 AM
  2. Seperate zone rates for specific ship method?
    By sartor in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 28 Sep 2009, 09:08 PM
  3. Zone rates - specific country not calculating postage
    By robmurg in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 12 Apr 2008, 01:44 PM
  4. Creating special invoices for specific product
    By freya in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 Mar 2007, 02:51 AM

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