Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS Problem with UPSChoices


Guest

Recommended Posts

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. Any suggestions would be appreciated. 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

Do you want to offer UPS shipping?

 

True

False

 

UPS Pickup Method

How do you give packages to UPS? CC - Customer Counter, RDP - Daily Pickup, OTP - One Time Pickup, LC - Letter Center, OCA - On Call Air

 

UPS Packaging?

CP - Your Packaging, ULE - UPS Letter, UT - UPS Tube, UBE - UPS Express Box

 

Residential Delivery?

Quote for Residential (RES) or Commercial Delivery (COM)

 

Handling Fee

Handling fee for this shipping method.

 

Tax Class

Use the following tax class on the shipping fee.

--none--Taxable Goods

 

Shipping Zone

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

--none--Florida

 

Sort order of display.

Sort order of display. Lowest is displayed first.

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

 

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

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

 

from admin/includes/functions/general.php:

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

return $tmp_array;

}

 

// Alias function for array of configuration values in the Administration Tool

function tep_cfg_select_multioption($select_array, $key_value, $key = '') {

for ($i=0; $i<sizeof($select_array); $i++) {

$name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');

$string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';

$key_values = explode( ", ", $key_value);

if ( in_array($select_array[$i], $key_values) ) $string .= 'CHECKED';

$string .= '> ' . $select_array[$i];

}

return $string;

}

//

?>

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

 

from admin/modules.php:

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

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 

if (tep_not_null($action)) {

switch ($HTTP_GET_VARS['action']) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

if( is_array( $value ) ) $value = implode( ", ", $value);

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");

}

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));

break;

case 'install':

case 'remove':

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

Link to comment
Share on other sites

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. Any suggestions would be appreciated. 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

Do you want to offer UPS shipping?

 

True

False

 

UPS Pickup Method

How do you give packages to UPS? CC - Customer Counter, RDP - Daily Pickup, OTP - One Time Pickup, LC - Letter Center, OCA - On Call Air

 

UPS Packaging?

CP - Your Packaging, ULE - UPS Letter, UT - UPS Tube, UBE - UPS Express Box

 

Residential Delivery?

Quote for Residential (RES) or Commercial Delivery (COM)

 

Handling Fee

Handling fee for this shipping method.

 

Tax Class

Use the following tax class on the shipping fee.

--none--Taxable Goods

 

Shipping Zone

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

--none--Florida

 

Sort order of display.

Sort order of display. Lowest is displayed first.

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

 

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

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

 

from admin/includes/functions/general.php:

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

return $tmp_array;

}

 

// Alias function for array of configuration values in the Administration Tool

function tep_cfg_select_multioption($select_array, $key_value, $key = '') {

for ($i=0; $i<sizeof($select_array); $i++) {

$name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');

$string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';

$key_values = explode( ", ", $key_value);

if ( in_array($select_array[$i], $key_values) ) $string .= 'CHECKED';

$string .= '> ' . $select_array[$i];

}

return $string;

}

//

?>

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

 

from admin/modules.php:

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

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 

if (tep_not_null($action)) {

switch ($HTTP_GET_VARS['action']) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

if( is_array( $value ) ) $value = implode( ", ", $value);

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");

}

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));

break;

case 'install':

case 'remove':

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

 

I have similar problem as I am also trying to install UPS Choice version 1.8. I followed the instructions and replaced all the necessary files in place. I see the following error in the "Shipping Modules":

 

Warning: include(C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/oscommerce/catalog/includes/languages/english/modules/shipping/ups.php) [function.include]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\oscommerce\catalog\admin\modules.php on line 132

 

Warning: include() [function.include]: Failed opening 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/oscommerce/catalog/includes/languages/english/modules/shipping/ups.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\oscommerce\catalog\admin\modules.php on line 132

 

I also see "MODULE_SHIPPING_UPS_TEXT_TITLE" under Modules. Do you have the same problem?

Link to comment
Share on other sites

I have similar problem as I am also trying to install UPS Choice version 1.8. I followed the instructions and replaced all the necessary files in place. I see the following error in the "Shipping Modules":

 

Warning: include(C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/oscommerce/catalog/includes/languages/english/modules/shipping/ups.php) [function.include]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\oscommerce\catalog\admin\modules.php on line 132

 

Warning: include() [function.include]: Failed opening 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/oscommerce/catalog/includes/languages/english/modules/shipping/ups.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\oscommerce\catalog\admin\modules.php on line 132

 

I also see "MODULE_SHIPPING_UPS_TEXT_TITLE" under Modules. Do you have the same problem?

 

No, mine ran fine, just no options for shipping. It ran fine on earlier versions :( I'll try posting in the install group to see if there is any response.

Link to comment
Share on other sites

No, mine ran fine, just no options for shipping. It ran fine on earlier versions :( I'll try posting in the install group to see if there is any response.

What version did you install? I tried to install version 1.8.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...