Forums / Addon Shipping Modules / Regiontables - Weight decimal places

Regiontables - Weight decimal places

Locked

Views: 2,391

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Mar 2008, 11:36 AM
#1
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Regiontables - Weight decimal places

I'm setting up regiontables using weight calculation. I want to set a minimum weight limit in my table rates e.g

10.001-11:15.45,11.001:15.95,12:16.45

i.e disabled below 10Kg, then for 10.001kg to 11kg £15.45 & from 11Kg to 12 £15.95 etc.

problem is regiontables seems only to accept integers for weight. I can't find how to change it..i assume theres a setting in php somewhere?

What do I need to change to allow this?

Nigel

///////////////////////////////
UnderPressure
//////////////////////////////

4 Mar 2008, 10:49 AM
#2
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Re: Regiontables - Weight decimal places

10-11:15.45 will work but 10.001-11:15.45 will not.

i've trawled the forum and found some posts on using these ranges but can't find anything conclusive.

Any ideas guys... there must be a way to do this.

///////////////////////////////
UnderPressure
//////////////////////////////

5 Mar 2008, 5:04 PM
#3
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Re: Regiontables - Weight decimal places

I could not find a way to make range 10.001-11 work..

however around line 297 in \includes\modules\YOUR_TEMPLATE\regiontables.php
I found:

$minimum_limit = 0;
$maximum_limit = 0;

I changed to $minimum_limit = 10.001;

That disables the module for weights below 10.001 kgs.

///////////////////////////////
UnderPressure
//////////////////////////////

5 Mar 2008, 5:15 PM
#4
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Re: Regiontables - Weight decimal places

Under pressure:

however around line 297 in \includes\modules\YOUR_TEMPLATE\regiontables.php

should be:

includes\modules\YOUR_TEMPLATE*shipping*\regiontables.php

Nigel

///////////////////////////////
UnderPressure
//////////////////////////////

5 Mar 2008, 8:47 PM
#5
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Regiontables - Weight decimal places

Hi Nigel,

Under pressure:

should be:

includes\modules\YOUR_TEMPLATE*shipping*\regiontables.php

Actually, that should be:

includes\modules\shipping\regiontables.php

Also, you must have an older version of the module as the $minimum_limit = 0; line is on line 293 in the final version of Region Tables.

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.