Jump to content

John W

  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by John W

  1. John W

    FedEx - Web Services v9

    Hi Dave, I'll emal it to you later today or tonight but if you're not familiar with the upsxml module take a look at that because you'll need the packing class and the dimension support. So, your products will need height, width, and length as well as the ready to ship option. But, this way we send Fedex all the dimensions so dim weight comes out correct. I ship boxes that are 60x15x10 which drives the shipping up a lot.
  2. John W

    FedEx - Web Services v9

    On a separate note, I have the full dimensional support using the packing clase used in upsxml working with fedexwebservices if anyone is interested in that. I ship a lot of oversize boxes but also the packing class packs items based on product dimensions instead of just weight.
  3. John W

    FedEx - Web Services v9

    Hey Roaddoctor, The more I thought about it i knew something had to be wrong with the "usort" use because the function shouldn't be nested and it should work where it was. Instead of usort($methods, 'cmp'); it should be usort($methods, array( $this,'cmp')); Then the cmp function can and should be moved back. Also, on line 67 that file isn't needed. require_once(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'library/fedex-common.php5');
  4. John W

    FedEx - Web Services v9

    I meant for you to move the cmp function like Roaddoctor has done in the new version. Basically, it becomes a nested function which is not really the correct way but it works. Otherwise it gets an unfound/illegal function warning. All the examples I've seen on php.net show it used in a small script.
  5. John W

    FedEx - Web Services v9

    The function to sort low to high is done usort, which is probably commented out. Look for the line below and uncomment it. // usort($methods, 'cmp'); But I beleive you have to move the "cmp" function so it's like function cmp($a, $B) { if ($a['cost'] == $b['cost']) { return 0; } return ($a['cost'] < $b['cost']) ? -1 : 1; } usort($methods, 'cmp'); This should solve your problem but post back if not.
  6. John W

    FedEx - Web Services v9

    I think this regex might help reduce the extra code in that line. if (preg_match('/^P\.?\s?O\.?\s+?BOX/i', $order->delivery['street_address']) || (preg_match('/^P\.?\s?O\.?\s+?BOX/i', $order->delivery['suburb']))) { $this->quotes = array('module' => $this->title, 'error' => '<font size=+2 color=red><b>Federal Express cannot ship to Post Office Boxes.<b></font><br>Use the Change Address button above to use a FedEx accepted street address.'); }
  7. Chase Paymenttech can be used with Authorize.net. I switched to Chase a few months ago and they include the Authorize.net charges in their plan.
  8. John W

    Namespaces Explained

    Glad you like it. I found it to be very well explained with great examples that show the advantages of using it. I didn't understand how strong namespaces were before reading this article. I read several others on their site and I really like how they explain everything.
  9. I found this explaination of namespaces informative and easy to understand. Thought some of you might be interested. Namespaces in PHP
  10. I haven't used this aim module with onepage but the standard osc aim module works with onepage.