Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! UPSChoices not showing shipping methods in Admin


Guest

Recommended Posts

Posted

All,

I've installed the latest version of osc, and just installed UPSChoices 1.8. There were no existing UPS modules in the osc install, so I know I have the right ups.php module, and the changes are are extremely simple.

 

Everything seems to install and run properly, except that the module does not present any shipping choices in the admin screen (all are shown at the checkout).

 

I also don't see any rows in the configuration table for ups shipping options which seems *very* odd. Pictures of the config setup, configuration table and the file mods are included.

 

I'm stumped - any help would be appreciated!

Thanks,

russ

 

Admin Options:

=================

Enable UPS Shipping

True

Do you want to offer UPS shipping?

True

UPS Pickup Method - How do you give packages to UPS?

RDP

UPS Packaging?

CP

Residential Delivery?

RES

Handling Fee

0.00

Tax Class

Use the following tax class on the shipping fee.

--none--

Shipping Zone

If a zone is selected, only enable this shipping method for that zone.

--none--

Sort order of display.

0

 

=================

DB configuration table for UPS:

=================

MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID 0 Set the status of orders made with this payment mo... 6 0 NULL 2007-03-23 16:56:21 tep_get_order_status_name tep_cfg_pull_down_order_statuses(

286 Sort order of display. MODULE_SHIPPING_UPS_SORT_ORDER 0 Sort order of display. Lowest is displayed first. 6 0 NULL 2007-03-23 18:45:36 NULL NULL

285 Shipping Zone MODULE_SHIPPING_UPS_ZONE 0 If a zone is selected, only enable this shipping m... 6 0 NULL 2007-03-23 18:45:36 tep_get_zone_class_title tep_cfg_pull_down_zone_classes(

284 Tax Class MODULE_SHIPPING_UPS_TAX_CLASS 0 Use the following tax class on the shipping fee. 6 0 NULL 2007-03-23 18:45:36 tep_get_tax_class_title tep_cfg_pull_down_tax_classes(

281 UPS Packaging? MODULE_SHIPPING_UPS_PACKAGE CP CP - Your Packaging, ULE - UPS Letter, UT - UPS Tu... 6 0 NULL 2007-03-23 18:45:36 NULL NULL

251 Sort Order MODULE_SHIPPING_USPS_SORT_ORDER 4

=================

Posted

Figured it out:

 

1. I changed the code fix in admin/modules.php

from this:

switch ($HTTP_GET_VARS['action']) {

to this:

switch ($action) {

 

2. the upschoices.zip file does NOT include the file /admin/includes/languages/english/modules/shipping/ups.php. This file is different than the /admin/modules/shipping/ups.php included. )missing file contents shown below)

 

=================

<?php

/*

$Id: ups.php,v 1.1.1.1 2005/08/16 08:31:31 sstolyarov Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('MODULE_SHIPPING_UPS_TEXT_TITLE', 'United Parcel Service');

define('MODULE_SHIPPING_UPS_TEXT_DESCRIPTION', 'United Parcel Service');

define('MODULE_SHIPPING_UPS_TEXT_OPT_GND', 'UPS Ground');

define('MODULE_SHIPPING_UPS_TEXT_OPT_1DM', 'Next Day Air Early AM');

define('MODULE_SHIPPING_UPS_TEXT_OPT_1DA', 'Next Day Air');

define('MODULE_SHIPPING_UPS_TEXT_OPT_1DP', 'Next Day Air Saver');

define('MODULE_SHIPPING_UPS_TEXT_OPT_2DM', '2nd Day Air Early AM');

define('MODULE_SHIPPING_UPS_TEXT_OPT_3DS', '3 Day Select');

define('MODULE_SHIPPING_UPS_TEXT_OPT_STD', 'Canada Standard');

define('MODULE_SHIPPING_UPS_TEXT_OPT_XPR', 'Worldwide Express');

define('MODULE_SHIPPING_UPS_TEXT_OPT_XDM', 'Worldwide Express Plus');

define('MODULE_SHIPPING_UPS_TEXT_OPT_XPD', 'Worldwide Expedited');

?>

==========================

Posted
Figured it out:

 

1. I changed the code fix in admin/modules.php

from this:

switch ($HTTP_GET_VARS['action']) {

to this:

switch ($action) {

 

2. the upschoices.zip file does NOT include the file /admin/includes/languages/english/modules/shipping/ups.php. This file is different than the /admin/modules/shipping/ups.php included. )missing file contents shown below)

 

=================

<?php

/*

$Id: ups.php,v 1.1.1.1 2005/08/16 08:31:31 sstolyarov Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('MODULE_SHIPPING_UPS_TEXT_TITLE', 'United Parcel Service');

define('MODULE_SHIPPING_UPS_TEXT_DESCRIPTION', 'United Parcel Service');

define('MODULE_SHIPPING_UPS_TEXT_OPT_GND', 'UPS Ground');

define('MODULE_SHIPPING_UPS_TEXT_OPT_1DM', 'Next Day Air Early AM');

define('MODULE_SHIPPING_UPS_TEXT_OPT_1DA', 'Next Day Air');

define('MODULE_SHIPPING_UPS_TEXT_OPT_1DP', 'Next Day Air Saver');

define('MODULE_SHIPPING_UPS_TEXT_OPT_2DM', '2nd Day Air Early AM');

define('MODULE_SHIPPING_UPS_TEXT_OPT_3DS', '3 Day Select');

define('MODULE_SHIPPING_UPS_TEXT_OPT_STD', 'Canada Standard');

define('MODULE_SHIPPING_UPS_TEXT_OPT_XPR', 'Worldwide Express');

define('MODULE_SHIPPING_UPS_TEXT_OPT_XDM', 'Worldwide Express Plus');

define('MODULE_SHIPPING_UPS_TEXT_OPT_XPD', 'Worldwide Expedited');

?>

==========================

 

But I'm still getting the following error:

Fatal error: Cannot redeclare class ups in C:\Program Files\Apache Software Foundation\Apache2.2htdocs\oscommerce\catalog\includes\modules\shipping\ups.php on line 22

 

Please help. Thanks!!

Posted
But I'm still getting the following error:

Fatal error: Cannot redeclare class ups in C:\Program Files\Apache Software Foundation\Apache2.2htdocs\oscommerce\catalog\includes\modules\shipping\ups.php on line 22

 

Please help. Thanks!!

I think I have fixed my problem. The class cannot be redeclare so I add the following code before the declaration class ups:

 

if ( class_exists('ups') )
{
  return;
}

 

However, I see "MODULE_SHIPPING_UPS_TEXT_TITLE" instead of the name UPS in the list of modules. How can I fix it?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...