-
Re: I don't know how to configure multi geo zones
includes/modules/shipping/zones.php
That is the file I suggest you start with. Good info is provided on how to at least, get a handle on what you want to do. And yes, for any new/customized; Country, City, Village, that you want entered, they must be manually added. Good news is that you only have to enter them once -- and backup that file.
-
Re: problems with configuring MZMT
Thanks a lot for your answer...getting closer, but still some things are not clear. I changed the number of zones to 5, but in Zencart admin there are added six rows, that's ok, every Zone needs three rows (ZoneCountry, ZoneShippingTable and ZoneHandlingFee), but without any text, they are just blank...which row stands for what? SAme order?
Still when I enter the Zones (location-taxes/zones) I can only put the country, zone and code, no city, no village...by the way, assuming I insert all the villages and then go to modules/shipping/zones...do I have to enter all the let's say 200 codes for one zone I have???
Maybe I have found already a solution...I found a thread where it says how to enter the states/provinces by dropdown
http://www.zen-cart.com/forum/showth...ht=cities+drop
so the client has to chose between the ones I inserted...and may not put a wrong one. I am going to try this out and see how far I get.
Thanks a lot for any help.
Kruna
-
EZ Pages no longer showing after install
Hello
I have just installed this on 1.35 (alls good as per normal) however none of my ez pages are now showing my ez page side box is on - and pages are all visable with sort orders but they are just not displaying on screen. totally stuck
I do have a back up so I can put back to before I installed - but I need this module - any ideas? help needed
-
Re: Zone rates & MZMT shipping modules, how to make it work properly?
::bump:: Anyone? I'd really like to figure out why my MZMT won't show up in the checkout process. I'm doing a test order from NC, which should be part of the lower 48....
-
Re: Zone rates & MZMT shipping modules, how to make it work properly?
OK, it is showing, but only the 'rest of the world' flat rate of $45. I've got rates for the US lower 48, and AK/HI/outlying, and when I change my address in the system, the rates still show $45 for 'rest of the world'.
I've got the store location set in admin......what am I missing here?
-
Re: Need Help with MZMT ... Checkout
I'm having the same issue. On a hunch, I checked the details for one of my zones, Shp: United States: 48, which came with MZMT. I ran the SQL, and it affected 49 rows, but only one state, Alabama, shows when I look at the details of the zone in admin. I suspect that you might have the same problem. Check the details on your 'Rest of the World' doesn't include Peru, as I suspect it will be why you're getting the higher rate.
I'm going to look at the SQL code for my area, and see if I can fix it, as adding each state by hand is a bit laborious.
-
Re: Need Help with MZMT ... Checkout
Sure enough, the SQL code wasn't correctly adding the states. I went into my PHPMyAdmin, and fixed it. Turns out that the geo_zone id was going in as '0', when it should have been '23' (in my db, yours will vary). I fixed that, and *voila*, states were in my list, and all is good!
-
Re: Need Help with MZMT ... Checkout
Quote:
Originally Posted by
meadwench
Sure enough, the SQL code wasn't correctly adding the states. I went into my PHPMyAdmin, and fixed it. Turns out that the geo_zone id was going in as '0', when it should have been '23' (in my db, yours will vary). I fixed that, and *voila*, states were in my list, and all is good!
Thank you for the information, but this does not help when some people are not able to do SQL coding, like myself.
Please give a detailed accounting of how you fixed it.
-
MZMT madness (help me please related)
TAKEN FROM INSTRUCTIONS:
Located in the `_geo_zones_sql` folder are some SQL files to import into your database for pre-built shipping zones. The following are the Geo Zones and their SQL file in this folder that you can just import into your Zen Cart database (setting them up by hand can be painstaking if they have a lot of zones/countries):
* United States (continental 48 + DC) - `US_48.sql`
* United States (Alaska & Hawaii) - `US_AKHI.sql`
* United States (APO/FPO) - `US_APOFPO.sql`
* European Union (entire European Union) - `EU_ALL.sql`
MY QUESTION IS WHERE EXACTLY DO I COPY THESE FILES IN MY ZENCART DATABASE? I CAN"T GET IT TO SHOW UP IN THE PULLDOWN MENU.
Thanks!
-
MORE MZMT MADNESS (uggghhh related)
TAKEN FROM INSTRUCTIONS:
1. Copy files from `_zen_cart_folder` to your Zen Cart install.
2. Import SQL file `_install_sql/INSTALL_v1.100.sql` to your DB.
3. Setup Pre-configuration from Admin -> Configuration -> MultiGeoZone MultiTable Shipping
4. Setup shipping Geo Zones (see Setting Up Geo Zones section of the Read Me document)
5. Install & setup module from Admin -> Modules -> Shipping -> MultiGeoZone MultiTable
RE: STEP 3. I DO NOT SEE "MultiGeoZone MultiTable Shipping" WHEN I GO TO ADMIN/CONFIGURATION. YET IT IS THERE IN STEP 5 DID I MISS SOMETHING?
Help is appreciated.
Thanks in advance.
-
Re: MZMT madness (help me please related)
please do not start a new thread for related problems.
-
Multiple geo zone shipping
Hello,
I am setting up the Multiple geo zone shipping module. I cannot seem to understand how to set up additional geo zones. I need to set up geozones for International shipping. The only choice that I currently have is: Shp: European Union: All. Any help would be greatly appreciated.
Thanks,
Lonney
-
Re: Multiple geo zone shipping
I am sorry, let me rephrase my question. I need to set up multiple zones in one country.
Thanks,
Lonney
-
Re: Multiple geo zone shipping
Have you installed the MZMT module for this?
-
Re: Multiple geo zone shipping
Thank-you for your response. Yes, I did install the MZMT module. The Only option I have for the Geo Zones are:
Shp: European Union: All
Shp: United States: 48
Shp: United States: AK & HI
Shp: United States: APO/FPO
I see the same choices under "Zone Definitions". I added another zone in Zone Definitions, but it does not show as an option under Geo Zones.
I have the United States zone set up with no issues. I need to set up 4 different zones for the reset of the world.
This is likely a really dumb oversight on my part. Thanks for your help.
Lonney
-
Re: Multiple geo zone shipping
I need to set up zones like this:
1: USA
2: Canada
3: Austria, Belgium, Great Britain, France, Germany, Greenland, Iceland, Ireland, Italy, Norway, Holland/Netherlands, Denmark, Poland, Spain, Sweden, Switzerland, Finland, Portugal, Israel, Greece
4: Japan, Australia, New Zealand, Singapore
5: Taiwan, China, Hong Kong
Thanks for any help.
Lonney
-
Re: Multiple geo zone shipping
For example when you added the zones (Locations/Taxes, Zones) for say Taiwan, China, Hong Kong, you need to then go into Locations/Taxes, Zone Definitions, create the zone name shp: Region 5 (or whatever you want to call it), then once created select "details" and then "insert". This will then allow you to 1. select Country, and 2. select Zone (as created above).
-
Re: Multiple geo zone shipping
THANK-YOU SO MUCH!!! That did it. Thanks again for your time and explanation.
Lonney
-
1 Attachment(s)
Strange characters with Shipping Estimator and MZMT
Ajeh and Kobra helped me out on getting the MZMT shipping module to display grams without the decimal points. Thanks again.
After changing these: (' . number_format($shipping_weight,0), the zero was a two, I get some strange characters showing up above my Shipping Estimator.
Attached Image
When I do a search with the Dev Tool Kit is turns up MZMT.php but there's no mention anywhere of these characters. I notice that the java script for the shipping estimator is coding into the page AND seems to be missing a bracket.
my page is located at ***** (sorry for the spaces. I wouldn't like my struggles showing up in Google.) :schmoll:
Thanks in advance for any help. Not detrimental or anything, just bugs me and might help others.
-
Re: Strange characters with Shipping Estimator and MZMT
Thanks but I actually lead you a stray on the decimal....
This one I do not have a direct answer for but looking at your page source on thi this is what is displayed:
Code:
<script language="javascript" type="text/javascript">
function shipincart_submit(sid){
if(sid){
document.estimator.sid.value=sid;
}
document.estimator.submit();
return false;
}
</script>
<form name="estimator" action="http://*****/index.php?main_page=shopping_cart" method="post"><input name="scid" type="hidden"><h2>Estimate Shipping Costs</h2>
I would copy and paste this string in the admin > tools > developers tools > search function and see if this is a stray entry or not first.
Also look to what you are using to edit these files, and I hope that you are using a "plain text" editor as other types might and do add unwanted characters.
Post back if you do or do not find anything
-
Re: Strange characters with Shipping Estimator and MZMT
Hi Kobra. Thanks is in order since you are there so quickly and you give me and others different ways of thinking how to solve our problems. Much appreciated.
Yes, I did find the characters in the Dev Tool Kit but couldn't find them in the mzmt.php file it refers to.
As for the funny characters. I use Dreamwever and direct editing via notepad. I'm aware of the WYSIWYG suibble but I think this is a case where the file is getting corrupted.
When I replace the file with the original, everything works fine. No strange characters. This is the error I'm getting when I try to move on to Step 2:
Warning: Cannot modify header information - headers already sent by (output started at public_html/includes/modules/shipping/mzmt.php:1) in /home/worldne/public_html/includes/functions/functions_general.php on line 46
-
Re: Strange characters with Shipping Estimator and MZMT
Quote:
When I replace the file with the original, everything works fine. No strange characters.
Try using notepad and a copy of the original and make the required edits and replace. See if the chracters reappear?? If dev tools finds them it should also indicate what line they are on & might be non displaying items.
Quote:
This is the error I'm getting when I try to move on to Step 2:
Step 2 of what? and Under what condition original file or edited file?
-
Re: Strange characters with Shipping Estimator and MZMT
I edited the files using notepad and WS_FTP Pro. Still the problem haracters.
By Step 2 I meant, when I go to order a product by clicking on the add to cart button, choose a shipping method and then click to continue, it gives me the error. It's related to the changes being made which then also relates to the funny characters.
I posted the entire mzmt.php file under this thread: http://www.zen-cart.com/forum/showthread.php?t=54381
-
Re: Strange characters with Shipping Estimator and MZMT
Look at the top of the file you edited that is on the server ...
You will more than likely find those characters in that file probably just above a: <?php or just below a ?>
-
Re: Strange characters with Shipping Estimator and MZMT
-
Re: MZMT Module not showing in checkout options
I'm having exactly the same problem. Tried fiddling the table method: weight, price and count to no avail. Also tried changing the sorting order from the default of "0" to "1".
Switched over to the default single-table module and that works.
Any help would be greatly appreaciated. Thanks!
-
Re: MZMT Module not showing in checkout options
with 1.3.6+ each module needs to have a sort order set and they all have to be different
-
Re: MZMT Module not showing in checkout options
Merlinpa: that's what I thought at first.
Anyway, am using Australian states as my zones. After a bit more fiddling around I've found that the customer's state must match exactly with the code for the zone. That is, if your code for Western Australia is "WA" then the customer's state must also be "WA".
Inadvertent editing of the customer details may cause this issue.
Hope this helps someone out there. :)
-
Re: MZMT Module not showing in checkout options
Note: it is not so much that v1.3.6 needs them to be set but rather we warn you when your settings will cause issues based on how they are set ... :smile:
-
MZMT table help, please. :)
Hi All,
I have been searching the forums for help on how to edit tables for the MZMT shipping module and cant' find what I am looking for. I was hoping you could help?:lamo:
I have installed the MZMT module and the sql database "`US_48.sql`". I can see the zones and MZMT module in the admin area. I want to set up shipping for the US only. Each state will have different shipping price based on weight.
Now that I have this set up, I would like to enter my custom shipping data into the table. How do I find the table to insert my shipping info into and what program do I use to do it? I have never used SQL/databases before so I'm not sure how it all works.
Thanks in advance for your guidance,
Adam
-
Re: MZMT table help, please. :)
If I understand what you want this is in the admin > modules > MZMT > and edit
The tables are there
-
Re: MZMT table help, please. :)
Quote:
Originally Posted by
kobra
If I understand what you want this is in the admin > modules > MZMT > and edit
The tables are there
I overcomplicated it. I see the tables now. Thank you.
I do have a second question if you don't mind. I would like to set different shipping prices based on weight for each U.S. State. Does that mean I have to set-up 50 different shp: GEO Zones (and therefore 50 different tables)? If yes, is there an easy way to do this or do I need to manually do them all?
Thank you!
Adam
-
Re: MZMT table help, please. :)
I do not know what shipper you intend on using, but I would let their shipping calculator do this work.....like if UPS or USPS or FEDEX.
Install their module in shipping and it will calculate the rate to the destination or is this not what you seek?
-
Re: MZMT table help, please. :)
Dear Kobra,
It's kind of what I am looking for. However, we will be using a Freight Forwarder and not UPS or Fedex. I'm not sure if they have a shipping calculator or not. I think I might have to input it all and make 50 Geo Zones, one for each state.
Thanks for the help,
Adam
-
MZMT Error message, please help.
Hi There,
I am setting up my MZMT shipping module. I thought I was doing everything right and then I got this error massage:
Warning: Variable passed to each() is not an array or object in /home/safety1/public_html/shop/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/safety1/public_html/shop/includes/classes/db/mysql/query_factory.php:114) in /home/safety1/public_html/shop/includes/functions/sessions.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/safety1/public_html/shop/includes/classes/db/mysql/query_factory.php:114) in /home/safety1/public_html/shop/includes/init_includes/init_templates.php on line 78
Warning: Cannot modify header information - headers already sent by (output started at /home/safety1/public_html/shop/includes/classes/db/mysql/query_factory.php:114) in /home/safety1/public_html/shop/includes/functions/functions_general.php on line 41
From my MZMT shipping module I have made 50 Geo Zones (one for each state) because I want to have specific shipping for each state. In config > Multi shipping multi table all 50 zones are there with 3 tables each. I have only added one GEO Zone in the "zone definitions"so far.
I didn't make any other changes to any files... I don't know much about mysql, but maybe I messed something up when I added 50 Geo Zones?
Please help! Thank you!
Adam
-
Help - warning message after installing module...
it seems that i have the same error, but not with the paypal module.
after installing the shipping module mzmt i get this error:
Code:
Warning: Variable passed to each() is not an array or object in /home/purityfa/public_html/ehandel/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/purityfa/public_html/ehandel/includes/classes/db/mysql/query_factory.php:114) in /home/purityfa/public_html/ehandel/includes/functions/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/purityfa/public_html/ehandel/includes/classes/db/mysql/query_factory.php:114) in /home/purityfa/public_html/ehandel/includes/init_includes/init_templates.php on line 78
if i wait some minutes everything works fine until i click on a link.
When i remove the shipping module everything works fine.
i am using ver 1.3.7
I have no idea on how i change the cache settings in zencart admin.
Can someone please help me with this?
Link to my shop:
www.viskarent.com/ehandel
-
Help
I have realy no clue what is cousing this error. Am totaly blind here... :cool:
Anyone who can give me a hint on what to do ?
-
Re: Help - Variable passed to each() is not an array
Quote:
Originally Posted by
DrByte
gads -- I was distracted ... I meant these settings:
Code:
define('STORE_SESSIONS', '');
define('SQL_CACHE_METHOD', '');
define('DIR_FS_SQL_CACHE', '');
I'm specifically looking at how you have things configured with respect to caching; hence the questions.
this is what my setings is in configure.php:
Code:
define('STORE_SESSIONS', 'db');
define('SQL_CACHE_METHOD', 'database');
define('DIR_FS_SQL_CACHE', '/home/purityfa/public_html/ehandel/cache');
-
Re: Help - Variable passed to each() is not an array - PayPal module
oops... i clicked the back button and dobble posted...
anyway... ill try to restore privously database and install module again and see what happens... i actualy do make backup... :)
-
Re: Help
that did not help...i have now tried averything i know... my knowlage on how to fix this is a bit limited...
-
shipping module not working
i guess i have to try to reinstall the whole zencart and see if it works... it is a lot of work to add inn all the data again... but a man got to do what a man got to do... :lamo:
-
Re: MZMT - Variable passed to each() is not an array
The each() error reported in query_factory is only a symptom of something being requested incorrectly somewhere else in the code. And, without writing a ton of debug code to find out what query is bringing back bad data etc, it's incredibly difficult to track down those particular problems. As such there's no "quick" solution ... hence the lack of responses to your posts.
I'm not so sure you need to re-install the whole cart. You probably have just put a new file in the wrong place or have some unexpected blanks in your settings for the module.
I haven't used the module myself, so cannot comment on it much ... but I've observed that many use it without problems.
Rather than re-installing and losing customization work and data, perhaps installing a fresh copy of Zen Cart in another folder would suffice? then re-apply the mod to that install. make sure it works. Then start comparing differences between working and busted sites ...and resolve issues that way.
-
Re: MZMT - Variable passed to each() is not an array
I have installed other modules.
Zone Rates
Group Pricing Per Item
swedish language
mabe it is a conflikt with some of the modules... ill try and remove them if i figre out how... :cool:
-
Re: MZMT - Variable passed to each() is not an array
I dont know what happened. But it seems like it is working perfectly now...
There is a God :cool:
-
Re: MZMT Error message, please help.
Same problem here...
i made 46 Geo zones and 1 table for each geo zone.
-
Re: MZMT Error message, please help.
I have 49 Geo Zone and 1 table or each zone.
When i order something from an adress in Geo Zone 1, 2 and 3 everything works fine, but when i order something from an adress from 4 and up it wont work.
This is the error i get when i order from an adress in Geo Zone 5:
Code:
Warning: constant() [function.constant[/URL]]: Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_5_TEXT_TITLE in /home/purityfa/public_html/ehandel/includes/modules/shipping/mzmt.php on line 67
Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_5_TABLE_1_TEXT_WAY in /home/purityfa/public_html/ehandel/includes/modules/shipping/mzmt.php on line 125
Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_5_ICON in /home/purityfa/public_html/ehandel/includes/modules/shipping/mzmt.php on line 134
I did change the number of Geo Zone before i installed the module in admin module shipping.
This is the table i use in Geo Zone 5:
Code:
1:77,4:80,6:97,11:106,16:130,40:137,60:152,80:169,100:182,150:247,200:296,250:343,300:393,350:438,400:484,450:529,500:570,550:614,600:660,650:705,700:745,750:792,800:836,850:879,900:922,950:961,1000:1006
I have not set a table for all 49 Geo Zone's yet, but i dont belive that will give this error.
-
Re: MZMT Error message, please help.
I tryed to reduce the Geo Zones to 10. Reinstalled the module and entered the table to all zones. No luck. Still gives the same error.
Is this a bug or shall i keep tring to get this to work?
Wuld love a hint on what to do to fix this... :cool:
-
Re: MZMT Error message, please help.
This is how my mzmt.php file is:
Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 Josh Dechant |
// | |
// | Portions Copyright (c) 2004 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: mzmt.php,v 1.101 2004-10-31 Josh Dechant Exp $
//
class mzmt {
var $code, $title, $description, $icon, $enabled, $num_zones, $num_tables, $delivery_geozone, $order_total;
function mzmt() {
global $order;
$this->code = 'mzmt';
$this->title = MODULE_SHIPPING_MZMT_TEXT_TITLE;
$this->description = MODULE_SHIPPING_MZMT_TEXT_DESCRIPTION;
$this->sort_order = MODULE_SHIPPING_MZMT_SORT_ORDER;
$this->tax_class = MODULE_SHIPPING_MZMT_TAX_CLASS;
$this->tax_basis = MODULE_SHIPPING_MZMT_TAX_BASIS;
$this->num_geozones = MODULE_SHIPPING_MZMT_NUMBER_GEOZONES;
$this->num_tables = MODULE_SHIPPING_MZMT_NUMBER_TABLES;
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_MZMT_STATUS == 'True') ? true : false);
}
if ($this->enabled == true) {
$this->enabled = false;
for ($n=1; $n<=$this->num_geozones; $n++) {
if ( ((int)constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $n . '_ID') > 0) && ((int)constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $n . '_ID') == $this->getGeoZoneID($order->delivery['country']['id'], $order->delivery['zone_id'])) ) {
$this->enabled = true;
$this->delivery_geozone = $n;
break;
} elseif ( ((int)constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $n . '_ID') == 0) && ($n == (int)$this->num_geozones) ) {
$this->enabled = true;
$this->delivery_geozone = $n;
break;
}
}
}
}
// class methods
function quote($method = '') {
global $order, $shipping_weight, $shipping_num_boxes, $template;
$this->quotes = array('id' => $this->code,
'module' => constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_TEXT_TITLE'),
'methods' => array());
$geozone_mode = $this->determineTableMethod(constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_MODE'));
if ($method) {
$j = substr($method, 5);
$shipping = $this->determineShipping(split("[:,]" , constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_TABLE_' . $j)));
if ($geozone_mode == 'weight') {
$shipping = $shipping * $shipping_num_boxes;
// show boxes if weight
switch (SHIPPING_BOX_WEIGHT_DISPLAY) {
case (0):
$show_box_weight = '';
break;
case (1):
$show_box_weight = ' (' . $shipping_num_boxes . ' ' . TEXT_SHIPPING_BOXES . ')';
break;
case (2):
$show_box_weight = ' (' . number_format($shipping_weight,2) . TEXT_SHIPPING_WEIGHT . ')';
break;
default:
$show_box_weight = ' (' . $shipping_num_boxes . ' x ' . number_format($shipping_weight,2) . TEXT_SHIPPING_WEIGHT . ')';
break;
}
}
$this->quotes['methods'][] = array('id' => 'table' . $j,
'title' => constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_TABLE_' . $j . '_TEXT_WAY') . $show_box_weight,
'cost' => $shipping + constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_HANDLING'));
} else {
for ($j=1; $j<=$this->num_tables; $j++) {
if (!zen_not_null(constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_TABLE_' . $j))) continue;
$shipping = $this->determineShipping(split("[:,]" , constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_TABLE_' . $j)));
if ($geozone_mode == 'weight') {
$shipping = $shipping * $shipping_num_boxes;
// show boxes if weight
switch (SHIPPING_BOX_WEIGHT_DISPLAY) {
case (0):
$show_box_weight = '';
break;
case (1):
$show_box_weight = ' (' . $shipping_num_boxes . ' ' . TEXT_SHIPPING_BOXES . ')';
break;
case (2):
$show_box_weight = ' (' . number_format($shipping_weight,2) . TEXT_SHIPPING_WEIGHT . ')';
break;
default:
$show_box_weight = ' (' . $shipping_num_boxes . ' x ' . number_format($shipping_weight,2) . TEXT_SHIPPING_WEIGHT . ')';
break;
}
}
$this->quotes['methods'][] = array('id' => 'table' . $j,
'title' => constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_TABLE_' . $j . '_TEXT_WAY') . $show_box_weight,
'cost' => $shipping + constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_HANDLING'));
}
}
if ($this->tax_class > 0) {
$this->quotes['tax'] = zen_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
}
if (zen_not_null(constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_ICON'))) $this->quotes['icon'] = zen_image($template->get_template_dir(constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_ICON'), DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . constant('MODULE_SHIPPING_MZMT_GEOZONE_' . $this->delivery_geozone . '_ICON'), $this->title);
return $this->quotes;
}
function check() {
global $db;
if (!isset($this->_check)) {
$check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_MZMT_STATUS'");
$this->_check = $check_query->RecordCount();
}
return $this->_check;
}
function install() {
global $db;
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable MultiRegion MultiTable Method', 'MODULE_SHIPPING_MZMT_STATUS', 'True', 'Do you want to offer multi-region multi-table rate shipping?', '6', '0', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_MZMT_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'zen_get_tax_class_title', 'zen_cfg_pull_down_tax_classes(', now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Tax Basis', 'MODULE_SHIPPING_MZMT_TAX_BASIS', 'Shipping', 'On what basis is Shipping Tax calculated. Options are<br />Shipping - Based on customers Shipping Address<br />Billing Based on customers Billing address<br />Store - Based on Store address if Billing/Shipping Zone equals Store zone', '6', '0', 'zen_cfg_select_option(array(\'Shipping\', \'Billing\', \'Store\'), ', now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_MZMT_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())");
for ($n=1; $n<=$this->num_geozones; $n++) {
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('<hr />Geo Zone $n', 'MODULE_SHIPPING_MZMT_GEOZONE_{$n}_ID', '', 'Enable this for the following geo zone.', '6', '0', 'zen_get_zone_class_title', '_cfg_pull_down_geozones(', now())");
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Geo Zone $n Table Method', 'MODULE_SHIPPING_MZMT_GEOZONE_{$n}_MODE', 'weight', 'The shipping cost is based on the total weight, total price, or total count of the items ordered.', '6', '0', 'zen_cfg_select_option(array(\'weight\', \'price\', \'count\'), ', now())");
for ($j=1; $j<=$this->num_tables; $j++) {
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Geo Zone $n Shipping Table $j', 'MODULE_SHIPPING_MZMT_GEOZONE_{$n}_TABLE_{$j}', '', 'Shipping table $j for this geo zone', '6', '0', now())");
}
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Geo Zone $n Handling Fee', 'MODULE_SHIPPING_MZMT_GEOZONE_{$n}_HANDLING', '0', 'Handling Fee for this shipping geo zone', '6', '0', now())");
}
}
function remove() {
global $db;
$db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
}
function keys() {
$keys = array('MODULE_SHIPPING_MZMT_STATUS', 'MODULE_SHIPPING_MZMT_TAX_CLASS', 'MODULE_SHIPPING_MZMT_TAX_BASIS', 'MODULE_SHIPPING_MZMT_SORT_ORDER');
for ($n=1; $n<=$this->num_geozones; $n++) {
$keys[] = 'MODULE_SHIPPING_MZMT_GEOZONE_' . $n . '_ID';
$keys[] = 'MODULE_SHIPPING_MZMT_GEOZONE_' . $n . '_MODE';
$keys[] = 'MODULE_SHIPPING_MZMT_GEOZONE_' . $n . '_HANDLING';
for ($j=1; $j<=$this->num_tables; $j++) {
$keys[] = 'MODULE_SHIPPING_MZMT_GEOZONE_' . $n . '_TABLE_' . $j;
}
}
return $keys;
}
function determineTableMethod($geozone_mode) {
global $total_count, $shipping_weight;
switch ($geozone_mode) {
case 'price':
if (method_exists($_SESSION['cart'], 'free_shipping_prices')) {
$this->order_total = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices();
} else {
$this->order_total = $_SESSION['cart']->show_total();
}
break;
case 'count':
if (method_exists($_SESSION['cart'], 'free_shipping_items')) {
$this->order_total = $total_count - $_SESSION['cart']->free_shipping_items();
} else {
$this->order_total = $total_count;
}
break;
case 'weight':
$this->order_total = $shipping_weight;
break;
}
return $geozone_mode;
}
function determineShipping($table_cost) {
for ($i=0, $n=sizeof($table_cost); $i<$n; $i+=2) {
if ($this->order_total >= $table_cost[$i]) {
$shipping_factor = $table_cost[$i+1];
}
}
if (substr_count($shipping_factor, '%') > 0) {
$shipping = ((($this->order_total*10)/10)*((str_replace('%', '', $shipping_factor))/100));
} else {
$shipping = str_replace('$', '', $shipping_factor);
}
return $shipping;
}
function getGeoZoneID($country_id, $zone_id) {
global $db;
// First, check for a Geo Zone that explicity includes the country & specific zone (useful for splitting countries with zones up)
$zone = $db->Execute("select gz.geo_zone_id from " . TABLE_GEO_ZONES . " gz left join " . TABLE_ZONES_TO_GEO_ZONES . " ztgz on (gz.geo_zone_id = ztgz.geo_zone_id) where ztgz.zone_country_id = '" . (int)$country_id . "' and ztgz.zone_id = '" . (int)$zone_id . "' and LOWER(gz.geo_zone_name) like 'shp%'");
if ($zone->RecordCount() > 0) {
return $zone->fields['geo_zone_id'];
} else {
// No luck… Now check for a Geo Zone for the country and "All Zones" of the country.
$zone = $db->Execute("select gz.geo_zone_id from " . TABLE_GEO_ZONES . " gz left join " . TABLE_ZONES_TO_GEO_ZONES . " ztgz on (gz.geo_zone_id = ztgz.geo_zone_id) where ztgz.zone_country_id = '" . (int)$country_id . "' and (ztgz.zone_id = '0' or ztgz.zone_id is NULL) and LOWER(gz.geo_zone_name) like 'shp%'");
if ($zone->RecordCount() > 0) {
return $zone->fields['geo_zone_id'];
} else {
return false;
}
}
}
}
function _cfg_pull_down_geozones($zone_class_id, $key = '') {
global $db;
$name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');
$zone_class_array = array(array('id' => '0', 'text' => 'Rest of the World'));
$zone_class = $db->Execute("select geo_zone_id, geo_zone_name from " . TABLE_GEO_ZONES . " where LOWER(geo_zone_name) like 'shp%' order by geo_zone_name");
while (!$zone_class->EOF) {
$zone_class_array[] = array('id' => $zone_class->fields['geo_zone_id'],
'text' => $zone_class->fields['geo_zone_name']);
$zone_class->MoveNext();
}
return zen_draw_pull_down_menu($name, $zone_class_array, $zone_class_id);
}
?>
I have now set Geo zone to 50 with one table each...
I dont understand much php, but it seems that when i sett the Geo zone to a number that is Higher than 3, it still acts like it is only 3 Geo Zones.
When i order something from Geozone 4 and up i get the same error. The errormessage change the number ekual to the zone.
this is from Geozone4:
Code:
Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_4_TEXT_TITLE in /home/purityfa/public_html/ehandel/includes/modules/shipping/mzmt.php on line 67
Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_4_TABLE_1_TEXT_WAY in /home/purityfa/public_html/ehandel/includes/modules/shipping/mzmt.php on line 125
Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_4_ICON in /home/purityfa/public_html/ehandel/includes/modules/shipping/mzmt.php on line 134
-
Re: MZMT Error message, please help.
i figured it out...
I dont know if it is a bug or that the module is not that userfriendly, but when the users change the Geo Zone number, it is not changing the mzmt.php language file. This must be done manualy.
this is the default variables:
Code:
define('MODULE_SHIPPING_MZMT_GEOZONE_1_TEXT_TITLE', 'United Parcel Service (UPS)');
define('MODULE_SHIPPING_MZMT_GEOZONE_1_ICON', 'shipping_ups.gif');
define('MODULE_SHIPPING_MZMT_GEOZONE_1_TABLE_1_TEXT_WAY', 'Ground');
define('MODULE_SHIPPING_MZMT_GEOZONE_1_TABLE_2_TEXT_WAY', 'Second Day');
define('MODULE_SHIPPING_MZMT_GEOZONE_1_TABLE_3_TEXT_WAY', 'Next Day');
define('MODULE_SHIPPING_MZMT_GEOZONE_2_TEXT_TITLE', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_2_ICON', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_2_TABLE_1_TEXT_WAY', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_2_TABLE_2_TEXT_WAY', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_2_TABLE_3_TEXT_WAY', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TEXT_TITLE', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_ICON', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TABLE_1_TEXT_WAY', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TABLE_2_TEXT_WAY', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TABLE_3_TEXT_WAY', '');
Here is only the 3 default Geozones defined. I figured out that i must add the codes to each Geozone manualy...
I must say that i am a bit proud over myself that i actually found this out of my own... :smartass:
There is no instructions in the readme file or anywhere else in the forums about this that i have found... but wait... now it is... :cool:
-
Re: MZMT Error message, please help.
okey... now i got this new error suddenly:
Code:
Warning: Variable passed to each() is not an array or object in /home/purityfa/public_html/ehandel/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/purityfa/public_html/ehandel/includes/classes/db/mysql/query_factory.php:114) in /home/purityfa/public_html/ehandel/includes/functions/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/purityfa/public_html/ehandel/includes/classes/db/mysql/query_factory.php:114) in /home/purityfa/public_html/ehandel/includes/init_includes/init_templates.php on line 78
Starting to get frustrated.... :cool:
-
Re: MZMT Error message, please help.
Its the same error i got before i got the Geozone error. One step forward, 2 steps back...
http://www.zen-cart.com/forum/showthread.php?t=60106
Continue will follow in other thread...
-
Re: MZMT - Variable passed to each() is not an array
Error is back again. God, why have you forsaken me ?
-
MZMT Questions
I have installed the shipping module and imported the database
however in Step 3 of the install it says Setup Pre-configuration from Admin -> Configuration -> MultiGeoZone MultiTable Shipping ..
I have 2 MultiGeoZone MultiTable Shipping entries under Admin -> Configuration ->
And both appear to have nothing under them to configure ...
I will be happy to give proper access to anyone that may know what I have mucked up :-)
Thanks,
Bob
:lamo:
-
Re: MZMT Error message, please help.
Quote:
Originally Posted by
dantien
There is no instructions in the readme file or anywhere else
It says so right in Section 3 of the README if you bother to read it. :sleepy:
-
Re: MZMT Error message, please help.
I apologize for writing that.
After reading the section 3 now again i understand what it meant. I did read it but did not understand what it meant until now... :blush:
Peace
-
Re: MZMT - Variable passed to each() is not an array
Status report:
Tryed to do what DrByte sugested and made a second zencart and try to figure out if there is something different. But did not find out what whas wrong. I gave up and started to do bild a new cart with all data. It did go a bit faster this tome tho.
The new cart works perfect with the MZMT module so far and i am very happy about that. Now i can get on with my life. :cool:
Peace
-
Re: MZMT - Variable passed to each() is not an array
Well...
The MZMT module worked perfectly to when i added a table in zone 16. All tables from to 1 to 15 works. And the funny thing is that if i clear the table 15 and ad it in zone 16 it works fine.
I also get the error if i add table 15 in both zone 15 and zone 16. So it seems like the max tables in the Geozones is 15 even if i add 50 Geozones. :cry:
Here is my shipping tables from 1 to 17:
Code:
Zone 1 Shipping Table
1:77,4:80,6:97,11:106,16:130,60:137,80:143,100:155,150:201,200:242,250:280,300:321,350:361,400:399,450:435,500:468,550:507,600:545,650:584,700:614,750:655,800:690,850:728,900:763,950:795,1000:833
Zone 2 Shipping Table
1:77,4:80,6:97,11:106,16:130,40:137,60:152,80:169,100:182,150:224,200:268,250:310,300:352,350:394,400:435,450:474,500:513,550:554,600:594,650:636,700:672,750:712,800:750,850:792,900:831,950:865,1000:906
Zone 3 Shipping Table
1:77,4:80,6:97,11:106,16:130,40:137,60:152,80:169,100:182,150:228,200:275,250:320,300:362,350:406,400:447,450:492,500:527,550:570,600:611,650:654,700:691,750:732,800:774,850:813,900:852,950:890,1000:933
Zone 4 Shipping Table
1:77,4:80,6:97,11:106,16:130,40:137,60:152,80:169,100:182,150:236,200:282,250:328,300:372,350:415,400:460,450:503,500:544,550:588,600:628,650:672,700:709,750:751,800:794,850:836,900:876,950:914,1000:959
Zone 5 Shipping Table
1:77,4:80,6:97,11:106,16:130,40:137,60:152,80:169,100:182,150:247,200:296,250:343,300:393,350:438,400:484,450:529,500:570,550:614,600:660,650:705,700:745,750:792,800:836,850:879,900:922,950:961,1000:1006
Zone 6 Shipping Table
1:77,4:80,6:97,11:106,16:130,40:152,60:172,70:193,90:212,150:256,200:307,250:357,300:403,350:451,400:498,450:544,500:585,550:635,600:677,650:723,700:767,750:812,800:856,850:902,900:945,950:984,1000:1030
Zone 7 Shipping Table
1:77,4:80,6:97,11:106,16:130,30:137,40:152,60:172,70:193,90:212,150:265,200:315,250:364,300:411,350:460,400:509,450:558,500:599,550:648,600:694,650:741,700:786,750:832,800:878,850:924,900:966,950:1010,1000:1059
Zone 8 Shipping Table
1:77,4:80,6:97,11:106,16:130,30:137,40:152,60:172,70:193,90:212,150:270,200:323,250:372,300:424,350:471,400:521,450:568,500:613,550:664,600:710,650:756,700:803,750:850,800:897,850:946,900:991,950:1030,1000:1083
Zone 9 Shipping Table
1:77,4:80,6:97,11:106,16:130,30:137,40:152,60:172,70:193,90:212,150:275,200:330,250:384,300:431,350:484,400:531,450:584,500:630,550:677,600:728,650:777,700:824,750:869,800:918,850:968,900:1011,950:1059,1000:1107
Zone 10 Shipping Table
1:77,4:80,6:97,11:106,16:130,30:137,40:152,60:172,70:193,90:212,150:280,200:338,250:392,300:444,350:497,400:547,450:596,500:641,550:695,600:744,650:794,700:838,750:890,800:940,850:989,900:1034,950:1080,1000:1132
Zone 11 Shipping Table
1:77,4:80,6:97,11:106,16:130,20:137,30:148,40:166,60:189,70:220,90:239,150:294,200:356,250:410,300:462,350:517,400:570,450:622,500:673,550:724,600:778,650:831,700:878,750:931,800:978,850:1033,900:1080,950:1129,1000:1180
Zone 12 Shipping Table
1:77,4:80,6:97,11:106,16:130,20:138,30:148,40:166,60:189,70:220,90:239,150:303,200:362,250:417,300:471,350:529,400:581,450:637,500:686,550:741,600:794,650:846,700:897,750:950,800:1001,850:1055,900:1103,950:1153,1000:1204
Zone 13 Shipping Table
1:77,4:80,6:97,11:106,16:130,20:138,30:148,40:166,60:189,70:220,90:239,150:308,200:371,250:428,300:484,350:541,400:595,450:652,500:700,550:756,600:812,650:863,700:914,750:969,800:1021,850:1076,900:1128,950:1178,1000:1230
Zone 14 Shipping Table
1:77,4:80,6:97,11:106,16:130,20:138,30:148,40:166,60:189,70:220,90:239,150:312,200:376,250:431,300:493,350:550,400:604,450:660,500:712,550:772,600:826,650:881,700:932,750:987,800:1042,850:1096,900:1147,950:1201,1000:1253
Zone 15 Shipping Table
1:77,4:80,6:97,11:106,16:130,20:138,30:148,40:166,60:189,70:220,90:239,150:315,200:379,250:438,300:498,350:558,400:613,450:672,500:724,550:786,600:840,650:897,700:951,750:1005,800:1062,850:1119,900:1171,950:1225,1000:1279
Zone 16 Shipping Table
1:77,4:80,6:97,11:106,16:130,20:138,30:148,40:166,60:189,70:220,90:239,150:317,200:381,250:445,300:503,350:563,400:622,450:684,500:735,550:797,600:855,650:910,700:968,750:1024,800:1083,850:1138,900:1193,950:1247,1000:1306
Zone 17 Shipping Table
1:77,4:80,6:97,11:106,16:130,20:138,30:148,40:166,60:189,70:220,90:239,150:323,200:392,250:454,300:517,350:580,400:641,450:701,500:759,550:824,600:884,650:945,700:1001,750:1062,800:1121,850:1183,900:1235,950:1294,1000:1356
Is there something i can do to add more that 15 tables in the Geozone without getting this error? :
Code:
Warning: Variable passed to each() is not an array or object in /home/purityfa/public_html/produkter/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/purityfa/public_html/produkter/includes/classes/db/mysql/query_factory.php:114) in /home/purityfa/public_html/produkter/includes/functions/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/purityfa/public_html/produkter/includes/classes/db/mysql/query_factory.php:114) in /home/purityfa/public_html/produkter/includes/init_includes/init_templates.php on line 78
-
Re: MZMT - Variable passed to each() is not an array
It seems to me that the tables have a limit of some sort. When i shorten all the tables i am able to add more tables in zone 16 and abow.
I cant shorten the tables to complete all Geozones, so this is a big problem for me...
-
Re: MZMT - Variable passed to each() is not an array
Another strange thing that i just discovered is that when i only have the 15 zones and the module is ok, I also get this error when i install another shipping module that is on the list in shipping module.
The shop is useless if i cant add a complete set of 39 Geozones. And hopefully one other shipping module like Zone Rates.
I wonder if i am writing so everyone understand.
What shuld i do ?
I got a lot of pressure on me to get this shop running, and i realy didnt think that this shipping module wuld stop me as it have done now in 2 weeks.
Please help...
-
Re: MZMT - Variable passed to each() is not an array
Does it have something to do with this?
"Lastly, there is a limit of 255 characters on each of the Zone Shipping Tables and Zone Countries. This can be changed in the database to suit your needs."
-
Help with MZMT please
I have multi zones set up for first class and priority with USPS. How do I make it so that my customers can only use first class up to a certain order amount and priority (zone 2) is the only option once the order goes over $10?
I tried searching but couldn't find anything.
Thanks!
-
Hope this is the right place to post this question on Multi-geozone module
Hi...
I posted this earlier in the shipping area, only to find out that I should post this question in the contribution area.
I have a cart 3.6 that is running the multi-geozone module. When you click on the cart's shipping estimator after adding a product, it brings up the following errors:
(Please note that I have removed the actual domain path for security reasons, but if anyone has any insight or needs to look, I'm glad to PM the path)
Warning: constant(): Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_4_TEXT_TITLE in /web/home/path/to/doamin.com/htdocs/includes/modules/shipping/mzmt.php on line 67
Warning: constant(): Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_4_TABLE_1_TEXT_WAY in /web/home/path/to/doamin.com/htdocs/includes/modules/shipping/mzmt.php on line 125
Warning: constant(): Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_4_ICON in /web/home/path/to/doamin.com/htdocs/includes/modules/shipping/mzmt.php on line 134
Shipping Estimate:
While if you fill in the blanks for the shipping estimator, it actually works, but I keep getting these errors, and they keep repeating. I've been trying for over a month to figure out what went wrong. It worked previously, then suddenly these errors showed up. Not sure if someone changed any settings in the admin, but I actually went into the admin to see if I could make any adjustments or if there were any settings that were wrong, and I haven't found anything. I also tried re-installing the estimator and the mzmt module, and still receive the same errors. Does anyone know how I can keep these errors from showing up on the shipping estimator? I'd be glad to list the domain and url to test and desperate for help on this one.
Thanks always for your help.
Kinget
-
Re: Hope this is the right place to post this question on Multi-geozone module
When you extended the number of Zones that you are using, did you update the language file to match them, per the instructions? :smile:
-
Re: Hope this is the right place to post this question on Multi-geozone module
Ah....I see. :lamo: Thank you. I didn't originally install that module into the cart, and don't have the instructions and couldn't find it in the archives. Strange, because it had worked previously when the cart was first set up. Is there a copy I can download? so I know how to add that in, and that would probably fix it, then...thanks so much for your help.
Quote:
Originally Posted by
Ajeh
When you extended the number of Zones that you are using, did you update the language file to match them, per the instructions? :smile:
-
Re: MZMT - Variable passed to each() is not an array
I have given up. Zen cart is not that easy to set up when one enconter an error, and the support on the forum here is not that good. Its a "fix it your self or wait for an update" or something.
When i was new to phpnuke and later dragonfly i always got a lot of support and help from the support forums, but it seems like there is not enough people on this project that can help the newbies that is trying to set this thing up.
-
Re: MZMT - Variable passed to each() is not an array
Quote:
Originally Posted by
dantien
Does it have something to do with this?
"Lastly, there is a limit of 255 characters on each of the Zone Shipping Tables and Zone Countries. This can be changed in the database to suit your needs."
Probably does.
Try this:
Code:
update configuration change configuration_value configuration_value text;
Your database will be a lot larger now, but if the 255-char limit is the cause, you should be free of it.
-
Re: MZMT - Variable passed to each() is not an array
-
MZMT shipping module
I'm having a hard time getting this module going. Finally got all the error messages cleared up from not adding the defines etc. but I can't get it to work with my zone definitions. It works great with the geo_zones that came with the module using the three tables I created in MultiGeoZone MultiTable so it's not the way I configured the tables. It's just not assigning these tables to the zone definitions I created myself in Admin/Locations-Taxes/Zone Definitions.
I used Shp: before each Zone Name in my Zone definitions and I added the country and zone for each. But when I assign that particular zone definition to my tables in modules/shipping/MultiGeoZone MultiTable nothing shows up in on the shipping page. If I then select the US 48 states of the zone definitions that came with the module in the drop down everything shows up on the shipping page with the numbers I have in my tables.
It's so frustrating! Do I dump it all and try again? If so, can I do this from phpMYAdmin without having to restore my site with a backup. I've done a lot of other changes since adding the MZMT module that would take me forever to redo. If I drop geo_zones and zones_to_geo_zones from in my database is that all that was added or changed when installing this mod?
Thanks to anyone who might be able to help.
Lisa
-
Re: MZMT shipping module
Did a clean install of zen-cart and the MZMT shipping module in another database and still it's not working. It works with the geo_zones that came with the module. Can't for the life of me figure out what the difference is between those and the zone definitions I create through admin. It's pretty simple to set up zones and zone definitions. Doesn't make any sense. I added the defines for additonal zones in includes/languages/english/modules/shippingmzmt.php file.
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TEXT_TITLE', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_ICON', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TABLE_1_TEXT_WAY', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TABLE_2_TEXT_WAY', '');
define('MODULE_SHIPPING_MZMT_GEOZONE_3_TABLE_3_TEXT_WAY', '');
Copied and pasted enough of these for all my additional tables by changing the 3 to the number of the other geozones. Is there something else I'm supposed to change too??????
Am I supposed to change something in the the includes/modules/shipping/mzmt.php file?
I assign my zone definitions and nothing.....
I'm ready to throw my hands up and look for another shipping module. Please, for those of you who have gotten this to work what am I missing?
Thanks so much,
Lisa
-
MZMT question..please!
Hi..not sure if this is the right place to ask this question...what a huge forum! But thanks to Dreamscape for the great MZMT shipping mod..I would have had to abandon Zen without it:-) Very new to this tho and I managed to get the MZMT mod working great..I know this has to be simple as only one other asked it last year, but how do I change the order so that MZMT does its shipping calculation AFTER all other discounts, or deductions have been applied to the base price in checkout? I dont understand all the order fields in the different options everywhere..do you put in 1..a 100 or what? I cant find any info on this and foirgive me as I know it must be basic:-) Thanks
-
Re: MZMT question..please!
admin > modules > order_total
-
Re: MZMT question..please!
Ahh..thanks for the pointer! I see now where the sorting is done..but I still cant make sense out of those numbers input for 'sort order'..200, 280, 840? I assume the ascending order of the numbers indicates the sequence they appear..but whats with the numbers..what do they mean? How do I know what numbers to inpuut??Why not just 1,2,3,4..etc to idicate their ordering?? Thanks for the insight!:-)
-
Re: MZMT question..please!
No idea on those specific numbers, but yes, actioned in ascending order.
With regard to "Why not 1,2,3,4 etc" ... if you want to change the order, you have to renumber everything. Not particularly onerous here, but if you are using sort numbers and have a hundred products numbered 1,2,3 ...99, 100, you're going to be a bit annoyed with yourself when you want to position a new item between 3 and 4! :laugh:
-
Re: MZMT question..please!
Ohhh..I didnt think of that..so the numbers you input for any ordering when that option is called for can be purely arbitrary huh? Interesting..I can see what you mean if you have many items to sort and order like products..wouldnt expect to have a hundred or more 'Order Total Modules" but I getcha ..wold probably work if I just put in 1,2,3,4,5...etc..have to check it out:-)
-
MZMT - Geo Zones not showing up when user signs up
Hey all
I have been trying to get my head around the MZMT mod for the best part of this week but I just don't seem able to get any success.
To simplify things I have just took out all my modifications, followed the install instructions to the letter but am simply not getting the desired results.
My understanding of it is that when a user signs up, they select a 'state' and it is this state that is used by the geo mod to determine the shipping price and options.
But... The Geo Zones I have created which are all prefixed 'shp' simply don't show up in the state drop down when a user signs up. So, when the user gets to the checkout it just offers a standard flat rate charge for shipping.
The only state that is available in the drop down when you sign up is the UK Tax Zone that I created for tax purposes.
Now, i am totally confused. I have installed, removed, installed again and simply cant get it working. I am pretty sure the problem is the relationship between geo zones and users but how on earth is this relationship created?
I have been reading tirelessly to figure this out and have also seen people mention the shipping estimator, now I don't have that as a pop-up so is this something else?
Now, the weird thing is this: When a user signs up the 'state/province' detail is a text box so you fill this in and then submit the form and it errors and asks for the user to make a selection from the 'state/province' drop down which is now magically a drop down box.
I am deeply apologetic that I have to bother the board with a question like this but somewhere between zones, zone
I think that the problem lies in my understanding (or mis'understanding) of the zones system but if someone could just point me in the general direction I am more than capable of figuring it out but I am just spinning wildly out of control at the moment.
Thanks to anyone that takes the time to help a weary old soldier. :)
Cheers
Marcus
-
Re: MZMT - Geo Zones not showing up when user signs up
Don't change or prefix these use the ISO codes and the cart will determine if the customer is in the zone or not.
-
multi-cat multi-country shipping HELP
Thanks everyone for a great forum where I can usually find what I am looking for without even needing to ask!
This time I'm stumped, though.
I am have a site which sells two different items , say widgets and thingamajigs.
Each widget has a $10 cost associated with its shipping within the US and each thingamajig has a $20 shipping cost to with the US.
The way we did this was use the "shipping by weight" method and articially put in 10 as the weight of each widget and 20 of each thingamajig and put in the rule that 1 unit weight is equal to $1 shipping.
So far so good.
Now we find we need to add another country to which the shipping will be twice as much (widget $20 and thingamajig $40)
As far as I can tell, there is no way to do this!
In any case, I can't seem to do this. Can anyone help? thanks
-
Re: multi-cat multi-country shipping HELP
There is a multi-zone/multi-table module that you can use. Click on my name and send me an email and I can return this to you.
-
Re: multi-cat multi-country shipping HELP
Ah! Thanks. You provided me with the name and I found it.
Youy are referring apparently to the dreamscape mod at http://www.dream-scape.com/pub/zencart/MZMT/
Let me see if this works for me. Thanks again!
-
Re: MZMT - Geo Zones not showing up when user signs up
Hi There
My thanks for the reply and sorry I have took so long to get back to you. I cant use ISO country codes as the different shipping zones I want to use are all in the UK.
Should I just delete my Tax Zone and create new zones and give them the tax settings I require and take it from there?
Cheers
Marcus
-
Re: MZMT - Geo Zones not showing up when user signs up
Create your zone in admin > localization/taxes > zone definitions
After this select it and in the left side box pick "details" then insert.
Select the country from the drop as United Kingdom and then your only choice for zone in this area is "All Zones"
If this is not sufficient for your needs you will have to create them in zones - see the ones for Austrailia there
-
Re: MZMT - Geo Zones not showing up when user signs up
Thanks again, I will take a look and let you know how I get on.
Mac
-
Re: MZMT - Geo Zones not showing up when user signs up
Hey There
I have this sorted now and it was my misunderstanding of the zones that caused the problem. I now have the geo zones setup and the actual zones as children of the geo-zones so everything is working as it should. (phew!)
But... and isn't there always a but - I now have another problem.
When a user registers, they enter address and then submit the form. It then throws an error and tells them to enter the state from a newly available drop down list and when they do this it allows them to submit the form.
This is ok, I can live with that to achieve the multi geo zone shipping functionality but now if a user tries to edit their address it does not let them. The form does not show the drop down states box and a submission causes the form to error and the user gets stuck as even after an error the states box is not shown.
Any one else had this problem and managed to overcome it?
Cheers (again)
Mac
-
MZMT bug in sign up + breaks edit address
Hey All
I have installed the Multi Zone Multi Table shipping module and it works great for what is supposed to do but I have hit a few small problems:
1 - When a user signs up the list of states is not shown till they choose country and submit the form. It then throws an error and asks them to submit a state.
2 - A user can not edit there address as it never displays the list of states and the form just errors each time you try to make a change.
---
Ok, we can live with number one, that is ok but number two needs sorting. Now, I am pretty sure that it is the mzmt module that has broken this but I am unsure how to fix it.
Any ideas?
P.S. I searched the whole board and this forum for an answer but could not find anything. Thanks again! Mac
-
Re: MZMT - Geo Zones not showing up when user signs up
A url to this
What Version of Zen Cart?
What server class?(win or 'nix)
-
Re: MZMT - Geo Zones not showing up when user signs up
The board is here:
http://www.akdappliances.co.uk/
You can simulate this by signing up and then trying to change your address. It allows you to select country but then tells you that you have not selected a country.
Very odd.
It is running in a *nix environment, all pretty standard stuff as far as I can tell.
You are a star kobra, you always answer my threads, If I can help you or your business in anyway for the help you have given me then I would be more than happy to.
Thanks again!
Marcus
-
Re: MZMT - Geo Zones not showing up when user signs up
What Version of Zen Cart?
The country dropdown was an issue I think in 1.3.5 but I am not sure if it was at this screen??
-
Re: MZMT - Geo Zones not showing up when user signs up
Version information gives me this:
Zen Cart 1.3.7
Database Patch Level: 1.3.7
v1.3.7 [2007-07-09 12:35:54] (Fresh Installation)
-
Re: MZMT - Geo Zones not showing up when user signs up
Looking your template looks to be one based upon a template monster layout - is this correct?
CHeck the files that were with this template that may be of an older version as they are noted for this
-
Re: MZMT - Geo Zones not showing up when user signs up
Ahh, that sounds plausible. I did find it curious that the versions on these templates seem to just jump up versions as they need to. I guess they test with the basic functionality and if all is ok then they up the version number. A bit naughty really.
I have had a pretty bad run of it with this template as it goes and my big push after getting this done is to figure out how to completely redesign them myself as this black void of knowledge with regards to how everything works is all pretty annoying.
So... if I download the latest version and compare some files such as 'tbl_modules_create_account.php' & 'tpl_account_edit_default.php' from the 'includes/templates/<my template/templates/ then I could attempt to update them from and see if it fixes the issue?
Well, I will give that a go, and report back. If anyone has any suggestions that would be ace and thanks to all that have contributed to helping me with this problem. I am building up knowledge and should hopefully be able to give something back to the community soon. :)
Cheers again all
Marcus
-
Re: MZMT - Geo Zones not showing up when user signs up
Ok, i have updated a bunch of pages but I still have a problem when trying to update an address on the address_book_process page.
I compared the following files from my template directory with the template_default directory and they were all from about the end of 2005 to the beginning of 2006.
tpl_account_default.php
tpl_account_edit_default.php
tpl_account_history_default.php
tpl_account_history_info_default.php
tpl_address_book_process_default.php
tpl_modules_create_account.php
tpl_modules_product_listing.php
The ones I replaced them with were about six months newer so there was definitely old files being used.
But, as I said, this has not fixed the problem so... is there any other files you would recommend I update? Is there any function files or anything else that could be causing the issue.
Thanks again all!
Marcus
-
Re: MZMT - Geo Zones not showing up when user signs up
Quote:
The ones I replaced them with were about six months newer so there was definitely old files being used.
I hope that you did not just replace with later files??
What you need to do is "merge" the changes that the original (module) file made for it's function with those changes in any updated file to allow the module to function
-
Re: MZMT - Geo Zones not showing up when user signs up
Hey Kobra
Yeah, I just replaced the files in my template directory with the newer ones from the template_default folder and this did not break anything but it did not fix the issue either.
I checked the differences between the files and they seemed like bug fixes and small tweaks really rather than anything major though.
so... when you say: "What you need to do is "merge" the changes that the original (module) file made for it's function with those changes in any updated file to allow the module to function"
How would I go about this? Is there anyone using the MZMT mod who has modified these files and if so how would I go about identifying what differences there are and in what files.
Thanks for the help again, thought I was making a bit of progress so, Doh!
-
Re: MZMT - Geo Zones not showing up when user signs up
Get either the free winmerge or buy BeyondCompare or another "diff tool".
These load and compare 2 minium files, and highlight the differences.
There is the mod file with changes/additions to the original for the purpose of making the mod work. Then there are Zen Cart changes between versions(only some files) that contain alterations for at least one of several reasons and these changes are normally required to make the version function as expected.
The diff tool allows one to locate and see the differences easier. The best solution is to obtain the same original file that the mod file was created from and compare all 3 so one can tell what was orig , what the mod altered/added and what the current file has. And tell what are changes between the orig and the current and what the mod differences are, and then you can incorporate these mod changes into the current file.
The only hang here is if you uncover that there are lines that were in the orig that the mod changed and they are then again changed in the current. As in this case, the current code is most likely required for porper function and the mod altered code would require a re-write based upon the new/current code.
More difficult if you have several mods and find that there are changes to the same file for more than one mod
-
Re: MZMT - Geo Zones not showing up when user signs up
Look at the files and find this type of entry to compare if the file is of the same vintage
Code:
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_search_header.php 4142 2006-08-15 04:32:54Z drbyte $
-
Re: MZMT - Geo Zones not showing up when user signs up
Ahh, ok, thanks again. That sounds doable if not a massive pain the arse.
Ok, I will dive in and take a look.
Thanks again for your help!
Marcus
-
Export SQL table for mzmt zones for Australia
Hi all,
I have set up the international zones in admin>locations/taxes>zone definitions according to Australia Posts' zones.
How do I export and which tables do I export so that other Aussies are saved the time and effort of defining those international zones?
I also think that my includes>languages>modules>shipping>mzmt.php file would go with the sql file.
I think that clear detailed instructions on creating the sql file would be very helpful to lots of zenners.
Thanks in anticipation, Alan.
-
How to Set Up Percent of Total Shipping in MZMT ?
Hello All,
I've been sorting through the different forums here and I've noticed that people have recommended the MZMT add-on module for calculating percentage of total shipping on orders within zen-cart. Nobody seems to have the issue I'm having either which leads me to believe I'm missing something extremely simple. I downloaded the module, read the instructions and installed the appropriate databases. According to the instructions, I should be able to calculate shipping as a percentage of the total amount by entering a percentage value in the table. However, when I do this it's as if MZMT is ignoring the percent sign and seeing the number as an absolute value. The instructions specifically say that percent signs are allowed within the table. Here's what I currently have in my shipping table:
I want shipping to be calculated as ten percent of the total amount for orders up to $5,000. Instead, the shopping cart shows a shipping charge of $10.00. What steps am I missing? I should also add that I do have the calculation method set to calculate shipping based on price.
Thank you for any help provided.
Brad
-
Re: How to Set Up Percent of Total Shipping in MZMT ?
Nevermind. I found the problem. My ftp client never transferred the php shipping module file or the language file over to the server. The problem is fixed.
-
Re: multigeo multizone please
Small issue with this installation...
I've set up my various zones without a hitch...
But it's doing somthing strange, when the total weight (or shipping cost) goes over a certain amount, it drops off the handling fee.
I used it to estimate the same freight, along side zone shipping with the same table rates... and the MTMZ comes out at $5 less (my handling fee). Only when the weight goes over a certain amount (im not totally sure what that amount is), under the unknown amount they calculate the freight the same, with the handling fee.