Jump to content



Latest News: (loading..)

* * * * - 1 votes

[support] MultiGeoZone MultiTable Shipping Module


  • Please log in to reply
274 replies to this topic

#261   garf90

garf90
  • Members
  • 46 posts
  • Real Name:Garfield Griffiths
  • Gender:Male

Posted 13 December 2011 - 04:55 PM

anyone...
Garfield: WP Online Store. "The osCommerce plugin for WordPress"

#262   Dan Cole

Dan Cole
  • Community Sponsor
  • 233 posts
  • Real Name:Dan Cole
  • Gender:Male
  • Location:Ontario, Canada

Posted 14 December 2011 - 01:35 AM

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

#263   ShopAdminNL

ShopAdminNL
  • Members
  • 15 posts
  • Real Name:LeoS

Posted 18 April 2012 - 12:31 PM

View Poststrobotron, on 01 June 2010 - 06:13 PM, said:

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

#264   kymation

kymation

    Believers

  • Community Sponsor
  • 6,758 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 18 April 2012 - 05:36 PM

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
My Addons

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   ShopAdminNL

ShopAdminNL
  • Members
  • 15 posts
  • Real Name:LeoS

Posted 19 April 2012 - 11:00 AM

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.

#266   al3ks

al3ks
  • Members
  • 288 posts
  • Real Name:Aleksander
  • Gender:Male
  • Location:UK

Posted 01 May 2012 - 10:59 PM

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, 01 May 2012 - 11:00 PM.

Find this post helpful? Click the 'Like this' button. :)

#267   Dan Cole

Dan Cole
  • Community Sponsor
  • 233 posts
  • Real Name:Dan Cole
  • Gender:Male
  • Location:Ontario, Canada

Posted 02 May 2012 - 07:46 PM

View Postal3ks, on 01 May 2012 - 10:59 PM, said:

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?

[img]http://www.aquarist.info/pics1/MultiZone.jpg[/img]

Dan

Edited by Dan Cole, 02 May 2012 - 07:48 PM.


#268   al3ks

al3ks
  • Members
  • 288 posts
  • Real Name:Aleksander
  • Gender:Male
  • Location:UK

Posted 02 May 2012 - 08:07 PM

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?
Find this post helpful? Click the 'Like this' button. :)

#269   Dan Cole

Dan Cole
  • Community Sponsor
  • 233 posts
  • Real Name:Dan Cole
  • Gender:Male
  • Location:Ontario, Canada

Posted 02 May 2012 - 08:10 PM

View Postal3ks, on 02 May 2012 - 08:07 PM, said:

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

#270   jeannek

jeannek
  • Members
  • 1 posts
  • Real Name:Jeanne

Posted 24 May 2012 - 07:53 PM

View PostJorgeFernandes, on 25 August 2011 - 06:46 PM, said:

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, 24 May 2012 - 07:55 PM.


#271   constantinos

constantinos
  • Members
  • 4 posts
  • Real Name:Konstantinos

Posted 12 June 2012 - 01:15 PM

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, 12 June 2012 - 01:15 PM.


#272   constantinos

constantinos
  • Members
  • 4 posts
  • Real Name:Konstantinos

Posted 17 July 2012 - 10:36 AM

anyone?

#273   orlando palacios

orlando palacios
  • Members
  • 2 posts
  • Real Name:orlando palacios

Posted 27 August 2012 - 07:03 PM

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

#274   Bonnie

Bonnie
  • Members
  • 17 posts
  • Real Name:Bonnie

Posted 19 September 2012 - 04:10 PM

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];
        }
      }

#275   Bonnie

Bonnie
  • Members
  • 17 posts
  • Real Name:Bonnie

Posted 19 September 2012 - 04:39 PM

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