Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / table rate not working?!

table rate not working?!

Locked

Views: 1,322

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
1 Dec 2010, 3:40 PM
#1
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

table rate not working?!

im using table rate for my postage (by weight) and i have set the table settings as

450:1.50,500:2.00,550:2.50,600:2.75,650:3.00,700:3.50,800:3.95,850:4.50,1100:5.00,1200:5.50,1300:6.00,1500:6.50,1600:7.00,1700:7.20,1750:7.40,1800:7.60,1850:8.50,2500:9.00,2600:10,*:10.00

up to 1600lbs (i have changed the unit in the language files) it works and calculates postage correctly, i have set the tare to 0:0 and also changed the maximum weight of a package to 100000 so this shouldnt be an issue

when using the standard settings upon installation of this module the shorter version of a table rate works, i am using uk zones but again when using these zones with the standard set of table rates it works so i dont suppose these will be part of the issue.

i appreciate that my table rate is quite long so i wonder if this is the cause of this table rate not working? is there a place i phpmyadmin where i can lengthen the chars allowed for this or does anyone have any idea of what else the problem may be?

table rate is the only shipping module i have installed and i am using 1.3.8a

thanks

1 Dec 2010, 3:43 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: table rate not working?!

2600:10,*:10.00

What is this??

1 Dec 2010, 4:06 PM
#3
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

i read on another post that that would take care of "anything else" ive taken it off to see if its made a difference and its still not working even without it?

1 Dec 2010, 4:09 PM
#4
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

if it helps i am getting a notice on page one of three in checkout:

Not Available At This Time
Sorry, we are not delivering to your region at this time.
Please contact us for alternate arrangements.

i have checked my zone setup and all is fine and as i said with a shorter table of rates it works?

1 Dec 2010, 4:40 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: table rate not working?!

I setup your table in a demo install of 1.3.9h and all but the last works
No zones set
I made the weight 100 so you can add in increments and you know your table
Try it **HERE**

1 Dec 2010, 4:42 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: table rate not working?!

The * has no place in the definition ... if you are trying to say everything above 2500 is 10, then instead of:

450:1.50,500:2.00,550:2.50,600:2.75,650:3.00,700:3.50,800:3.95,850:4.50,1100:5.0 0,1200:5.50,1300:6.00,1500:6.50,1600:7.00,1700:7.20,1750:7.40,1800:7.60,1850:8.5 0,2500:9.00,2600:10,*:10.00

use the setting:

450:1.50,500:2.00,550:2.50,600:2.75,650:3.00,700:3.50,800:3.95, 850:4.50,1100:5.00, 1200:5.50,1300:6.00,1500:6.50,1600:7.00,1700:7.20,1750:7.40, 1800:7.60,1850:8.5 0,2500:9.00,100000:10.00

1 Dec 2010, 4:49 PM
#7
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

thankyou ive just looked and your absolutely right, i tried adding 16 of them and it took it to 1700 lbs, which in my shop would not have displayed a price but worked fine in your demo.

im not sure why this is happening in that case? i have even looked into the phpmyadmin to see if the char limit had been restriced on the configuration value for MODULE_SHIPPING_TABLE_COST and it doesnt seem to have any limit on it at all so im not all together sure if this is whats actually wrong.

silly question, rather like how long is a piece of string :S but do you know of any other places where i may have been able to restrict the weight to 1600lbs? , i do have quite a few mods but im not using any other mods which affect the checkout process or the shipping /handling etc

1 Dec 2010, 4:51 PM
#8
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

ive just done a search in phpmyadmin for anything with 1600 set as its value on the off chance that it shows up and only the costs settings for the table show up as including this value.

im stumped :frusty:

1 Dec 2010, 4:52 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: table rate not working?!

silly question, rather like how long is a piece of string
Does yours work for any weight or does it just display "0"

1 Dec 2010, 4:56 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: table rate not working?!

Are you saying everything works properly right now with my setting ...

If so, you could of had a break in the text that I do not ...

1 Dec 2010, 4:56 PM
#11
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

thakyou Ajeh, i had taken that bit off before after Kobra's first reply but just to be sure ive copied and pasted your cost settings in your post and still no change.

i have also disabled the uk zone and no change either :/

i am concerned that your unable to recreate this issue and also the fact that searching for others with the same issue returns nothing? i know that you used 1.3.9h and i am using 1.3.8a perhaps this is some of the cause of that, however as i said before i have a number of mods (all tailored for my store of course) upgrading isnt really an option for me at the moment until these mods also suit the latest version of zen cart.

