Page 17 of 32 FirstFirst ... 7151617181927 ... LastLast
Results 161 to 170 of 315
  1. #161
    Join Date
    Sep 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    I m testing for my zonetable now and I figured something wrong. For a normal table rate, we can set end the last amount as 10000:7% to charge 7% of the Order Total.

    However, in the zone table rate, I am unable to do this. If i put 30:10%, it will charge items weight more than 30kgs to RM10, instead of 10% of the total order.

    Can someone give any suggestion how to deal with this? Does that means that I have to insert the value indefintely?

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

    Default Re: Zones Table Rate Shipping Module

    You may need to customize the module to work with the percentage as the regular Zone Rate zones shipping module does ...
    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: v1.5.5]
    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!

  3. #163
    Join Date
    Aug 2009
    Location
    Perth, WA, Australia
    Posts
    12
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    Hi Ajeh,

    I'm trying to achieve the percentage allowance as mentioned before. I want to customize the file zonetable.php and compared it to table.php to gather the required percentage information. I found out that $table_cost is defined differently and copied the extra if-loop (incl the else of course) containing the percentage into the $table_cost of the zonetable.php file.
    The result, after upload is that I'm receiving $0.00 as soon as my weight reaches the last value with the percentage.
    Would you possibly know if there is anything else I need to change in the zonbetable.php file? Or is there any other file I need to change?

    Your help would be very much appreciated.
    otti

  4. #164
    Join Date
    Aug 2009
    Location
    Perth, WA, Australia
    Posts
    12
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    Hi again,

    I found the solution for the above. I had missed a line of code which was to be inserted above the total cost calculation:
    $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;

    That fixed the problem.

    Thanks anyway.
    otti

  5. #165
    Join Date
    Dec 2009
    Location
    England
    Posts
    5
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    Quote Originally Posted by francesca_ph View Post
    How do I install??
    pls teach me
    francesca_ph, I don't know if anybody ever answered you on this but I was also trawling for the same instruction set and did not find it, so I'll write my own.

    1. Download the latest version zones_table_rate_for_multiple_zones_1-1.zip from the first page of this thread.
    2. Unzip the file maintaining the directory structure of the zip file:
      i.e. \zonetable\includes\languages\english\modules\shipping\zonetable.php
      and \zonetable\includes\modules\shipping\zonetable.php
    3. Copy these files to the existing directory structure of your Zen Cart installation
      i.e. webroot\includes\languages\english\modules\shipping
      and webroot\includes\modules\shipping
    4. In Zen Cart admin go to Modules -> Shipping and you should see the new Zones Table Rate option at the bottom of the modules list.
    5. Click on Zones Table Rate and in the right hand column it should give you a "+Install" button, click on this and the installation is complete


    You can now configure the module as discussed in this thread!

    B

  6. #166
    Join Date
    Jan 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    Quote Originally Posted by beatle View Post
    francesca_ph, I don't know if anybody ever answered you on this but I was also trawling for the same instruction set and did not find it, so I'll write my own.

    1. Download the latest version zones_table_rate_for_multiple_zones_1-1.zip from the first page of this thread.
    2. Unzip the file maintaining the directory structure of the zip file:
      i.e. \zonetable\includes\languages\english\modules\shipping\zonetable.php
      and \zonetable\includes\modules\shipping\zonetable.php
    3. Copy these files to the existing directory structure of your Zen Cart installation
      i.e. webroot\includes\languages\english\modules\shipping
      and webroot\includes\modules\shipping
    4. In Zen Cart admin go to Modules -> Shipping and you should see the new Zones Table Rate option at the bottom of the modules list.
    5. Click on Zones Table Rate and in the right hand column it should give you a "+Install" button, click on this and the installation is complete


    You can now configure the module as discussed in this thread!

    B
    Hi

    I have done exactly that and the Zones Table Rates is still not showing up in my Shipping Modules in Admin. Does anyone have any suggestions on what might be causing this. Have I missed a step somewhere, or not done something.....

    I am using Zen Cart 1.3.8a

    Thanks so much!!

  7. #167
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    I was looking for this same fix to only display certain zone tables based on weight. I tried maxidvds code below, but i get the error;

    Code:
    Call to a member function show_weight() on a non-object
    Has anyone else tried this mod and got it working?

    Thanks,

    Scott.

    Quote Originally Posted by maxidvd View Post
    Nevermind I figured out a way.

    In my Registered Post shipping mod I added a code snippet to only display if the cart is 10kg or more:

    Find this code snippet in zonestable.php:
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true : false);
    }
    And directly benief it add this:
    Code:
      
                    // Fishmad added: Enable only if cart contents are heavier than 10kg
                    if ($_SESSION['cart']->show_weight() >= 10) {
                    $this->enabled = true;
                    }
    In my Express Post shipping mod I added a code snippet to only display if the cart is less then 10kg:

    Find this code snippet in zonestable.php:
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true : false);
    }
    And directly benief it add this:
    Code:
      
                    // Fishmad added: Enable only if cart contents are less than 10kg
                    if ($_SESSION['cart']->show_weight() >= 10) {
                    $this->enabled = false;
                    }
    Works for me.
    Donation made. Enjoy those donuts! :-)

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

    Default Re: Zones Table Rate Shipping Module

    Above the IF calling the cart function add a line:
    global $cart;

    You will also need to set up something to manage this in the admin as the cart doesn't exist in the Admin ... so you will probably get an error in the Modules ... Shipping ... without it ...
    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: v1.5.5]
    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!

  9. #169
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    Thanks Linda! Ill give that a go.
    Donation made. Enjoy those donuts! :-)

  10. #170
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Re: Zones Table Rate Shipping Module

    Thanks to Lindas help and maxidvds initial code, I now have this module turning zone tables on or off according to their weight.

    I had to tweak it a bit to only show the right table according to the weight.

    Here's what I did (note that the weights are in grams);

    Immediately beneath the closing '}' of this code;
    PHP Code:
    // disable only when entire cart is free shipping
            
    if (zen_get_shipping_enabled($this->code)) {
                
    $this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true false);
            } 
    Add this code;
    PHP Code:
    // Scotts mod: Enable only if cart contents are LESS than 3kg
            
    global $cart;
                    if (
    $_SESSION['cart']->show_weight() > 3000) {
                    
    $this->enabled false;
                    } 
    The above code disables the zone for any weights over 3kgs (3000 grams) (and defaults to courier for us)

    This code enables the other zone table (in our case Australia Post)
    PHP Code:
    // Scotts mod: Enable only if cart contents are HEAVIER than 3kg
            
    global $cart;
                    if (
    $_SESSION['cart']->show_weight() < 3001) {
                    
    $this->enabled false;
                    } 
    The initial code, if it had both tables set to the same weight (3000 in this case) - they would both show on an order weighing exactly 3kgs. So I set the second block of code to 3001.

    This code will work for lbs too, just set a much smaller number ;)
    Donation made. Enjoy those donuts! :-)

 

 
Page 17 of 32 FirstFirst ... 7151617181927 ... LastLast

Similar Threads

  1. Help with Zones Table Rate module ..... Please
    By MM_Dude in forum Addon Shipping Modules
    Replies: 5
    Last Post: 7 Jul 2012, 02:37 PM
  2. Zones Table Rate Shipping Module clone
    By maclean in forum Addon Shipping Modules
    Replies: 2
    Last Post: 24 Jul 2009, 04:59 PM
  3. Problem with Zones Table Rate shipping calculation
    By AlpineAire in forum Addon Shipping Modules
    Replies: 1
    Last Post: 17 Jul 2008, 03:29 AM
  4. table rate shipping, zones, quotes
    By gsdcypher in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 27 Mar 2008, 05:00 AM
  5. Clone a shipping module or define a new shipping attribute under table rate module?
    By meeven in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Sep 2007, 04:56 PM

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