osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Admin help with tep_get_zone_name()

This is a discussion on Admin help with tep_get_zone_name() within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I just installed version 2.2 and when I go to Admin : Configuration : My Store I get the following ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-30-2003, 05:36 PM
Lurker
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
segulah
Default Admin help with tep_get_zone_name()

I just installed version 2.2 and when I go to Admin : Configuration : My Store I get the following error:


QUOTE
"Warning: Missing argument 2 for tep_get_zone_name() in /home/game/public_html/shop/admin/includes/functions/general.php on line 270

Warning: Missing argument 3 for tep_get_zone_name() in /home/game/public_html/shop/admin/includes/functions/general.php on line 270 "



I have no idea why this happens. I even put my shipping zip code as well. I should also mention that my UPS shipping module doesn't work either. Here's the message it gives me at the time of checkout.


QUOTE
"United Parcel Service
An error occured with the UPS shipping calculations.
Invalid ShipperPostalCode
If you prefer to use UPS as your shipping method, please contact the store owner. "



The two might be related, so any help will be tremendously appreciated.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-19-2005, 05:58 AM
New Member
 
Join Date: Jan 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
slingshot
Default RE: Admin help with tep_get_zone_name()

I am getting the same UPS error - anyone know something to help the two of us, please?

Thanks

Sean
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-09-2006, 12:24 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default I am having this issue with a newly upgraded cart.

I get this in the My Store config screen.

Warning: Missing argument 2 for tep_get_zone_name() in /home/lewis/public_html/shop/admin/includes/functions/general.php on line 430

Warning: Missing argument 3 for tep_get_zone_name() in /home/lewis/public_html/shop/admin/includes/functions/general.php on line 430

You will also notice the blank line for the zone, no matter how I select it and modify it, it is always blank.

Background, this is a cart upgraded to OSCMax 2.0rc3 from osc1.2 using SQLyog (love it!) and updated the structure. I imported the data from the old cart (customers and orders etc) and so far as I can tell, it is all working properly.

The line in the error looks like this:
Code:
  function tep_get_zone_name($country_id, $zone_id, $default_zone) {

    $zone_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country_id . "' and zone_id = '" . (int)$zone_id . "'");

    if (tep_db_num_rows($zone_query)) {

      $zone = tep_db_fetch_array($zone_query);

      return $zone['zone_name'];

    } else {

      return $default_zone;

    }

  }
If you can't see the image I can email it or post it on a website.

Any help would be greatly appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 09:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax