I have a very generic install of OC and everything seems to be working great except when I try to check out.
I've tried both guest and creating a new account. Once I hit the check out button I get the following:
Unknown: Object of class DOMElement could not be converted to string in /home1/ageneric/public_html/medxtras/catalog/model/shipping/ups.php on line 218
Fatal error: Call to a member function getElementsByTagName() on a non-object in /home1/ageneric/public_html/medxtras/catalog/model/shipping/ups.php on line 220
Is this telling me that the call to the UPS XML is failing or is something else wrong?
Thanks for the help.
RD
I've tried both guest and creating a new account. Once I hit the check out button I get the following:
Unknown: Object of class DOMElement could not be converted to string in /home1/ageneric/public_html/medxtras/catalog/model/shipping/ups.php on line 218
Fatal error: Call to a member function getElementsByTagName() on a non-object in /home1/ageneric/public_html/medxtras/catalog/model/shipping/ups.php on line 220
Is this telling me that the call to the UPS XML is failing or is something else wrong?
Thanks for the help.
RD
Ok i figured this out.
Its a simple accidental reuse of a variable
Solution:
1. EDIT: catalog/model/shipping/ups.php
2. FIND:
3. REPLACE WITH
4. FIND:
5. REPLACE WITH:
Its a simple accidental reuse of a variable
Solution:
1. EDIT: catalog/model/shipping/ups.php
2. FIND:
Code: Select all
$error = $error->getElementsByTagName('ErrorCode')->item(0)->nodeValue;
$error .= ': ' . $error->getElementsByTagName('ErrorDescription')->item(0)->nodeValue;
Code: Select all
$error_msg = '';
$error_msg = $error->getElementsByTagName('ErrorCode')->item(0)->nodeValue;
$error_msg .= ': ' . $error->getElementsByTagName('ErrorDescription')->item(0)->nodeValue;
Code: Select all
'error' => $error
Code: Select all
'error' => $error_msg
Worked for me just fine. One thing I noticed is that the Zip Code is not a required field in the checkout form yet if you don't enter a zip you will get an error from UPS saying that they don't have a shipping option for your location...etc.
Might want to make the zip required to bypass that problem.
Might want to make the zip required to bypass that problem.
Brad G
Granbury, Texas
OC 1.5.6.4
The zip is kinda fickle because if shipping from or to a place like Hong Kong, there is no Postcode and the postcode is not required by UPS. If I set it to required in the account create, then you'd have to enter something like 00000 to get the form to bypass the validation. But that might break UPS.
Followed the steps editing the UPS php file and now it goes through to shipping options but does not list UPS. Tried in test mode as well. Help me please!!!
You might want to wait a bit as 1.4.8 is supposed to be released today with several fixes.gorillaman wrote:Followed the steps editing the UPS php file and now it goes through to shipping options but does not list UPS. Tried in test mode as well. Help me please!!!
http://www.opencart.com/index.php?route ... &blog_id=9
Brad G
Granbury, Texas
OC 1.5.6.4
Who is online
Users browsing this forum: No registered users and 7 guests