Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

gorcsos

Archived
  • Posts

    46
  • Joined

  • Last visited

Profile Information

  • Real Name
    Gabor Gorcsos
  • Location
    Calgary, Canada
  • Website

gorcsos's Achievements

  1. Hi kawika! I've tried to implement it myself, but I get lost, because I do not know object oriented PHP. Everything is so hidden for me. :( When you get some results, please, let me know. I'll try to help at lest with review and tests. Gabor
  2. Is there any contribution which uses "x% of the product price" as the handling fee instead of a fix value? There are some handling fee contributions, but none of them does it. :( Gabor
  3. I've tried to display some Visa MasterCard and Pay Pal images on the top of the payment method selection between the "Payment Method" and "Please select the preferred payment method to use on this order." text on the checkout_payment.php. I added some simple html tags into a payment module.php but when I finishing the payment it crashes. Basically it says that the displaying the tags is blocked because of the header or something similar(sse the blue). How to display it even on another part of the page? Any ideas? Gabor function selection() { global $order; for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } $today = getdate(); for ($i=$today['year']; $i < $today['year']+10; $i++) { $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i))); } ?> <br> <div style="text-align: center;"> <img src="images/visa_s.gif" border="0" alt="" width="33" height="21"> <img src="images/master_s.gif" border="0" alt="" width="33" height="21"> <img src="images/paypal_s.gif" border="0" alt="" width="56" height="21"> </div> <br> <?php $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_MONERISESELECTPLUS_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']), array('title' => MODULE_PAYMENT_MONERISESELECTPLUS_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('moneriseselectplus_cc_number')), array('title' => MODULE_PAYMENT_MONERISESELECTPLUS_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('moneriseselectplus_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('moneriseselectplus_cc_expires_year', $expires_year))), 'moneris_order_id' => $this->moneris_order_id, 'moneris_response_variables' => $this->moneris_response_variables); return $selection; }
  4. I'll check it, thanks. I've already done some changes but I'm still not satisfied with the quality of my code (hard coded). I do not know how much time I can spend, but when I finish I'll publish my hacks (for inspiration). Gabor
  5. If you still have problems make the changes in the fedexdc.php. !!!Do not change the fedex1.php.!!! The fedex1.php is just the way how it should look like. If you take some time and compare the fedexdc.php (problematic) fedex1.php (working fine) files you could figure it out yourself. Gabor
  6. I had something similar. Your account and numbers could be good, the code has some "features" (bugs). There is still some problem with the fedexdc.php. I did some changes and it works for me now. !!!These are only pieces of code!!! !!!This is not the full working and tested new module!!! Be inspitred by "fedex1.php" from the payment module. In the function: function _sendCurl() { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://' . $this->server); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // Dec. 29 2004, by Gabor curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); // Dec. 29 2004, by Gabor curl_setopt($ch, CURLOPT_HTTPHEADER, array("Referer: " . STORE_NAME, "Host: " . $this->server, "Accept: image/gif,image/jpeg,image/pjpeg,text/plain,text/html,*/*", "Pragma:", "Content-Type:image/gif")); /******************************************************************************** *********/ if ($server == 'test') { define('FEDEX_URI', 'gatewaybeta.fedex.com/GatewayDC', true); define('FEDEX_HOST', 'gatewaybeta.fedex.com', true); } elseif ($server == 'production') { define('FEDEX_URI', 'gateway.fedex.com/GatewayDC', true); define('FEDEX_HOST', 'gateway.fedex.com', true); } $this->server = FEDEX_URI;
  7. I tried to make a shippment to US from Canada. Here is the request. Any ideas about "Duties and taxes payment type required" ? Gabor FEDEX REQUEST: 0,"21"16,"NY"13,"125 St 67Ave"1273,"01"1274,"03"18,"6565651123"15,"NY" 23,"01"117,"CA"17,"10016"50,"US"11,""12,"Tom Newyork"1333,"1"1415,"4.00"1368,"2"1369,"1" 1370,"5"24,"20041231"1119,"Y"2975,"Y"440,"N"10,"1xxxxxxxx6"498,"8xxxxx5"75,"KGS" 4,"PremierShop"5,"2xx8 Pxxxxx Way NE"7,"Calgary"8,"AB"9,"T2E8M5"183,"4032958879 "68,"USD"1401,"2.0"3025,"FDXE"99,"" FEDEX RESPONSE: HTTP/1.1 200 OK Server: Netscape-Enterprise/4.1 Date: Thu, 30 Dec 2004 17:08:07 GMT Content-length: 63 Content-Type: image/gif 0,"121"2,"8083"3,"Duties and taxes payment type required."99,""
  8. Hi! I'm using the next logging methode: (add into the admin/includes/fedexdc.php) $this->logfile = '/tmp/fedex_label.log'; // Add at the end of the FedExDC function // Add the next bellow after this: "curl_setopt( $ch, CURLOPT_POSTFIELDS, $this->sBuf );" if ($this->logfile) { error_log("FEDEX REQUEST: " . $this->sBuf . "\n", 3, $this->logfile); } //Add the next bellow after this: "$this->httpData = curl_exec($ch);" if ($this->logfile) { error_log("FEDEX RESPONSE: " . $this->httpData . "\n", 3, $this->logfile); } Do not forget to create a file in /tmp/fedex_label.log with chmod 777 Good luck!!! Gabor the Hun
  9. FEDEX LABEL URL: https://gateway.fedex.com/GatewayDC FEDEX REQUEST: 0,"21"16,"Alberta"13,"64 Cumb"1273, "01"1274,"03"18,"5165656556"15, "Calgary"23,"01"117,"CA"17,"t2k1t1"50,"CA"11,""12,"Gabor Gorcsos"1333,"1"1415,"5.00"1368, "2"1369,"1"1370,"5"24,"20041230"1119,"Y"2975,"Y"440,"N"10,"1xxxxxxxxx6"498,"8xxxxxxx5"75, "KGS"4,"PremierShop"5,"2xx8 Pxxxxxxx Way NE"6,"NONE"7,"Calgary"8,"AB"9, "T2E8M5"183,"4xxxxxxxxx9"68,"USD"1401,"2.0"3025,"FDXE"99,"" FEDEX RESPONSE: HTTP/1.1 200 OK Server: Netscape-Enterprise/4.1 Date: Wed, 29 Dec 2004 20:38:37 GMT Content-length: 78 Content-Type: image/gif 0,"121"2,"8027"3,"State or province abbreviation must be two characters."99,""
  10. I've jjust contacted the Fedex. They told me I should not insert 68,"USD" what is the US currency for shipping within Canada. I've just removed it but it doesn't seem to work either. Any ideas? Gabor FEDEX LABEL URL: https://gateway.fedex.com/GatewayDC FEDEX REQUEST: 0,"21" 16,"AB" 13,"64 Cumb" 1273,"01" 1274,"03" 18,"5165656556" 15,"Calgary" 23,"01" 117,"CA" 17,"t2k1t1" 50,"CA" 11,"" 12,"Gabor Gorcsos" 1333,"1" 1415,"5.00" 1368,"2" 1369,"1"1370,"5" 24,"20041230" 1119,"Y" 2975,"Y" 440,"N" 10,"1xxxxxxx6" 498,"8xxxxx5"75," KGS"4," PremierShop"5," 2xx8 Pxxxxx Way NE" 6,"NONE" 7,"Calgary" 8,"AB" 9,"T2E8M5" 183,"4xxxxxxxx9" 1401,"2.0" 3025,"FDXE"99,"" FEDEX RESPONSE: P.s.: I added some spaces to this request only for this forum.
  11. The previous post was my fault, I've just reentered the phone number in Admin / Modules / Shipping / Federal Express / Edit / Phone number, it has to be 10 digits and then it works fine. Netx issue: I had some problem with province/state, It was the "Alberta" instead of "AB". This was probably caused by my changes, but I fixed it. After that I sent the next XML querry, but I havn't received any response. The only thing I got was the next message on the browser: "This transaction could not be completed. Please note the error message below. ERROR: cURL ERROR: 28: Operation timed out with 0 out of -1 bytes received unable to process ship_express" I checked the sent querry from my log file:: FEDEX LABEL URL: https://gateway.fedex.com/GatewayDC FEDEX REQUEST: 0,"21"16,"AB"13,"64 Cumb"1273,"01"1274,"03"18,"5165656556"15,"Calgary"23,"01"117,"CA"17,"t2k1t1"50,"CA"11,""12,"Gabor Gorcsos"1333,"1"1415,"5.00"1368,"2"1369,"1"1370,"5"24,"20041230"1119,"Y"2975,"Y"440,"N"10,"1xxxxxxx6"498,"8xxxxx5"75,"KGS"4,"PremierShop"5,"xxxx Pxxxxx Way NE"6,"NONE"7,"Calgary"8,"AB"9,"T2E8M5"183,"4xxxxxxxx9"68,"USD"1401,"2.0"3025,"FDXE"99,"" FEDEX RESPONSE: Any ideas? Gabor
  12. I installed this package just recently. I did a purchase by "a customer". When I selected the "Customers / Orders / ship /" from the administration tool, I filled in all package details Number of Packages: 1 Oversized? Packaging Type ("other" for ground shipments): Other Packaging Type of Service: Fedex 2Day Payment Type: Bill Sender (Prepaid) Dropoff Type: Regular Pickup Pickup date (yyyymmdd): 12-30-2004 The Package Weight: 2 I received the next response: "This transaction could not be completed. Please note the error message below. ERROR: FedEx Return Error 1F33 : Sender phone for US/Canada must be 10 digits." What is the problem? What should I do? Where could I set this phone number? Gabor
  13. Finally I figured out the source of the differences. Our company has got discount on some products. G. :rolleyes:
  14. For the destination within Canada (example Toronto) the shipping cost from Fedex web page and XML are allways exactly the same, it is good!!! Gabor Destination: Toronto, m5b2c1, ON, Canada -------------------- FEDEX URL: gateway.fedex.com/GatewayDC FEDEX REQUEST: 0,"25"10,"***********"498,"********"8,"AB"9,"T2E8M5"117,"CA"17,"m5b2c1"16,"ON"50,"CA"75,"KGS"1116, "C"1401,"1.0"1529,"1"1415,"100.00"68,"CAD"440,"Y"1273,"01"1333,"2"99,"" FEDEX RESPONSE: 0,"125"1376,"KGS"1133,"4"1273-1,"01"1274-1,"01"1090-1,"CAD"431-1,"N"1402-1,"1.0"1416-1, "25.70"1417-1,"4.03"1418-1,"6.43"1419-1,"23.30"194-1,"FRI"195-1,"YYZ"409-1,"24Dec04"1273-2, "01"1274-2,"03"1090-2,"CAD"431-2,"N"1402-2,"1.0"1416-2,"21.40"1417-2,"4.47"1418-2,"0.00"1419-2, "25.87"194-2,"WED"195-2,"YYZ"409-2,"29Dec04"1273-3,"01"1274-3,"06"1090-3,"CAD"431-3, "N"1402-3,"1.0"1416-3,"36.45"1417-3,"7.62"1418-3,"0.00"1419-3,"44.07"194-3,"FRI"195-3,"YYZ"409-3, "24Dec04"1273-4,"01"1274-4,"92"1090-4,"CAD"1402-4,"1.0"1416-4,"8.65"1417-4,"2.00"1418-4, "0.00"1419-4,"10.65"3058-4,"3"99,""
  15. There is shipping cost difference for the Shipping from Canada to USA! I connected the Fedex Web support and now I'm tying to figure out why the values from Fedex web page and Fedex XML are different. No answer yet! It takes so long!!! Gabor Origin: Calgary, AB, T2E8M5 Canada Destination: New York, NY 10016 United States Package: 1kg package, onw packaging, value 100 CAD (dimension not specified) Price from http://www.fedex.com/ratefinder/shipInfo: FedEx International First 121.70 FedEx International Priority 60.79 FedEx International Economy 46.78 Price from XML parser : International First 121.70 International Priority 40.74 International Economy 29.83 -------------------- Shipping to USA -------------------- /********** THE LOG FILE ************/ FEDEX URL: gateway.fedex.com/GatewayDC FEDEX REQUEST: 0,"25"10,"**********"498,"*********"8,"AB"9,"T2E8M5"117,"CA"17,"10016"16,"NY"50,"US"75, "KGS"1116,"C"1401,"1.0"1529,"1"1415,"100.00"68,"CAD"440,"Y"1273,"01"1333,"2"99,"" FEDEX RESPONSE: 0,"125"1376,"KGS"1133,"4"1273-1,"01"1274-1,"01"1090-1,"CAD"431-1,"N"1402-1,"1.0"1416-1, "53.80"1417-1,"4.69"1418-1,"17.75"1419-1,"40.74"195-1,"EWR"1273-2,"01"1274-2,"03"1090-2, "CAD"431-2,"N"1402-2,"1.0"1416-2,"41.40"1417-2,"3.43"1418-2,"15.00"1419-2,"29.83"195-2, "EWR"1273-3,"01"1274-3,"06"1090-3,"CAD"431-3,"N"1402-3,"1.0"1416-3,"107.70"1417-3, "14.00"1418-3,"0.00"1419-3,"121.70"195-3,"EWR"1273-4,"01"1274-4,"92"1090-4,"CAD"1402-4, "1.0"1416-4,"11.87"1417-4,"2.00"1418-4,"0.00"1419-4,"13.87"3058-4,"8"99,""
×
×
  • Create New...