Zen Cart Logo
Forums / Addon Shipping Modules / Zones Table Rate Shipping Module

Zones Table Rate Shipping Module

Views: 127,539

Results 161 to 180 of 316
19 Sep 2009, 7:38 AM
#161
janiceng avatar

janiceng

New Zenner

Join Date:
Sep 2009
Posts:
25
Plugin Contributions:
0

Zones Table Rate Shipping Module

Hey.. I have finally figured out what was wrong with my zone table rate. After setting up the zones, zone definition and installing the module, I need to go back to the address to update the address. After the 'Zone' setup, the column to insert State changed to a drop list which was the zones i defined in the 'Zones'. From there the shipping module can filter the address according to the State(ie. zone added)

19 Sep 2009, 8:32 AM
#162
janiceng avatar

janiceng

New Zenner

Join Date:
Sep 2009
Posts:
25
Plugin Contributions:
0

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?

19 Sep 2009, 3:17 PM
#163
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

26 Sep 2009, 5:31 AM
#164
ottishop avatar

ottishop

New Zenner

Join Date:
Aug 2009
Location:
Perth, WA, Australia
Posts:
12
Plugin Contributions:
0

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

26 Sep 2009, 5:48 AM
#165
ottishop avatar

ottishop

New Zenner

Join Date:
Aug 2009
Location:
Perth, WA, Australia
Posts:
12
Plugin Contributions:
0

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

13 Jan 2010, 2:10 PM
#166
beatle avatar

beatle

New Zenner

Join Date:
Dec 2009
Location:
England
Posts:
5
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

francesca_ph:

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 :clap:

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

B

27 Jan 2010, 3:52 AM
#167
natts avatar

natts

New Zenner

Join Date:
Jan 2010
Posts:
5
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

beatle:

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.
  1. 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

  1. 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

  1. 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.
  1. 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 :clap:

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!!

11 Feb 2010, 9:27 AM
#168
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

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;

Call to a member function show_weight() on a non-object

Has anyone else tried this mod and got it working?

Thanks,

Scott.

maxidvd:

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:

            // 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:
> ```
  
                // Fishmad added: Enable only if cart contents are less than 10kg
                if ($_SESSION['cart']->show_weight() >= 10) {
                $this->enabled = false;
                }

Works for me.

11 Feb 2010, 2:17 PM
#169
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

11 Feb 2010, 2:25 PM
#170
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

Thanks Linda! Ill give that a go.

11 Feb 2010, 2:58 PM
#171
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

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. :smile:

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;

// 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;

// 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)

// 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 ;)

11 Feb 2010, 3:01 PM
#172
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

Ajeh:

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 ...

Oh, and I havent addressed what Linda mentioned above as Im not a programmer. :huh:

If you need to make changes to your shipping module in the admin, you would need to comment out or temporarily remove the code mentioned above.

Unless someone else wants to take care of it displaying in the admin properly? :smartalec:

18 Feb 2010, 11:25 PM
#173
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Zones Table Rate Shipping Module

You could probably just change the IF to:

                if (!IS_ADMIN_FLAG && $_SESSION['cart']->show_weight() < 3001) {

and that should allow it to work in the Admin and Catalog ...

19 Feb 2010, 12:44 AM
#174
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

Thanks Linda, that makes sense. ill give it a go!

26 Feb 2010, 11:23 AM
#175
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

Just wanted to report that the;

  if (!IS_ADMIN_FLAG && $_SESSION['cart']->show_weight() < 3001) {

worked a treat.

Thanks!

Scott.

26 Feb 2010, 2:40 PM
#176
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Zones Table Rate Shipping Module

Thanks for the update that this was able to help resolve your issues ... :smile:

26 Feb 2010, 6:45 PM
#177
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

I've just installed this module to provide the shipping I require. However, it is not showing the correct rates either on checkout or in the estimator. I have selected a shipping zone for zone 1 and installed the following (based on weight) >> 1.5:4.5,16.8:8.0,34:16.0,51:24.0,68:30.0,250:47, with a handling fee of 2.5 (plus VAT on the shipping). When I check out with 8.4 kgs I get a shipping charge of 2.94 ee.g. only the handling and the VAT. Any ideas where this might be going wrong?

I notice, by the way, that the module only shows up with a yellow dot under shipping modules. I haven't properly calibrated the other zones - I just wrote CALL for these (which probably won't work but didn't want to get into these right away).

This is the only shipping module I have in place.

Many thanks.

26 Feb 2010, 7:55 PM
#178
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Zones Table Rate Shipping Module

Could you remove the comma on the end:

1.5:4.5,16.8:8.0,34:16.0,51:24.0,68:30.0,250:47**,**

Also check your Configuration ... Shipping/Packaging ... and make sure your Maximum Weight is set higher as you are showing you want to go to 250 and that your Tare Rates are 0:0 ...

28 Feb 2010, 4:55 PM
#179
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

Thanks for your reply. I deleted the comma and checked the max ship weight which was already on 'no max'. I took the Tare to be 0:0 and still no difference.

28 Feb 2010, 5:06 PM
#180
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Re: Zones Table Rate Shipping Module

Why is the shipping module showing up as yellow and is this connected to the problem?

Many thanks for all your help.