[support] MultiGeoZone MultiTable Shipping Module
#261
Posted 13 December 2011 - 04:55 PM
#262
Posted 14 December 2011 - 01:35 AM
#263
Posted 18 April 2012 - 12:31 PM
strobotron, on 01 June 2010 - 06:13 PM, said:
// 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??
#264
Posted 18 April 2012 - 05:36 PM
if($shipping_weight <= 250) {
$this->enabled = false;
return;
}
Change the 250 in each module to whatever weight you want.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#265
Posted 19 April 2012 - 11:00 AM
#266
Posted 01 May 2012 - 10:59 PM
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, 01 May 2012 - 11:00 PM.
#267
Posted 02 May 2012 - 07:46 PM
al3ks, on 01 May 2012 - 10:59 PM, said:
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?
[img]http://www.aquarist.info/pics1/MultiZone.jpg[/img]
Dan
Edited by Dan Cole, 02 May 2012 - 07:48 PM.
#268
Posted 02 May 2012 - 08:07 PM
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?
#269
Posted 02 May 2012 - 08:10 PM
al3ks, on 02 May 2012 - 08:07 PM, said:
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
#270
Posted 24 May 2012 - 07:53 PM
JorgeFernandes, on 25 August 2011 - 06:46 PM, said:
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
Hope it helps someone.
Jeanne
Edited by jeannek, 24 May 2012 - 07:55 PM.
#271
Posted 12 June 2012 - 01:15 PM
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, 12 June 2012 - 01:15 PM.
#272
Posted 17 July 2012 - 10:36 AM
#273
Posted 27 August 2012 - 07:03 PM
#274
Posted 19 September 2012 - 04:10 PM
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];
}
}
#275
Posted 19 September 2012 - 04:39 PM
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);
}