1 Dec 2010, 5:08 PM
#12
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

kobra:

Does yours work for any weight or does it just display "0"

i have the weight displayed at the top of my cart and it works up until 1600lbs, anything above it just displays n/a (i am using a mod which displays shipping in cart instead of shipping estimator)

Ajeh:

Are you saying everything works properly right now with my setting ...

no im afraid there is still no change even with your setting

i dont know if it will help or not but my site address is

l i v v y l o u . c o . u k

the best product (as the shop is not launched yet) to use and add to cart to recreate the problem is :

/index.php?main_page=product_info&cPath=61&products_id=566

as i have set these to weigh 50lbs each

up to 1600lbs gives the customer a price, anything above just states n/a and refuses to give a shipping method in checkout

testing login is:

username: [email protected]
pass: testing

1 Dec 2010, 5:18 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: table rate not working?!

Could you post all of your settings in the Configuration ... Shipping/Packaging ...

Could you also go to the Modules ... Shipping ... and click once on Table Rate table and post what is in the right side column for the settings ...

1 Dec 2010, 5:24 PM
#14
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

configuration / shipping

Country of Origin 	United Kingdom 	 
Postal Code 	ME4 6BA 
Enter the Maximum Package Weight you will ship 	100000 
Package Tare Small to Medium - added percentage:weight 	0:0
Larger packages - added packaging percentage:weight 	0:0
Display Number of Boxes and Weight Status 	0
Order Free Shipping 0 Weight Status 	0
Shipping Estimator Display Settings for Shopping Cart 	2
Display Order Comments on Admin Invoice 	1
Display Order Comments on Admin Packing Slip 	1
Shipping Rates in Cart - No Shipping Behaviour 	Display a word
Shipping Rates in Cart - Display Currency Code 	No 
Shipping Rates in Sidebox - Enable 	false
Shipping Rates in Sidebox - Suppress 	No
Shipping Rates in Sidebox - Display Currency Code   No

modules/ shipping

Enable Table Method
True

Shipping Table
450:1.50,500:2.00,550:2.50,600:2.75,650:3.00,700:3.50,800:3.95, 850:4.50,1100:5.00, 1200:5.50,1300:6.00,1500:6.50,1600:7.00,1700:7.20,1750:7.40, 1800:7.60,1850:8.5 0,2500:9.00,100000:10.00

Table Method
weight

Handling Fee
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
1
1 Dec 2010, 5:28 PM
#15
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

not sure why that has pasted with spaces on the table rate costs but it has no spaces in admin

1 Dec 2010, 5:28 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: table rate not working?!

Sounds like you might have some kind of customization to the Table Rate table file ...

If you compare the original file:
/includes/modules/shipping/table.php

from a clean v1.3.8 copy of the file, to the copy on the server ... are there any changes between the two files?

1 Dec 2010, 5:33 PM
#17
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

my file

    $this->tax_basis = MODULE_SHIPPING_TABLE_TAX_BASIS;
    // disable only when entire cart is free shipping
//bof disable if price over 50
 if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    }

// Check for Weight and display module if weight exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_total() > 50) {
  $this->enabled = false;
}
//end disable if price over 50
    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE_ZONE > 0) ) {

clean file

    $this->tax_basis = MODULE_SHIPPING_TABLE_TAX_BASIS;
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    }

    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE_ZONE > 0) ) {

this is the only difference winmerge has picked up, would this affect my cart ? i have no free shipping enabled at all at the moment, im also unsure of where this has come from to be quite honest?

1 Dec 2010, 5:36 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: table rate not working?!

Yes ... it says if the Order Total is over 50.00 it should turn OFF the shipping module and you will not see it so there will be NO shipping available ... :eek:

What do you want to happen when the Order is over $50.00 ... is the customer allowed to checkout? If so, what are you really trying to do with shipping when the order amount is over $50.00 ... :unsure:

1 Dec 2010, 5:40 PM
#19
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: table rate not working?!

ive removed that and all is working fine, i have no idea where that came from at all!!

thank you so much for your help! im sorry it was something so trivial!

1 Dec 2010, 5:44 PM
#20
ajeh avatar

ajeh

Oba-san

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

Re: table rate not working?!

Not a problem ... think how many others you helped by discovering that your code had been customized in such a way that you did not know why it could not work with certain amounts in the shopping cart that did not make sense ... :cool: