Latest News: (loading..)
dreamscape

[support]?MultiGeoZone MultiTable Shipping Module

380 posts in this topic

After testing the latest version I find that if I have a item weight of 0.49 and a table of 0.5:$9.65,20:$11.40 the postage cost on checkout is $0.00 if I change the table 0.5 to say 0.2 the checkout postage is $9.65. Any idea's as I would have thought the table was based on up to the appropriate weight?

 

Thanks

Try starting it with a ZERO weight....ie 0.0:$x.xx,0.5:$9.65,20:$11.40

 

Dan

Share this post


Link to post
Share on other sites

I've installed your excellent contribution but have a problem. I set up 2 zones, one for UK and one for ireland. The UK works as expected. My Irish zone doesn't show. I spotted the reason, I had set up in my tax zone for the UK 'Shp:UK' Ireland - All Zones. Also had this set-up in 'Shp:Ireland' So basically, I had Ireland - All Zones in both. Now, when I delete the Ireland Zone from 'Shp:UK' the shipping method shows as expected, hurrah. But, deducts the VAT, I set a flat rate of 10 to all orders based on a weight of 0, from the total. So, when I should have a total of say, £4.99 my total is £4.16. VAT is £0.83.

 

Any ideas as to how I can get this working properly?

Share this post


Link to post
Share on other sites

I have installed this and it work great but when the email is sent to the user after order confirmation the 'MODULE_SHIPPING_MZMT_GEOZONE_1_TEXT_TITLE' dosn't add a Line Feed so the next item is on the same line. eg below note the GST is on the same line as the freight type???

 

Anyone know what part of the mzmt.php file I need to change to fix this?

 

Part of email sent to buyer:-

.

.

.

 

Products

------------------------------------------------------

1 x DVD 1806 - 3GHz Reclocking SDI Distribution Amplifier (D VD 1806) = $633

------------------------------------------------------

Sub-Total: $633

Shipping within NSW (1 kg) (Standard Shipping): $11 GST 10.0%: $58 <------Note this should be on the next line????

Total: $644

Share this post


Link to post
Share on other sites

i have install the US, Europe SQL files no problem. Now i am looking for additionalSQL files for the rest of the world (India, China, Australia etc)

 

any ideas where i would find any?

Share this post


Link to post
Share on other sites

Have installed and works great, only question is how to remove the (3lb) on the line for the shipping, I have set for price not weight.

Share this post


Link to post
Share on other sites

Steve,

 

The 3lbs is what you have set the TARE to. You can change that in the admin area under configuration>> shipping/packaging

 

 

 

Chris

Share this post


Link to post
Share on other sites

I am in need of a multiplication function where I multiply the number I put in the weight field by the number I put in the Geo Zone Shipping Table.

 

Your help is appreciated.

Share this post


Link to post
Share on other sites

i have a store using your plugin and my client want to know if you can use % in the table set up?

 

his question is as follows:

 

The variables isn't set to package weight, the table is for price (the table rate is set to price). For example, in my screenshot I have 30:5.99,60:7.99,100:10.99,10000:%12 that means...

 

$0-30 = $5.99

$30.01-60 = $7.99

$60.01-100 = $10.99

 

What I'm trying to do is set it so that an order that is over $100 has to pay 12% of the sub-total for shipping. Hence the 10000:%12. That doesn't work. It doesn't see or calculate the %12. What it does is when an order is placed that is over $100, it places a rate of $12 for shipping. That's not what we want. I'd like to know how I can make it so that it charges %12. That's how our agreement works with our supplier.

 

 

can you have a % or does it have to be a number only

 

cheers

G90

Share this post


Link to post
Share on other sites

As far as I know this contribution doesn't support percentages just fixed amounts. If you're up to it I'm sure you could modify it do what you want though or you could always contact the original author for an estimate on the cost to do so....Josh has modified this contribution for me in the past.....dan

Share this post


Link to post
Share on other sites

Bump -- still trying to figure this out... saw something similar for another contribution that went something like this:

 

// class methods

