Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FedEx Direct 2.06 Support thread


Roaddoctor

Recommended Posts

Greetings all!

 

I'm still working on adjusting API rates from FEDEX. I have learned that the rates offered will depend on your arrangement with them: see my posts.

 

Anyway, I have a new problem where my admin shipping options give the foloowing errors:

 

Warning: main(/home/suedon/public_html/catalog/includes/languages/english/modules/shipping/fedex1_line.php) [function.main]: failed to open stream: No such file or directory in /home/suedon/public_html/catalog/admin/modules.php on line 128

 

Warning: main(/home/suedon/public_html/catalog/includes/languages/english/modules/shipping/fedex1_line.php) [function.main]: failed to open stream: No such file or directory in /home/suedon/public_html/catalog/admin/modules.php on line 128

 

Warning: main() [function.include]: Failed opening '/home/suedon/public_html/catalog/includes/languages/english/modules/shipping/fedex1_line.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/suedon/public_html/catalog/admin/modules.php on line 128

 

Fatal error: Cannot redeclare class fedex1 in /home/suedon/public_html/catalog/includes/modules/shipping/fedex1_line.php on line 15

The admin shipping options had worked before and I have not made any changes. I have deleted mentioned files and reposted, but the error remains. Anyone have an idea what is happening? An insight is appreciated! :)

 

mike

Hi,

It seem that you have a new file fedex1_line.php at the directory /home/suedon/public_html/catalog/includes/modules/shipping/. Check that you are having the file fedex1.php at /home/suedon/public_html/catalog/includes/modules/shipping/ and delete the file fedex1_line.php. I can't say you where this fedex1_line.php have appear from. Perhaps you himself did it or you have some attack to your website (check other directories and files).

 

Dimon

Link to comment
Share on other sites

Yes!

 

Thank you Dimon. I had just returned from a Hawaiian Cruise where before the trip I had "lined out" some code to see if it would solve my shipping rate issues, and I bascially created this false file and my problem. I deleted this file and its all working!

 

This is my mistake, but I learned from it. :)

 

Thanks Dimon , Roaddoctor and all!

 

Mike

 

Hi,

It seem that you have a new file fedex1_line.php at the directory /home/suedon/public_html/catalog/includes/modules/shipping/. Check that you are having the file fedex1.php at /home/suedon/public_html/catalog/includes/modules/shipping/ and delete the file fedex1_line.php. I can't say you where this fedex1_line.php have appear from. Perhaps you himself did it or you have some attack to your website (check other directories and files).

 

Dimon

Link to comment
Share on other sites

I'm new here, but have a functional store online and running. I have two questions (and don't know where else best to place them so I thought I'd try here.)

 

My first question relates to how to get products selected by customers to automatically, in some cases, send a pair of identical weights and measures to FedEx for quote. In other words, I have many products that are priced and ordered as single pairs. This single purchase ships as a pair of identical components. A customer therefore buys "one" and knows he's actually getting one pair.

 

We therefore have the items priced as pairs, but wish to ping FedEx for what amounts to two identical items, each already weighted as a single piece in my product page. I suppose I have two questions here, actually: Is there some other area in OSC where we set up attributes for each product's actual shipping terms such as weight, size, qty, etc.?

 

The second question is why am I only getting back minimal FedEx shipping options, such as Express Saver when I want the entire menu of available FedEx services? And why would the one or two quotes (out of a possible four or five) that we are getting be rated so expensively? All adders are turned off in OSC so we're not padding the fee.

 

A call to FedEx, naturally, points the finger at OSC.

 

At any rate, it seems that if my first question turns up a solution, I'll be in a better position to assess what's going on with the second, FedEx-related concern. Thanks in advance!

Link to comment
Share on other sites

My first question relates to how to get products selected by customers to automatically, in some cases, send a pair of identical weights and measures to FedEx for quote. In other words, I have many products that are priced and ordered as single pairs. This single purchase ships as a pair of identical components. A customer therefore buys "one" and knows he's actually getting one pair.

 

You would have to set the item weight to the weight of both items on the product listing, then set your admin->configuration->shipping/packaging->Maximum Package Weight you will ship to half that weight so that osc will break it down into 2 packages for ship quotes. Either that or custom code a solution.

 

 

