News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

UPS SHIPING MODULE

Started by luigi001, May 12, 2005, 21:19:23 PM

Previous topic - Next topic

luigi001

´m trying to use the UPS Shipping Module (UPS OnLine Tools) but there is happening nothing, I have already my UPS access code, my ups user ID and PassWord (also I´m using the UPS test PW).

First of all there are 4 steps for the shopping in the check out, in the first step it asks for shipping information and I select one of them and then press next buttom and nothing happens then (Limbo), I´ve checked the weight in my products (they are OK), what can be wrong?

My PHP System Info
PHP built On:  Linux linhostjava02.prod.mesa1.secureserver.net 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 
Database Version:  4.0.24-max-log 
PHP Version:  4.3.11 
Web Server:  Apache/1.3.31 (Unix) mod_tsunami/2.0 mod_jk2/2.0.4 FrontPage/5.0.2.2634 mod_ssl/2.8.19 OpenSSL/0.9.7a 
WebServer to PHP interface:  cgi-fcgi 
Version  Version: Mambo 4.5.1a Stable [Three For Rum *mambo-phpShop EDITION*] 05/10/2004 16:12 GMT 
User Agent:  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) 
Relevant PHP Settings:  Safe Mode:  Off 
Open basedir:  None 
Display Errors:  On 
Short Open Tags:  On 
File Uploads:  On 
Magic Quotes:  On 
Register Globals:  On 
Output Buffering:  Off 
Session save path:  /tmp 
Session auto start:  0 
XML enabled:  Yes 
Zlib enabled:  No 
Disabled Functions:  None 
WYSIWYG Editor:  HTMLArea3 XTD 


So let me know if you can do something for me, thank you in advance

;D

Soeren

#1
Hello,

is your server somehow behind a firewall?
Does your PHP have cURL?

ciao, Soeren
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net

luigi001

Hi Soeren,

Sure they have a firewall the site is hosted in godaddy, and I can´t see if the PHP have cURL, how can I see it?....

Soeren

Hello,

you can see your PHP Info by using this URI on your Backend:
Quote
/administrator/index2.php?option=com_admin&task=sysinfo

and then click on "PHP Info".

ciao, Soeren
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net

jackl

I am using godaddy too, having the same problem it will eventually time out and give error 110.  Soeren you can look at my php congiguration http://www.seventhstreetimports.com/test.php

I really appreciate what you are doing with Mambo-PHPshop.  I will send you a tithe as soon as I get paid!

Also feel free to set up an account and see the error message for yourself as we are not live yet

Jack

Soeren

#5
Hello Jackl,

your PHP configuration is ok, cu rl  is enabled.
what do you mean with Error 110? UPS Error codes have 6 digits...

ciao, Soeren
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net

jackl

Thanks Soeren,

I am getting
"socket error:110
Internal Error processing the Request to UPS.com"

I have an username/password/xml access key!!!

I appreciate your help!

jackl

I may have an answer.  I talked to godaddy and they emailed me a script, apparently they have a proxy server and told me to insert this

curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

I'm not sure exactly what to do here but i know my next step is getting phpshop talking to paypal.  Is thier a global config file to add this info too??

Best Regards,

JackL

Soeren

Hello,
I'm glad that your provider mailed you this information. This is exactly what is needed here.
Actually the file /classes/shipping/ups.php contains this section:

curl_setopt($CR, CURLOPT_URL, $protocol."://".$host.$path);
curl_setopt($CR, CURLOPT_POST, 1);
curl_setopt($CR, CURLOPT_FAILONERROR, true);
curl_setopt($CR, CURLOPT_POSTFIELDS, $xmlPost);
curl_setopt($CR, CURLOPT_RETURNTRANSFER, 1);


There you can add this information (right below the last line of the code snippet):

curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "http://64.202.165.130:3128");


Save and try.

ciao, Soeren
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net

jackl

Worked like a charm!

As soon as i get paid so will you my friend!

winevault

hi and thanks for Virtuemart. My friend helped me set my new site (on GoDaddy)up with joomla and virtuemart. I am
in the U.S. and trying to set up UPS and am on the Shipping Module Configuration: ups.php
and got stuck. So I called UPS, set up an account, then I went to ups.com and registered but
I don't know what online tools to get and whether to get the html or xml version. I checked everywhere
but the demos only took me this far. I just want to be able to ship my wine UPS or have them come to
the store and pick it up. Can someone point me in the right direction? Thanks again.

Daniel Wagner

You need the XML version of UPS Online Tools: UPS Rates and Services Selection

Try this link, it will prompt you to register: http://www.ups.com/e_comm_access/laServ?loc=en_US&CURRENT_PAGE=WELCOME&OPTION=TOOL_DOC&TOOL_ID=RateXML
Dan

phylaw

Hello,

I have installed joomla e commerce edition 1.1.10  and virtue mart 1.06  for my online store. However, when using the ups shipping module, there is error in connection,

Warning: fsockopen() [function.fsockopen]: no SSL support in this build in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 216

Warning: fsockopen() [function.fsockopen]: unable to connect to www.ups.com:443 in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 216

Fatal error: Call to a member function on a non-object in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 264


so I checked with the possible fix adnd I found the following suggestion from this forum:


"I may have an answer.  I talked to godaddy and they emailed me a script, apparently they have a proxy server and told me to insert this

curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE)"

Then I have the following error as
Parse error: syntax error, unexpected ':' in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 172

line 172 refers to
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);

Any idea how to fix it?

Regards
phyaw

phylaw

Hello,

As I did not get any advice to my posting, I tried to investigate further myself.

As a matter of fact, the suggested four lines of coding is only for shared hosting.

If you have your own server, there is no need to add the four lines.

However, you need to have SSL installed in your domain as UPS module XML required SSL (check the requirement from UPS web site).

Then, you need to make sure you build the Curl, CurlSSL support for your php module when you access your webhost manager of your server. You can find it under the apache update.

Now I have a working UPS module.

Best
phylaw

tgcpres

not a coder! can anyone help get my UPS module working and check out not to hang,...seems I have the GoDaddy issue too