function quote($method = '') {

global $order, $cart, $shipping_weight, $shipping_num_boxes;

if($shipping_weight > 250)

{

$this->enabled = false;

return;

}

 

but don't know how to apply this to MultiGeoZone

 

Any ideas?

 

Thank you!

 

Hi, did you somehow manage to get this extra option to work? I'm struggling with the same problem...

 

I use mzmt with 3 Geozones now and it works quite okay. The only thing is, I have a few items which would fit in a mail slot or box so I used weight to give those a lower shipping fee (for one Geozone now, the others are based on count). But, when it gets to the size of a proper package (weight above xxx) I would like to have only package shipment available. Is this possible??

Share this post


Link to post
Share on other sites

Yes, you can use the quoted code to disable the module for a weight higher than indicated (250 in the example). You would need another module to handle shipping above that weight, and you would add this to that other module:

 

if($shipping_weight <= 250) {
$this->enabled = false;
return;
}

 

Change the 250 in each module to whatever weight you want.

 

Regards

Jim

Share this post


Link to post
Share on other sites

Thanks! So it disables the whole shipping module (mzmt) then. In that case I would have to use another module, especially for the mailbox shipment below a certain weight. Will have a try with this! Thanks again.

Share this post


Link to post
Share on other sites

I have installed this contribution and I set up the geo zone 1 to price and added a shipping fee,

But when I go to the store in checkout it says MultiGeoZone MultiTable3 (3 lbs) and nothing elese, no price... ? And I set to price and it shows 3lbs? I tried to fix it multiple times but really don't know what it is.

 

Any ideas?

Edited by al3ks

Share this post


Link to post
Share on other sites

I have installed this contribution and I set up the geo zone 1 to price and added a shipping fee,

But when I go to the store in checkout it says MultiGeoZone MultiTable3 (3 lbs) and nothing elese, no price... ? And I set to price and it shows 3lbs? I tried to fix it multiple times but really don't know what it is.

 

Any ideas?

Do you have it configured so that it looks something like this?

 

MultiZone.jpg

 

Dan

Edited by Dan Cole

Share this post


Link to post
Share on other sites

Mine looks like this:

 

http://img831.imageshack.us/img831/1407/screenshot5642.jpg

 

The thing is I want it to work by price. So depending what country the customer is from the shipping cost will be either smaller or higher.

Also I don't know how to add a geo zone to the list, how can I add UK?

 

It needs to be set up under the tax zones....have a look at the instructions...it explains how to do that and I'm thinking it'll solve your problem.

 

Dan

Share this post


Link to post
Share on other sites

Thanks Chris but the problem persist.

I tried another value and same problem.

 

Hi

 

I am posting this for the sake of anyone who may not have found a solution for the error "#1062 - Duplicate entry '0' for key 'PRIMARY". (Sorry if it's already been posted elsewhere.) This is what worked for me...

 

When importing the SQL script into osc 2.3.1 using phpMyAdmin, I got the error: "#1062 - Duplicate entry '0' for key 'PRIMARY". Amending the the script did not sort it out. Instead, I realised that I needed to UNCHECK the following in order for it to be imported sucessfully:

  • Do not use AUTO_INCREMENT for zero values

It seemed to work ok with the same database that I had attempted on before but to be on the safe side I renamed the database, created a new database for osc using the original database's name, and then imported the database structure and data from a backup copy (which I had made before attempting to install this mod). After testing and confirming that all was well, I deleted the database in which I had initially run the script.

 

Hope it helps someone.

 

Jeanne

Edited by jeannek

Share this post


Link to post
Share on other sites

Hello everyone! Have been reading this topic and got great help thanx!

 

I do have one question though, I am trying to calculate the cost per additional weight, have installed the latest update. Think its rather simple but I am just stack.

 

Up to 2kg the cost is 6.62, and for each extra kg is 2.07 more

 

I wrote this in Geozone field: 1:$6.62,1:2.07*

 

for a 4kg item I should get 10.76 instead I keep geting 6.62.

 

Any ideas???

 

Thanking in advance!

Edited by constantinos

Share this post


Link to post
Share on other sites

hello i have an installation of multi Geo Zones, When I checkout, it is calculating the weight properly, but is showing a zero value for shipping. I have checked the way the rates have been added in admin and it looks correct. also it shows another zone, very different of the custumer i'm using to make tests. I have already uploaded the SQL Files

Share this post


Link to post
Share on other sites

constantinos - looks like need to make a code change to pick the correct token. (in bold)

 

 

 

function determineShipping($table_cost) {

global $shipping_num_boxes;

 

for ($i=0, $n=sizeof($table_cost); $i<$n; $i+=2) {

if ($this->order_total <= $table_cost[$i]) {

$shipping_factor = $table_cost[$i+1];

$previous_weight = $table_cost[$i-2];

$previous_cost = $table_cost[$i-1];

$current_weight = $table_cost[$i];

}

}

Share this post


Link to post
Share on other sites

done a debug on this with * function.. - [0.01:$0,0.5:$30,1:$40,1.5:10*]

 

 

for ($i=0, $n=sizeof($table_cost); $i<$n; $i+=2) {

if ($this->order_total <= $table_cost[$i]) {

$shipping_factor = $table_cost[$i+1];

$previous_weight = $table_cost[$i-2];

$previous_cost = $table_cost[$i-1];

$current_weight = $table_cost[$i];

}

echo "DEBUG[" . $shipping_factor . "]<br>";

if (strlen($shipping_factor) == 0) {

$n=sizeof($table_cost);

$shipping_factor = $table_cost[$n-1];

$previous_weight = $table_cost[$n-4];

$previous_cost = $table_cost[$n-3];

$current_weight = $table_cost[$n-2];

}

}

if (substr_count($shipping_factor, '%') > 0) {

$shipping = ((($this->order_total*10)/10)*((str_replace('%', '', $shipping_factor))/100));

} elseif (substr_count($shipping_factor, '*') > 0) {

$weight_measure = $current_weight - $previous_weight; //Find out how much is each additional factor eg. additional 0.5 lb or additional 1 lb

$add_cost = ceil((($this->order_total - $previous_weight)/$weight_measure)) * (str_replace('*', '', $shipping_factor)); //How many additional shipping cost

$shipping = str_replace('$', '', $previous_cost) + $add_cost;

} else {

$shipping = str_replace('$', '', $shipping_factor);

}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now