The second question is why am I only getting back minimal FedEx shipping options, such as Express Saver when I want the entire menu of available FedEx services? And why would the one or two quotes (out of a possible four or five) that we are getting be rated so expensively? All adders are turned off in OSC so we're not padding the fee.

 

- FedEX controls what rates you can pull, as well as what discounts you get. Also make sure you have "show list rates" set to False in the module.

- You also have control of which type rates you want in includes/modules/shipping/fedex1.php

// You can comment out any methods you do not wish to quote by placing a // at the beginning of that line
// If you comment out 92 in either domestic or international, be
// sure and remove the trailing comma on the last non-commented line
  $this->domestic_types = array(
//			 '01' => 'Priority (by 10:30AM, later for rural)',
//			 '03' => '2 Day Air',
//			 '05' => 'Standard Overnight (by 3PM, later for rural)',
//			 '06' => 'First Overnight', 
//			 '20' => 'Express Saver (3 Day)',
		 '90' => 'Home Delivery',
		 '92' => 'Ground Service'
		 );

  $this->international_types = array(
		 '01' => 'International Priority (1-3 Days)',
		 '03' => 'International Economy (4-5 Days)',
		 '06' => 'International First',
		 '90' => 'Home Delivery',
		 '92' => 'Ground Service'
		 );
}

 

 

A call to FedEx, naturally, points the finger at OSC.

 

pffft :P lies!! :)

-Dave

Link to comment
Share on other sites

im not sure if this is the correct spot to ask this, but since i installed this contrib, i'll assume my issue deals with this..well its not really an issue, just a how to question..

 

on the checkout shipping page under shipping method i get this: Federal Express (Total items: 2 pcs. Total weight: 165 lbs)..how can i remove the total items and weight from this page? for me i feel its not necessary to provide the customer with this info..i already looked in fedex1.php, as well as the checkout shipping.php but cant seem to find it, can anyone point me in the right direction?

Link to comment
Share on other sites

im not sure if this is the correct spot to ask this, but since i installed this contrib, i'll assume my issue deals with this..well its not really an issue, just a how to question..

 

on the checkout shipping page under shipping method i get this: Federal Express (Total items: 2 pcs. Total weight: 165 lbs)..how can i remove the total items and weight from this page? for me i feel its not necessary to provide the customer with this info..i already looked in fedex1.php, as well as the checkout shipping.php but cant seem to find it, can anyone point me in the right direction?

Find this line at the file fedex1.php (near the line 359)

$this->quotes['module'] = $this->title . " (Total items: " . $total_qty . ' pcs. Total weight: '.$c_e[0].((isset($c_e[1]) == FALSE)? "" : ".".substr($c_e[1],0,2)) .' '.strtolower(MODULE_SHIPPING_FEDEX1_WEIGHT).')';

Link to comment
Share on other sites

i found out why "invalid recipient country" was showing up!

The account # entered into the module settings was no longer active. You can get domestic shipping quotes with the module with a wrong account # and meter ID, but to get international quotes, your account # and meter ID actually have to exist in their system and be active. The "invalid recipient country" is an incorrect error code for "account does not exist" or something. I hope this helps some people

Link to comment
Share on other sites

i found out why "invalid recipient country" was showing up!

The account # entered into the module settings was no longer active. You can get domestic shipping quotes with the module with a wrong account # and meter ID, but to get international quotes, your account # and meter ID actually have to exist in their system and be active. The "invalid recipient country" is an incorrect error code for "account does not exist" or something. I hope this helps some people

 

interesting. Thanks for the info.

-Dave

Link to comment
Share on other sites

  • 2 weeks later...

I am trying to set up the FedEx Direct module in a new OSC installation. I have the current version and all patches. I dutifully followed the installation instructions in the readme (creating the database, modifying the two categories.php files, etc.).

 

I enabled the module in the admin interface with no trouble. I click edit, change the settings (put in account number, etc.) and click the update button. At that point, it reverts to the default settings.

 

I made sure the db user had full perms to the db. I set everything in the catalog directory writeable by the web server user. No joy.

 

Any guesses on what's going on?

Link to comment
Share on other sites

I have a small issue where I can see that the data going to and comming back FedEx for the home delivery option looks good however I do not get an option for the to ship this via the FedEx home delivery on the checkout_shipping.php page. It is only this one product all of my other products work correctly and give me a home delivery option with the right amount.

