Jump to content
Latest News: (loading..)
Sign in to follow this  
Magic_Man

UPS Ground Only

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

Share this post


Link to post
Share on other sites
I really struggled with even getting UPS choice to work for me on a virgin copy of OSC.
Did you try UPSXML? It has that choice too, but since Magic_Man seemed to use the standard UPS module I didn't bother to suggest it.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

i waqs just easedopping on the conversation since i had the same problem..

 

the :lol: suggetion to change the 4 to a 3 worked great.. :lol:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites
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!!! :)

Share this post


Link to post
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');
?>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×