Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello

 

I don't know how many in here can help me with this problem but I give it a try.

 

I have installed the Norwegian shipping module for Bring and Posten for the Zen Cart system.

I found it on the add-on pages for Oscommerce and it was the latest Norwegian shipping module I found.

Even if its for Zen Cart it was posted on the Oscommerce so I figure it should work on both systems.

 

However after installation every thing seems to work fine until I tried a paypal check-out.

It returned an error message.

If I deactivate the add-on and check out with paypal I get to the paypal login screen so it seems to be something with the module that is not working correctly on my site.

 

Here is the error message I get:

 

Fatal error: Class 'httpClient' not found in /home/cool-dat/www/includes/modules/shipping/bring_fraktguide_common/bring_fraktguide_common.php on line 23

 

and the url that gives this error message is:

 

http://drillteam.no/ext/modules/payment/paypal/express.php

 

This is whats in the bring_fraktgiude_common and line is 23 is the line I have marked below.

I just wonder if I need to have an account at Bring and fill inn some account information in the code ?

I am not sure.....

 

 

 

Denne metoden henter XML fra Bring Fraktguide. Se dokumentasjon på XML API på http://fraktguide.bring.no/

*/

function getXmlForProducts($productCode, $from, $to, $weightInGrams, $postingAtPostoffice) {

$http = new httpClient();

$http->timeout = 2;

 

$request = join('&', array('from=' . $from,

'to=' . $to,

'weightInGrams=' . $weightInGrams,

'postingAtPostoffice=' . $postingAtPostoffice));

if ($http->Connect('fraktguide.bring.no', 80)) {

$http->addHeader('Host', 'fraktguide.bring.no');

$http->addHeader('User-Agent', 'osCommerce 1.4.5 - '.STORE_NAME);

$http->addHeader('Connection', 'close');

 

if ($http->Get('/fraktguide/products/' . $productCode . '/all.xml?' . $request)) {

$body = $http->getBody();

if ($http->reply == 200) {

$result['xml'] = new SimpleXMLElement($body);

} else {

if (strpos($body, "FG_INPUT_021")) {

$result['error'] = "Oppgitt postnummer er ikke gyldig";

} elseif (strpos($body, "FG_INPUT_022")) {

$result['error'] = "Vekt eller volum ikke oppgitt";

} elseif (strpos($body, "FG_INPUT_002")) {

$result['error'] = "Feil format på oppgitt postnummer";

} else {

$result['error'] = "Ikke tilgjengelig til oppgitt postnummer";

}

}

}

$http->Disconnect();

}

return $result;

}

 

 

Can anyone help me please ?

 

 

Thanks

 

Petter

Posted

Hi Petter,

 

Absolutely no idea but strangely enough I seen a similar error earlier today in the USPS forum with a fix

 

http://www.oscommerce.com/forums/topic/394049-paypal-modules-after-usps-fix/

 

I wonder if that would be relevant to your problem.

 

Regards

 

Joli

 

 

Wonderfull !!

I did not get an error now. It went to the paypal login after I did the modification you linked me to :-)

I will check it more carefully to see if it works completely.

Thank you.

Posted (edited)

@@kymation

@@Jack_mcs

 

Nice guess it thanks to Jim and Jack for the fix.wonder if it is a bug in the paypal modules??

 

regards

Joli

Edited by joli1811
To improve is to change; to be perfect is to change often.

 

Posted

Yes that's a bug in Paypal. Paypal replaces part of the osCommerce checkout with its own files, and those files are missing a few things.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Thanks again.

I have testet more here now and it seems to work perfectly.

I did not expect help here since I was asking about a Norwegian shipping module so you guys suprised me :-)

Very good.

 

Thanks a lot !!!

 

 

Petter

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