MDXMan Posted March 16, 2005 Share Posted March 16, 2005 (edited) I got the UPS XML up and running sort of. It seems to be working ok without error but I only get 1 choice when the shipping page comes up is UPS Express Saver even though I have other choices checkmarked in the admin. Any help please I am using 1.1.4 by the way Edited March 16, 2005 by MDXMan Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted March 16, 2005 Share Posted March 16, 2005 Did you try to get the logging function working? Then at least you can see if UPS is only returning one shipping option or if UPS XML is the problem. Quote Link to comment Share on other sites More sharing options...
pickupman Posted March 18, 2005 Share Posted March 18, 2005 I have added support for insurance with the UPS XML rates. It will figure the the insurance rate based on the cart value for all boxes. Insurance can be enabled disabled in the admin menu. Only 1 file updated /catalog/includes/modules/shipping/upsxml.php. Quote Link to comment Share on other sites More sharing options...
keithxtreme Posted March 18, 2005 Share Posted March 18, 2005 Is there a way to add a Handling Fee to each box? I sell some packages that have 2 to 5 boxes and my manufacturer charges $4 per box Handling Fee... any thoughts Quote Link to comment Share on other sites More sharing options...
akasharkbow Posted March 20, 2005 Share Posted March 20, 2005 Hello there. I installed this module and it seems to be working OK. The only problem I get is when I ship from the US to Canada I get the following error: 270013: Invalid Shipment Contents Value. I did a search and noticed a few other people also got the same error number but I didn't see any sort of solution for it. Any ideas? Thanks for your help. David J. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 24, 2005 Share Posted March 24, 2005 (edited) After installation, and set it up without any error and after add the acces key, the UPS module showed up at the checkout, but without any rates. I'll tryed to change some settings in the admin, but nothing changes, no rates at all. Check all manual added codes in other files, but they are ok, and no errors or scripts errors. Has someone any id what it could be? Edited March 24, 2005 by John2b Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted March 24, 2005 Share Posted March 24, 2005 No clue, but check the shipping/upsxml.php file and find the part that talks about logging the xml requests and replies. At least it will tell you what UPS sends back... Quote Link to comment Share on other sites More sharing options...
Guest Posted March 24, 2005 Share Posted March 24, 2005 No clue, but check the shipping/upsxml.php file and find the part that talks about logging the xml requests and replies. At least it will tell you what UPS sends back... <{POST_SNAPBACK}> Thats what I have done, but the log keeps totally empty Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted March 24, 2005 Share Posted March 24, 2005 the log keeps totally empty Extraordinary. Are you sure the file can be written to (777?) by the webserver? The directory itself should not be writable of course so it needs different permission settings than the other files in that directory. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 25, 2005 Share Posted March 25, 2005 Extraordinary. Are you sure the file can be written to (777?) by the webserver? The directory itself should not be writable of course so it needs different permission settings than the other files in that directory. <{POST_SNAPBACK}> Sorry, of course I did set it to 777 First I put the file in a wrong directory en getting a PhP error, which was very clear. After I corrected the dirertory and the file permissions no errors anymore. Quote Link to comment Share on other sites More sharing options...
kawagner Posted March 25, 2005 Share Posted March 25, 2005 Hello, I currently have an older UPS contribution - because it allows me to set a minimum shipping fee. I do not see that this new module allows for that. Does it? Please reply. And if it does not, does anyone know how to set that up? Help.I may be able to bring inthe code from the other one, but I'm not sure if that will work. HELP. Quote Kim Link to comment Share on other sites More sharing options...
Jan Zonjee Posted March 26, 2005 Share Posted March 26, 2005 I currently have an older UPS contribution - because it allows me to set a minimum shipping fee. I do not see that this new module allows for that. Does it?<{POST_SNAPBACK}> No, not out of the box. But you can add it to the code if you like. In the top of the document you could add the minimum shipping fee like: $this->unit_length = MODULE_SHIPPING_UPSXML_RATES_UNIT_LENGTH; $this->handling_fee = MODULE_SHIPPING_UPSXML_RATES_HANDLING; $this->minimum_shipping_fee = '35.00'; $this->quote_type = MODULE_SHIPPING_UPSXML_RATES_QUOTE_TYPE; Then around line 278 change the code a little bit: END of doing things differently: */ // $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + $cost)); $methods[] = array('id' => $type, 'title' => $_type, 'cost' => (($this->handling_fee + $cost < $this->minimum_shipping_fee) ? $this->minimum_shipping_fee : ($this->handling_fee + $cost)) ); That should do it. Quote Link to comment Share on other sites More sharing options...
kawagner Posted March 27, 2005 Share Posted March 27, 2005 Thank you so much, I'll give t a try and let you know. Quote Kim Link to comment Share on other sites More sharing options...
JEWbacca Posted March 29, 2005 Share Posted March 29, 2005 I'm getting a "110099: Validation Error" but I have checked and double checked the UPS Rates Access Key, UPS Username and UPS Password. I guess i'm most confused on what it can't validate? Thanks, Nate Quote Link to comment Share on other sites More sharing options...
JEWbacca Posted March 29, 2005 Share Posted March 29, 2005 I figured it out. My bad :o THANKS FOR THE GREAT CONTRIBUTION! Quote Link to comment Share on other sites More sharing options...
Lucid Posted March 29, 2005 Share Posted March 29, 2005 I?ve been sifting thru different posts trying to find out if someone else has had this problem. I?m at a loss to what I did wrong. When I log onto my admin section I get the message: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/hazelt2/public_html/catalog/admin/includes/functions/general.php:1323) in /home/hazelt2/public_html/catalog/admin/includes/functions/sessions.php on line 67 When I attempt to install the UPS XML module it gives me this error: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/hazelt2/public_html/catalog/admin/includes/functions/general.php:1323) in /home/hazelt2/public_html/catalog/admin/includes/functions/sessions.php on line 67 Warning: Cannot modify header information - headers already sent by (output started at /home/hazelt2/public_html/catalog/admin/includes/functions/general.php:1323) in /home/hazelt2/public_html/catalog/admin/includes/functions/general.php on line 18 I followed the instructions of the contributions "read me" folder but still get this error. If you've seen this error or know how to fix it please tell me what I'm doing wrong. Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted March 29, 2005 Share Posted March 29, 2005 You did read the osCommerce knowledge base on the common problem Cannot Add Header Information - Headers Already Sent? Quote Link to comment Share on other sites More sharing options...
Lucid Posted March 30, 2005 Share Posted March 30, 2005 You did read the osCommerce knowledge base on the common problem Cannot Add Header Information - Headers Already Sent? <{POST_SNAPBACK}> Thank you very much JanZ! It fixed the problem I was having in my admin section. Unfortunately now I have an error when I attempt to checkout. 1146 - Table 'hazeltop3_osc1.TABLE_PACKAGING' doesn't exist select * from TABLE_PACKAGING order by package_cost; [TEP STOP] This is very frustrating to me because I am so not technologically savy. Quote Link to comment Share on other sites More sharing options...
Druide Posted March 30, 2005 Share Posted March 30, 2005 Thank you very much JanZ! It fixed the problem I was having in my admin section. Unfortunately now I have an error when I attempt to checkout. 1146 - Table 'hazeltop3_osc1.TABLE_PACKAGING' doesn't exist select * from TABLE_PACKAGING order by package_cost; [TEP STOP] This is very frustrating to me because I am so not technologically savy. <{POST_SNAPBACK}> you need to find the define for TABLE_PACKAGING define('TABLE_PACKAGING', 'packaging'); the 'packaging' needs to be whatever is used in this contribution i dunno just browsing around since a few months and hope to help out a bit good luck Melissa, i am going to dissapear again for a while......lol Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Jan Zonjee Posted March 30, 2005 Share Posted March 30, 2005 Unfortunately now I have an error when I attempt to checkout. 1146 - Table 'hazeltop3_osc1.TABLE_PACKAGING' doesn't exist select * from TABLE_PACKAGING order by package_cost; The root cause is that in includes/modules/shipping/upsxml.php (from 1.1.5) there is a line early in the file that says: define('DIMENSIONS_SUPPORTED', 1); Make it: define('DIMENSIONS_SUPPORTED', 0); and the error will go away. Quote Link to comment Share on other sites More sharing options...
thedream Posted April 1, 2005 Share Posted April 1, 2005 This module supports only xpci version 1.0001 of the UPS Rates Interface and I get nothing... I have this fu*** error, and I can't find a solution. Here there somebody who can help me, on this, or have the solution ? Quote osCommerce 2.2 MS2 in 6 languages TVA Intracomm Numbers of visitors online Who's online Enhancement .... Link to comment Share on other sites More sharing options...
Lucid Posted April 1, 2005 Share Posted April 1, 2005 Thank you very much for all your help JanZ. My store is finally up and running. Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted April 1, 2005 Share Posted April 1, 2005 I have this fu*** error, and I can't find a solution. So of course you started enabling logging in the includes/modules/shipping/upsxml.php file (around line 70) before you went to the forum: // to enable logging, create an empty "upsxml.log" file at the location you set below, give it write permissions (777) and uncomment the next line $this->logfile = '/path/to/the/file/catalog/includes/modules/shipping/upsxml.log'; and what was the UPS response? The error code is from upsxml (around line 780) so at least you have a connection: function _parseResult($xmlResult) { // Parse XML message returned by the UPS post server. $doc = new XMLDocument(); $xp = new XMLParser(); $xp->setDocument($doc); $xp->parse($xmlResult); $doc = $xp->getDocument(); // Get version. Must be xpci version 1.0001 or this might not work. $responseVersion = $doc->getValueByPath('RatingServiceSelectionResponse/Response/TransactionReference/XpciVersion'); if ($this->xpci_version != $responseVersion) { $message = MODULE_SHIPPING_UPSXML_RATES_TEXT_COMM_VERSION_ERROR; return $message; } Quote Link to comment Share on other sites More sharing options...
thedream Posted April 1, 2005 Share Posted April 1, 2005 could you be kind enough to be more clear? Quote osCommerce 2.2 MS2 in 6 languages TVA Intracomm Numbers of visitors online Who's online Enhancement .... Link to comment Share on other sites More sharing options...
thedream Posted April 1, 2005 Share Posted April 1, 2005 could you be kind enough to be more clear? <{POST_SNAPBACK}> or more precise? I have tried with and without the log file, but nothing done... Quote osCommerce 2.2 MS2 in 6 languages TVA Intracomm Numbers of visitors online Who's online Enhancement .... Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.