Jump to content



Latest News: (loading..)

lplplpx3

Member Since 14 Feb 2010
OFFLINE Last Active Jul 21 2012 11:11 PM
-----

Posts I've Made

In Topic: USPS Rate V4, Intl Rate V2 (official support thread)

21 July 2012 - 09:21 AM

Hi Jetta (and all) thanks for your script that got me out of weeks of hot water. I am, however, experiencing a problem as follows with PayPal Express. Here's the info:

osCommerce: V2.2
Shipping: USPS Methods 5.2.0_RateV4IntlRateV2
Payment: PayPal Express ONLY

After adding items to the cart hitting Checkout from the "What's in My Cart?" page, takes me to USPS shipping selection page and works flawlessly from there, going through PayPal and returning to the site etc. etc.

There's a problem, however, if from the "What's in My Cart?" page, I hit the PayPal button which bypasses the shipping selection page altogether, goes through the PayPal sign in and comes back to the site for price confirmation but not displaying any shipping info in the total whatsoever (only displaying the product price).

Consequently, if I've been through the checkout process for the same item previously, then hitting PayPal bypasses the shipping selection page as above, goes through the PayPal sign in and comes back to the site for price confirmation but this time displaying the shipping price as previously selected.

There's different behavior right there and basically both are wrong.

So how can I get pressing PayPal to perform exactly the same as if I'd hit "Checkout" OR how can I suppress the PayPal button from showing at all thereby forcing a customer to hit "Checkout" which will then go through the correct process OR even better, is there a fix for this?

Any help would be much appreciated. Thanks much.

In Topic: USPS Basic Install Error

21 July 2012 - 08:12 AM

Fixed. Thanks for everyones help and just in case anyone has this nightmare...from Version 3.0 installed "USPS Methods 5.2.0 V4IntlV2 Compatible" which has everything working fine.

Also, got the browser dump error message by adding the the line to includes/modules/shipping/usps.php:
var_dump(htmlspecialchars($body, ENT_QUOTES));

right after:
  $http = new httpClient();
  if ($http->Connect($usps_server, 80)) {
    $http->addHeader('Host', $usps_server);
    $http->addHeader('User-Agent', 'osCommerce');
    $http->addHeader('Connection', 'Close');

    if ($http->Get('/' . $api_dll . '?' . $request)) $body = $http->getBody();
//  mail('you@yourdomain.com','USPS rate quote response',$body,'From: <you@yourdomain.com>');
    if ($transit && is_array($transreq) && ($order->delivery['country']['id'] == STORE_COUNTRY)) {
  while (list($key, $value) = each($transreq)) {
    if ($http->Get('/' . $api_dll . '?' . $value)) $transresp[$key] = $http->getBody();
  }
    }

    $http->Disconnect();

  } else {
    return false;
  }

In Topic: USPS Basic Install Error

21 July 2012 - 05:54 AM

OK installed version 3.0...still get error. Did a dump and here's the output:

string(310) "<Error> <Number>80040b1a</Number> <Description>API Disabled: Rate. This API has been retired. Please use RateV4. Documentation can be found at https://www.usps.com/business/webtools-technical-guides.htm</Description> <Source>UspsCom::DoAuth</Source> </Error>"

In Topic: USPS Basic Install Error

21 July 2012 - 01:59 AM

@DunWeb @Praful Kamble

I saw this page but got completely stuck as to which version or what exactly I needed to install. I went with 3.0 as I read this worked flawlessly for someone else recently who was getting the same error. Did the install and attempted to follow steps BUT step 6 required code be changed in the catalog/admin/includes/functions/general.php file. When I searched for the code it wasnt in the file at all and therefore couldnt be replaced so I was back to square 1.

What is your suggestion? When you say USPS methods do you mean start with the very first version (with no version no) from 16 Nov 2002? Please explain what number I need exactly and how its done ie do I need to start with nov 2002 and then do each one after that (which would be over 30-something installs)? Confused!!! Im a newbie but can (usually) follow directions well. Thanks much.

In Topic: USPS Basic Install Error

17 July 2012 - 07:18 PM

@Praful Kamble

Not sure what module this is but the top of the file reads:

$Id: usps.php 1783 2008-01-10 01:16:16Z hpdl $

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

Copyright © 2008 osCommerce

Not sure how to debug and check the error log. If I need to update module. Please advise. Thanks.