I suspect that the issue is that this product is over 165" girth as when I goto FedEx website I have to use "FedEx Freight" for this item but I think I can fudge the data enough to make the shipping cost close if I can figure out where it is dumping out the data.

 

Data sent to Fedex for Rating: 0,"25"10,"3*********"498,"2******"8,"TX"9,"79906"117,"US"17,"95127"16,"CA"50,"US"75,"LBS"

57,"46"58,"36"59,"15"1116,"I"1401,"73.0"1529,"1"1415,"999.00"68,"USD"440,"Y"1273,"01"1333,"1"99,""

Data returned from Fedex for Rating: 0,"125"1133,"1"2399-1,"3"1273-1,"01"1274-1,"92"1090-1,"USD"431-1,"Y"1402-1,"129.0"1416-1,"56.17"

1417-1,"51.20"1418-1,"8.43"1419-1,"98.94"3058-1,"3"1992-1,"0.00"99,""

 

fedex.jpg

Edited by Zappa12321
Link to comment
Share on other sites

I have a small issue where I can see that the data going to and comming back FedEx for the home delivery option looks good however I do not get an option for the to ship this via the FedEx home delivery on the checkout_shipping.php page. It is only this one product all of my other products work correctly and give me a home delivery option with the right amount.

I suspect that the issue is that this product is over 165" girth as when I goto FedEx website I have to use "FedEx Freight" for this item but I think I can fudge the data enough to make the shipping cost close if I can figure out where it is dumping out the data.

 

Data sent to Fedex for Rating: 0,"25"10,"3*********"498,"2******"8,"TX"9,"79906"117,"US"17,"95127"16,"CA"50,"US"75,"LBS"

57,"46"58,"36"59,"15"1116,"I"1401,"73.0"1529,"1"1415,"999.00"68,"USD"440,"Y"1273,"01"1333,"1"99,""

Data returned from Fedex for Rating: 0,"125"1133,"1"2399-1,"3"1273-1,"01"1274-1,"92"1090-1,"USD"431-1,"Y"1402-1,"129.0"1416-1,"56.17"

1417-1,"51.20"1418-1,"8.43"1419-1,"98.94"3058-1,"3"1992-1,"0.00"99,""

 

fedex.jpg

 

If your customer has a "company name" they will only see the "FedEx Ground" rate

If your customer does NOT have a "company name" (blank) they will only see the "FedEx Home" rates

 

This is normal

-Dave

Link to comment
Share on other sites

I am trying to set up the FedEx Direct module in a new OSC installation. I have the current version and all patches. I dutifully followed the installation instructions in the readme (creating the database, modifying the two categories.php files, etc.).

 

I enabled the module in the admin interface with no trouble. I click edit, change the settings (put in account number, etc.) and click the update button. At that point, it reverts to the default settings.

 

I made sure the db user had full perms to the db. I set everything in the catalog directory writeable by the web server user. No joy.

 

Any guesses on what's going on?

 

Please double check your installation - The admin interface should work just fine- I do not recall anyone else having that problem. -sorry

-Dave

Link to comment
Share on other sites

If your customer has a "company name" they will only see the "FedEx Ground" rate

If your customer does NOT have a "company name" (blank) they will only see the "FedEx Home" rates

 

This is normal

 

Roaddoctor what you say I totally realize. However what I want to know is why it is not displaying the pricing for home delivery for this large item. Normally I see a price with a select button like I see in the UPS in the example shown but in this case there is no pricing shown even though the data that I get back from UPS is almost same that I would get for a smaller item and was wondering why it is not being displayed.

 

This data below does not work:

Data sent to Fedex for Rating: 0,"25"10,"311203100"498,"2126199"8,"TX"9,"79906"117,"US"17,"95127"16,"CA"50,"US"75,"LBS"

57,"46"58,"36"59,"15"1116,"I"1401,"73.0"1529,"1"1415,"999.00"68,"USD"440,"Y"1273,"01"1333,"1"99,""

Data returned from Fedex for Rating: 0,"125"1133,"1"2399-1,"3"1273-1,"01"1274-1,"92"1090-1,"USD"431-1,"Y"1402-1,"129.0"1416-1,"56.17"

