Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

RL2000

Archived
  • Posts

    145
  • Joined

  • Last visited

Everything posted by RL2000

  1. If you want to do it file based, I think there's a contrib that has that option, so search the contrib section.
  2. Well, with UPS, you can get their software Worldship, it has the ability to get the order directly from the osC database, very funky, there's a couple of posts on the forums, try searching around. As for automated tracking numbers, I use UPS ref number field to put in my customers order number, that way I made a script that could query UPS for packages with that order number and me as shipper. Also, WOrldship can be set up to send them a mail with details(UPS Quantum Notify).
  3. Yeah, as far as I can see it's a product attribute, try searching the contribution section for something similar. Otherwise, try mailing the company and get a hold of the webmaster.
  4. I don't think UPS has changed anything, mine still works fine on multiple sites. It doesn't seem to be a problem with passkey and such, more a file inclution problem. could you post the entire error message?
  5. depending on how much of a hack you want to do, you could just edit the function "cheapest" in the shipping class, as that's the one checkout_shipping uses. includes/classes/shipping.php
  6. Don't know the accounting apckage, but a good start is to see what what you program can handle as imports, and find a contribution that can do that for you(or alternatively, write your own). If you're really hardcore, you'll make your accounting system get the dat directly from the DB, but that really depends on how flexible your accounting system is.
  7. Ah, I see... well, I don't know of anything similar, but it could be done, but you would have to know how to go under the hood of osC.
  8. As I understand you, couldn't you just strip out the confirmation mail from checkout_process.php and then change the text in the checkout_succes page, is this what you mean?
  9. Try posting a link to your test shop, it's hard to guess the solution without seeing the problem.
  10. Well, I've used the function into the account history info with a "if shipping equals UPS" thing: echo tep_ups_tracking_by_reference($HTTP_GET_VARS['order_id']); The link of the tracking number takes them to UPS tracking page for the package, where they can see more details. I will be working on a XML version of this at some point, but I'm just too busy atm.
  11. into functions/general.php and ref number is the order number(so remember to put that as the ref number of your packages!), simply use the function on the order history page :)
  12. Well, I've modified it a little bit, this version isn't cleaned from my test code though: //Add UPS tracking function tep_ups_tracking_by_reference($ref_number){ // RL CODE: $ups_html_license = 'YOUR LICENSE'; $ups_shipper_account = 'YOUR UPS ACCOUNT'; define('TEXT_UPS_TRACKING_INFORMATION', '<b>Tracking Number:</b> %s <b>Status:</b> %s'); //$site = file_get_contents('http://wwwapps.ups.com/WebTracking/OnlineTool?InquiryNumber=' . $ref_number . '&submit=Track+this+package&UPS_HTML_License=' . $ups_html_license . '&UPS_HTML_Version=3.0&TypeOfInquiryNumber=R&SenderShipperNumber=' . $ups_shipper_account . '&nonUPS_body=&nonUPS_title=Cortex+Package+Tracking&nonUPS_header=&nonUPS_footer=', r); $site = file_get_contents('http://wwwapps.ups.com/WebTracking/processRefSummary?HTMLVersion=5.0&AgreeToTermsAndConditions=yes&TypeOfInquiryNumber=R&InquiryNumber=' . $ref_number . '&SenderShipperNumber=' . $ups_shipper_account, r); if (!eregi("Unable to track shipment", $site)) { $tracking_string = '<INPUT TYPE="HIDDEN" NAME="line1" VALUE="TrackDetailInfo,'; $ups_tracking = substr(strstr($site, $tracking_string),strlen($tracking_string),18); $full_tracking_string = substr(strstr($site, $tracking_string),strlen($tracking_string),300); $ups_tracking_description = '<a href="http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&AgreeToTermsAndConditions=yes&TypeOfInquiryNumber=T&InquiryNumber=' . $ups_tracking . '" target="_blank">' . $ups_tracking . '</a>'; $ups_status_array= array( 'I' => 'In transit', 'D' => 'Delivered', 'X' => 'Special circumstances apply', 'P' => 'Ready for Shipping', 'M' => 'Manifest pickup', 'XX' => 'Unable to detect, please click for details' ); //$status_string = $ups_shipper_account . ',,,' . $ups_shipper_account . ',,,21b4,,,,,'; $status_string = '\,\,,,'; $ups_status = substr(strstr($full_tracking_string, $status_string),6,1); $ups_status_description = $ups_status_array[$ups_status]; // $full_tracking_string_array = split('">', strstr($site, $tracking_string)); // $full_tracking_string = substr($full_tracking_string_array[0],strlen($tracking_string)); $ups_tracking_string = 'T: ' . $ups_tracking . ' | S: ' . $ups_status . ' | O: ' . $ref_number . ' <br> Tracker: ' . $full_tracking_string; //return $ups_tracking_string . ' SSS: ' . $ups_status; return printf(TEXT_UPS_TRACKING_INFORMATION, $ups_tracking_description, $ups_status_description); } else { return false; } }
  13. What I've done is query UPS with the order number as a reference number and the customers UPS account number, then I've parsed UPS's return source code to get status and tracking number, it works very well. I've made an order prefix so that orders have letters before the numbers, for instance "CS1283". I think I posted the code somewhere in the forums once, but if you're interested I code post it again. You could use the XML bells and whistles, but I simply couldn't be bothered to look into it, as this was MUCH easier :P
  14. You've just became an active player on my top ten list of favorite people of the day!
  15. Well, try just changing it in the language file?
  16. MODULENAME:PRICE,MODULENAME:PRICE
  17. http://www.oscommerce.com/community/contri...,payment+charge
  18. there's a contrib called payment charge that can do this for you. Why osC is made so that payments can't be charged by default, is beyond me, it's standard, at least in Denmark. But that contrib fixes all that :)
  19. well, I have modified my code to much to know the exact name, but you can get the payment something like this: $order-info['payment_medthod']
  20. Hehe, sorry for not answering, I haven't worked on OSC for four month, so I have kinda been off the forums. You can set it anywere, but I just made a row in the configuration table
  21. Well, I have found the problem, and curently I've just made a hack solution. I don't use worldpay but pbscc, but I think it's the same problem. When you call the autologin part in application_top, when using these payment modules, the error occurs. A fix for me was to do a IP check so that if the remote ip was my payportal, then it shouldn't include the autologin thingie: where: if (ALLOW_AUTOLOGON == 'true') { I added: if (ALLOW_AUTOLOGON == 'true' && $REMOTE_ADDR != PAYPORTAL_IP) { That's a quick fix, I haven't found anything better yet.
×
×
  • Create New...