Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS Ground Only


Magic_Man

Recommended Posts

Use UPS Choice instead of the regular UPS module.

I really struggled with even getting UPS choice to work for me on a virgin copy of OSC. I gave up and went to table rates, because I needed to get online and couldn't keep pulling my hair out. I looked up many "try this" ideas, and I just couldn't get them to go on my site. If you figure this one out (or have a new "try this"), let me know! Thanks!

-lrobbin

lrobbin

Lisa M. Robbin

the giving candle

Link to comment
Share on other sites

Nope. I didn't go there. I started having problems with the USPS choice program and then the UPS program, so I bagged the whole lot and went table rate. I had my key from the post office, so that wasn't the problem, it just wouldn't return values, and then the UPS thing, so I just threw my hands up!

lrobbin

Lisa M. Robbin

the giving candle

Link to comment
Share on other sites

After some looking in the PHP code, I figured it out. Look for the following section in the ups.php file under modules/shipping:

    function _upsGetQuote() {
     if (!isset($this->_upsActionCode)) $this->_upsActionCode = '4';

Modify that '4' to a '3':

    function _upsGetQuote() {
     if (!isset($this->_upsActionCode)) $this->_upsActionCode = '3';

A little obove, this code snippet shows:

      /* 3 - Single Quote
        4 - All Available Quotes */

Worked great for me!

takebacktheweb_125x50.png
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Well, that worked for UPS! Now if I can get the USPS module to work for international orders, I'll be in business (right now it's trying to give free shipping, so I'm having a real problem with international orders!). Sorry it took so long to get back to the board, we've been putting togetehr the new print catalog, and that's been taking up most of my days.

 

As always, thanks for the help!

-Lisa

lrobbin

Lisa M. Robbin

the giving candle

Link to comment
Share on other sites

  • 2 weeks later...
Modify that '4' to a '3':

 

I got to say, this worked perfect for me. I was trying to figure out how to disable all the options for UPS and just have GROUND as an option. Changing the 4 to a 3 worked perfectly. Thanks so much Mikko.

Edited by rfgifts
Link to comment
Share on other sites

  • 2 years later...
I got to say, this worked perfect for me. I was trying to figure out how to disable all the options for UPS and just have GROUND as an option. Changing the 4 to a 3 worked perfectly. Thanks so much Mikko.

 

 

tHIS ALSO WORKED GREAT FOR ME AND WAS SO SIMPLE- THANKS!

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
I dl'd the UPS Choice 1.8 (since OSC does not have a selection for UPS) and have tried everything. All I receive in the admin mods shipping are warning/err msgs. HELP!

 

Here are the msgs I am receiving in the Admin/modules/shipping page:

Warning: main(/home/mywebsite/www/www/catalog/includes/languages/english/modules/shipping/ups.php) [function.main]: failed to open stream: No such file or directory in /home/mywebsite/www/www/catalog/admin/modules.php on line 128

 

Warning: main(/home/mywebsite/www/www/catalog/includes/languages/english/modules/shipping/ups.php) [function.main]: failed to open stream: No such file or directory in /home/mywebsite/www/www/catalog/admin/modules.php on line 128

 

Warning: main() [function.include]: Failed opening '/home/mywebsite/www/www/catalog/includes/languages/english/modules/shipping/ups.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/mywebsite/www/www/catalog/admin/modules.php on line 128

 

 

Any advice would be greatly appreciated!!! :)

Link to comment
Share on other sites

Warning: main() [function.include]: Failed opening '/home/mywebsite/www/www/catalog/includes/languages/english/modules/shipping/ups.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/mywebsite/www/www/catalog/admin/modules.php on line 128

That file came with the standards osC ups.php module which is no longer there:

<?php
/*
 $Id: ups.php,v 1.5 2002/11/19 01:48:08 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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');
?>

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.
Note: Your post will require moderator approval before it will be visible.

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