1417-1,"51.20"1418-1,"8.43"1419-1,"98.94"3058-1,"3"1992-1,"0.00"99,""

 

This data does work (-7 is ground):

Data sent to Fedex for Rating: 0,"25"10,"311203100"498,"2126199"8,"TX"9,"79906"117,"US"17,"95127"16,"CA"50,"US"75,"LBS"

57,"41"58,"32"59,"13"1116,"I"1401,"70.0"1529,"1"1415,"799.00"68,"USD"440,"Y"1273,"01"1333,"1"99,""

Data returned from Fedex for Rating: 0,"125"1376,"LBS"1377,"LBS"1092,"5"1133,"7"2399-1,"3"1273-1,"01"1274-1,"01"1090-1,"USD"

1089-1,"01552"431-1,"Y"1402-1,"88.0"1403-1,"88.0"1416-1,"278.00"1417-1,"71.06"1418-1,"139.00"

1419-1,"210.06"1420-1,"0.00"194-1,"MON"195-1,"SJC"409-1,"16Jul07"2399-2,"3"1273-2,"01"1274-2,"03"

1090-2,"USD"1089-2,"06046"431-2,"Y"1402-2,"88.0"1403-2,"88.0"1416-2,"129.85"1417-2,"61.06"

1418-2,"64.93"1419-2,"125.98"1420-2,"0.00"194-2,"TUE"195-2,"SJC"409-2,"17Jul07"2399-3,"3"1273-3,"01"

1274-3,"06"1090-3,"USD"1089-3,"00012"431-3,"Y"1402-3,"88.0"1403-3,"88.0"1416-3,"303.00"

1417-3,"93.20"1418-3,"0.00"1419-3,"396.20"1420-3,"0.00"194-3,"MON"195-3,"SJC"409-3,"16Jul07"2399-4,"3"

1273-4,"01"1274-4,"05"1090-4,"USD"1089-4,"01349"431-4,"Y"1402-4,"88.0"1403-4,"88.0"1416-4,"254.10"

1417-4,"69.45"1418-4,"127.05"1419-4,"196.50"1420-4,"0.00"194-4,"MON"195-4,"SJC"409-4,"16Jul07"

2399-5,"3"1273-5,"01"1274-5,"20"1090-5,"USD"1089-5,"07173"431-5,"Y"1402-5,"88.0"1403-5,"88.0"

1416-5,"108.30"1417-5,"59.61"1418-5,"54.15"1419-5,"113.76"1420-5,"0.00"194-5,"WED"195-5,"SJC"

409-5,"18Jul07"2399-6,"3"1273-6,"01"1274-6,"90"1090-6,"USD"431-6,"Y"1402-6,"88.0"1416-6,"34.49"

1417-6,"48.98"1418-6,"3.45"1419-6,"80.02"3058-6,"3"1992-6,"0.00"2399-7,"3"1273-7,"01"1274-7,"92"

1090-7,"USD"431-7,"Y"1402-7,"88.0"1416-7,"34.49"1417-7,"49.27"1418-7,"5.17"1419-7,"78.59"3058-7,"3"

1992-7,"0.00"99,""

Link to comment
Share on other sites

Zappa, sorry bout that, I just skimmed your question and did not pay attention. I will ask Dimon (dadsim) to take a look at your issue. He is the smart one around here, ie codemonkey :P I try to take care of the simple issues for people but he is much better at technical issues.

-Dave

Link to comment
Share on other sites

Zappa, sorry bout that, I just skimmed your question and did not pay attention. I will ask Dimon (dadsim) to take a look at your issue. He is the smart one around here, ie codemonkey :P I try to take care of the simple issues for people but he is much better at technical issues.

 

 

Thanks I think I found out the basic answer was just too close to it last night. The return shipping code for ground was the only one being returned for FedEx for this larger package. I think what I am going to do is do something like do an if statement that states if there is no home delivery then use the ground delivery numbers and add in $10 to $15 in addition to fudge the numbers difference.

Link to comment
Share on other sites

Please double check your installation - The admin interface should work just fine- I do not recall anyone else having that problem. -sorry

 

It doesn't seem to be specific to the FedEx module. It will not save settings for any payment or shipping module, though it will save settings for other things (like the configuration settings). I'll post elsewhere.

 

Thanks.

Link to comment
Share on other sites

It doesn't seem to be specific to the FedEx module. It will not save settings for any payment or shipping module, though it will save settings for other things (like the configuration settings). I'll post elsewhere.

 

Apparently, this is a known issue with the 060817 (and, possibly RC1) release of OSC. Here's a link to the appropriate forum thread for anyone else who stumbles on my question instead of the answer:

 

http://www.oscommerce.com/forums/index.php?sho...odule+-updating

Link to comment
Share on other sites

Hi all

 

Another newbie to osC and tp php here

 

I'm currently up to my neck in panic mode with a very tight deadline to totally rebuild an esisting website into an osC store

 

I'd like to incorporate the FedEx direct quote module, but I need a patch so it pulls the prices from FedEx Thailand, not the US or Canada.

 

Does anyone have an existing patch with instructions, or any chance someone could cobble one together?

 

(I haven't installed the module yet, figuring it's better to do so with the patch in place first)

 

Many thanks

Gaz

Wearing a seatbelt prevents head injuries when the computer crashes - - - Yeah Right!!! - not in this office.

Link to comment
Share on other sites

Hi all

 

Another newbie to osC and tp php here

 

I'm currently up to my neck in panic mode with a very tight deadline to totally rebuild an esisting website into an osC store

 

I'd like to incorporate the FedEx direct quote module, but I need a patch so it pulls the prices from FedEx Thailand, not the US or Canada.

 

Does anyone have an existing patch with instructions, or any chance someone could cobble one together?

 

(I haven't installed the module yet, figuring it's better to do so with the patch in place first)

 

Many thanks

Gaz

 

I would install the module as is (2.07, then 2.07.1 patch if desired)

Then look in fedex1.php for this

	function _AccessFedex($data) {

  if (MODULE_SHIPPING_FEDEX1_SERVER == 'production') {
	$this->server = 'gateway.fedex.com/GatewayDC';
  } else {
	$this->server = 'gatewaybeta.fedex.com/GatewayDC';
  }

 

and edit as needed per Fedex technical support thailand advice...

 

gl

-Dave

Link to comment
Share on other sites

Calling Fedex was definitely the answer in my case. Domestic rates were working great but I was getting the error above for international addresses. When I set my account up with Fedex I did not specifically request International and so I didn't get it :). They recertified my account to include international and all is well. Thank you so much for a great contribution and great support!

 

 

anyone receiving this error:

Call FedEx and ask if they serve that country and or postal code. If not, then the error makes sense. If so, then ask if your account is authorized to pull international rates for the specific region involved.

 

FedEx maintains control on their end of many of your possible shipping features/options that you may have. Sometimes a phone call will resolve the issue.

 

let us know your results.

 

Thx

PS: A new version will be uploaded soon with the minor bug fixes since 2.06, and the GoDaddy fix, as well as a new optional feature that will be helpful to shippers who use FedEx MULTIWEIGHT shipping, and wish to pass some/all of the discounts to your customer. -soon-

Link to comment
Share on other sites

  • 2 weeks later...

Hello all. I've got a store where we use the Fedex Ship Manager software for shipping and we have it configured to charge a 30% surcharge handling fee. This is 30% of the total shipping charge, not the order total. I've not been able to figure out how to get the module to accomidate that option and I'm unclear from reading related posts, of which I only found three, as to whether they were refering to a percentage of the total order or just the shipping charge. Any help would be greatly appreciated.

Link to comment
Share on other sites

  • 4 weeks later...

Hello guys ! Thank you for this great contribution.

 

I've got a big problem. Is OpenSSL compulsory for this to work ?

i took a look at my CURL section in php server info & openssl is not installed.

 

Since i'm using shared hosting, i fear that i probably won't be allowed to install the OpenSSL toolkit.

Is there any way around this ?

is it possible to use others like QuickSSL Premium (geotrust) that is offered by the host ?

Link to comment
Share on other sites

Also make sure you have "show list rates" set to False in the module.

 

I did but so far, no change.

 

- You also have control of which type rates you want in includes/modules/shipping/fedex1.php

 

I can't find this in File Manager. There's an "includes" folder but no further tree. What am I doing wrong?

 

Thanks for your help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...