VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => FedEx VM 1 => Topic started by: lowmips on August 05, 2009, 23:37:06 pm

Title: FedEx v2.0 - Web Services
Post by: lowmips on August 05, 2009, 23:37:06 pm
FedEx v2 Public Release

Thanks to all the wonderful donators and feature underwriters! Because of them, I am now releasing FedExv2 for public use under the GPL!


What is FedExv2.0?
FedExv2.0 is a VirtueMart shipping module utilizing FedEx's "Web Services" API.  Why do we need this? Because FedEx is going to phase out their "DC" API.  The official timeline for this phasing out is "sometime before January, 2012", according to my FedEx Web Services Integration Team contact.


What does FedExv2.0 offer?
There are currently three versions of FedExv2.0.  All are downloadable from this post, or on my website www.lowmips.com.  The most current version is the most stable, as bugfixes are generally not back ported to older code.

vm-113-fedex_v2.0.2009.07.20.zip
The first is just a basic shipping module.  This module adheres to the "drop in" concept for VM shipping modules, with the exception of one updated language file. You plug in your FedEx services credentials, select which shipping options you want to offer, and during checkout the user will see all applicable FedEx shipping services and their costs.  Optionally, you can have the estimated delivery dates shown as well. I've attached some screenshots of the basic FedExv2.0 in action to this thread.  This module is based on VirtueMart 1.1.3 code, so the language file may be outdated for later versions of VM.  It would be best for you to open the file, copy the FedExv2 language, and paste it into the language file of the version you're using.


vm114-fedex_v2.0.2010.06.18.zip
The next version is based on VirtueMart 1.1.4 code, and offers many features! However, it also requires updating/replacing some VirtueMart core files.  It does not adhere to the VM "drop in" shipping module concept.  This means that upgrading to future versions of VirtueMart could potentially "break" the module. Updated versions of the FedExv2 module may need to be produced for compatibility. This module offers everything the basic module does, plus:
- mechanism to choose between production/development environment
- option to choose residential or commercial delivery (the basic module defaults to residential)
- bundled/unbundled packages, for products that may need to ship separately
- max per package flags, for items that can only fit a few per package
- ability to restrict certain items to ground based shipping, while allowing the user to choose a shipping service for the remaining items
- "view shipping configuration" feature, to see exactly how each virtual package is configured
- currency conversion calculations in order to better work with mod_virtuemart_currencies
- option to declare L/W/H on packages
- option to restrict L/W/H declaration to "unbundled" packages
- option to use alternate source shipping address per product (drop shipping)
- option to toggle "extra" administrative debug information on/off (FedEx request/reply)
- option to vary the maximum package weight.  You may wish to ensure packages are smaller than the FedEx maximum weight.
- FedEx does not ship to Post Office box addresses.  Users who choose a PO address during checkout will see a message stating this
- option to redirect user back to address selection page if PO address is detected
- option to charge additional fee for international orders
- option restrict products from being shipped via certain service types to restricted country/(state|province)/zipcode
- option to modify shipping cost per product (percentage based)
- option to show "free shipping" image on flypage for products with "0%" shipping modifier
- option to restrict free shipping to ground services
- option to show 12 or 24hour ETA timestamp
- option to flag product as "add-on" and restrict number purchasable for the order
- option to use parent product's bundling settings
- option to use parent product's "max per package" settings
- option to declare insurance value (entire shipment)
- option to declare insurance value (per product)
- option to allow shipping coupons (free shipping/in-store pickup)
- option to add padding weight based on package weight
- modified tax behaviour
- option to allow users to specify Residential/Commercial address type
- basic CSV export mechanism
- option to allow user to require signature confirmation during checkout


vm115-fedex_v2.0.2011.01.06.zip
This version offers everything the previous versions offer, but has been ported to VirtueMart 1.1.5 code! Also, this version supports version 9 of the "Web Services" API!


vm118-fedex_v2.0.2011.04.19.zip
This version offers everything the previous versions offer, but has been ported to VirtueMart 1.1.8 code!


vm119-lowmips.2011.08.22
- includes vm118-fedex_v2.2011.04.19
- ported to VirtueMart 1.1.9
- download from my website




System Requirements:
- PHP5 with SOAP and SSL libraries installed
- Joomla 1.5.x
- VirtueMart 1.1.x

Notes about the module, and Web Services:
- Be sure you check the latest FedEx services guide before using the module.  FedEx does not always offer shipping services to locations you'd expect!

- Currently, the module uses "RATED_LIST" as the query type. Future versions may give a choice among the available types

- Using RATED_LIST will return the "general" rates that usually match the rates obtained from FedEx.com's manual rate tool.  However, there is a discount that is sometimes applied to the rates obtained via Web Services due to an "automation discount". In other words, you get a discount for using Web Services.  This sometimes will cause the rates shown via the module to be lower than the rates at FedEx's counter. The only way to get the discount is to print a shipping label via Web Services, which the module currently does not do.  I plan on adding this functionality at some point in the future, either in the module itself or via a new Joomla component which interfaces with it.  This may be a proprietary/commercial component, I have not decided yet.

- I have seen PAYOR_ACCOUNT rates discount International shipping quite a bit (up to 10% or so).

- A user pointed out to me that in order to remove the Web Services discount from your rates, all you need to do is NOT include the account number in the module setup.  If you DO NOT include the account number, FedEx returns generic, non-discounted rates!

- Estimated Duties and Taxes - I have a version of the module that supports the ED&T API, but FedEx has requested that it NOT be made freely available for download, due to the customer-by-customer basis that ED&T is enabled. The module currently only supports US to CA shipments, but can be easily modified to include more.  If you would like ED&T support in your FedExv2 module, first have it enabled by FedEx, then contact me for a copy of the module.

- SmartPost - Currently, the module does NOT support SmartPost.  I plan to add it sometime in the future.


Want to display estimated shipping rates in the cart before checkout? Download my CartRates for FedExv2 (http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&id=5:fedexv2&Itemid=18) system plugin today (plgsystemcartrates-fedexv2.zip)!




NOTICE:
This module is not designed to be installed alongside my USPSv5 or UPSv2 modules.  Installing these together can lead to a broken VirtueMart!  I plan to create a unified module at some point in the future.


[attachment cleanup by admin]
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on August 05, 2009, 23:39:52 pm
See attached images. This is the basic version.

[attachment cleanup by admin]
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on August 05, 2009, 23:42:52 pm
See attached images.  These are from version 2009.09.26

-Reggie

[attachment cleanup by admin]
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on August 06, 2009, 15:48:38 pm
Update: We're at 25% towards a public release.
Thank you donators!

-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: baddkar on August 07, 2009, 18:07:13 pm
definitely interested in this, does it include tracking options? for example after the order is made and processed the fedex tracking number is some how displayed on the order, store account area, and in the email sent to both the admin and customer?
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on August 07, 2009, 18:20:13 pm
Eventually, with funding, yes it will include tracking.

-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on August 12, 2009, 15:07:28 pm
Update: We're at28% towards a public release.

Thank you donators!
-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on August 23, 2009, 22:33:27 pm
Update:
I have an underwriter for adding bundled/unbundled item designation, along with the "maximum per package" feature.  Both can be seen in my UPSv2 module.  This updated module is currently being tested, and will be available to all who have donated thus far when testing is complete.

-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on August 24, 2009, 19:22:39 pm
Update: We're at 32% towards a public release. Thank you donators!
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 02, 2009, 19:38:17 pm
Service outage notice:



Dear Valued FedEx® Customer:

Please be advised of the following temporary service interruptions.

Production maintenance update for Sept. 5, 2009

Due to routine maintenance updates to the FedEx production environment, there will be a temporary service interruption on Saturday, Sept. 5, 2009 from 9 p.m. to 1 a.m. CT. Customers using FedEx Web Services, FedEx Ship Manager® API and FedEx Ship Manager® Direct solutions will be unable to process transactions within the production environment.

 

Production environment update for Sept. 19, 2009

Due to the corporate quarterly update, there will be a temporary service interruption from 9 p.m. to 11 p.m. CT on Saturday, Sept. 19, 2009. Customers using FedEx Web Services, FedEx Ship Manager® API and FedEx Ship Manager® Direct solutions will experience interruptions with their transportation, revenue and rating transactions.

From 9 p.m. CT on Saturday, Sept. 19, 2009 to 3 a.m. Sunday, Sept. 20, 2009, customers using FedEx Web Services, FedEx Ship Manager® API and FedEx Ship Manager® Direct solutions will experience interruptions with dispatch and scan postings.

Please ensure that your appropriate team members are aware of these updates.

We regret any inconvenience. If you have any questions or need technical assistance, please send an e-mail to websupport@fedex.com.

Thank you for using FedEx. We appreciate your business. 

 

The FedEx Web Integration Solutions Team 
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 13, 2009, 14:42:49 pm
Update: We're at 38% towards a public release. Thank you donators!
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 19, 2009, 15:23:59 pm
The next version of FedExv2, 2009.8.13, has been released!  The new offerings are:
    - option to choose development or production environment
      this automatically switches to prod/dev WSDL
     
    - option to choose Residential/Commercial delivery
     
    - option for bundled/unbundled products
    - option for maximum product per package

If you have previously donated and want the latest version, please contact me.  New donators will be sent both versions.

-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 22, 2009, 03:01:59 am
Update: We're now at 42% towards a public release.

Thank you donators!
-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 22, 2009, 14:30:28 pm
Update: We're now at 46% towards public release. Thank you donators!

-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 22, 2009, 22:50:59 pm
Update: We're halfway there! 50% towards a public release.

Thank you donators!
-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 28, 2009, 17:52:27 pm
Update: We're 55% towards a public release!
Thank you donators!
-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on September 29, 2009, 18:39:11 pm
Update: We're 65% towards a public release!
Thank you donators!
-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on October 01, 2009, 15:20:14 pm
FYI
The FedEx Web Services servers have been experiencing some problems the past 2 or 3 days, causing some international rate requests to fail.  There have been no official notifications.  I am in contact with a FedEx Integration Team person who is aware of the issue.  More info if/when I get it.

-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on October 13, 2009, 19:31:12 pm
FedExv2.2009.09.26 is now available! Here's the changelog:

2009.09.26
    - option to restrict products to ground shipping only, while allowing the user to choose an option for the remaining unrestricted items
    - added "View Shipping Configuration" feature
    - fixed several bugs dealing with currency conversion
    - added better currency handling to work with mod_virtuemart_currencies
    - worked around bug with FedEx returning USD regardless of requested currency
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on October 24, 2009, 20:04:55 pm
Update: We're 75% towards a public release!
Thank you donators!
-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on November 01, 2009, 16:26:38 pm
Hi All,
I just wanted to give special kudos to Wichit Binary from http://binary.co.th for his assistance with identifying bugs and testing fixes for those bugs in the FedExv2 module.  His patience and willingness to test "beta" code updates has led to a much greater module stability.

Thanks Wichit!
-Reggie
Title: Re: FedExv2.0 - Web Services
Post by: lowmips on December 08, 2009, 19:42:25 pm
Just an update, we've hit the 90% mark.  With a few more donations, I'll be releasing the module publicly under GPL!

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: baddkar on December 22, 2009, 22:45:01 pm
I have a question about this module. Does it handle tracking numbers? Could I some how email the customer the tracking number for the order?

Thank you, everything else looks great!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 23, 2009, 03:25:47 am
No tracking numbers.  This module simply queries for rates, and shows them to the user. If you're wanting to add tracking numbers after-the-fact, that could be implemented.  I estimate it would take a couple hours.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 01, 2010, 17:29:47 pm
FedEx v2 Public Release

Thanks to all the wonderful donators a feature underwriters, I am happy to announce that the module is now available for download for free! The license has been changed to the GPL.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 04, 2010, 19:45:09 pm
Update:
vm-114-fedex_v2.0.2010.01.02.zip

Changelog:
2010.01.02
    - option to use parent product's bundling settings
    - option to use parent product's "max per package" settings
    - fixed minor display bug on admin backend product update display page
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 06, 2010, 21:14:25 pm
Update
I've discovered a bug which can cause FedEx Ground for international orders to not show up.  I've fixed this bug in version vm-114-fedex_v2.0.2010.01.02.zip, and vm-113-fedex_v2.0.2009.09.26.zip

Please re-download and replace the fedexv2.php file with the update one.
Title: Re: FedEx v2.0 - Web Services
Post by: tennesseepaul on January 27, 2010, 16:12:09 pm
Does thes FedEx v2.0 Web Services module have the ability to include Shipping Insurance?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 27, 2010, 16:17:21 pm
As it is currently, no. I could add this feature if you'd like to underwrite it.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: tennesseepaul on January 27, 2010, 18:11:23 pm
Reggie - Thanks for the response. I am new to the entire VirtueMart world and all the help I can get is deeply appreciated. As I understand it shipping insurance is bought or sold through FedEx, but I don't know for sure. Would this be a complex/large request of an update?

Secondly, of the three releases for this module, I noticed that the latest contains features I would find very useful, but it appears to be built on VM 1.1.4, do you know if it would work with VM 1.1.3?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 27, 2010, 18:23:54 pm
The modules currently do "rate shopping", meaning you get (usually close) estimates of the actual shipping charge when you take the box to fedex to be shipped, or use online tools to create the shipment.  The modules do not initiate any shipping/pickup/etc.! You are responsible for that.  So for insurance, what we would do is flag the package as needing insurance (by giving the package a monetary value), and the estimates received back by the module should reflect the insurance cost. It should not be a big deal.  I would think an hour or less to implement and test.

I do not know if the VM114 module will work with VM113, I have never tested it.  There are quite a few core file updates that may or may not cause issues by going backwards a revision.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: tennesseepaul on January 27, 2010, 20:12:55 pm
Thank you Reggie. This has been very helpful. I will look over what my needs are and get back to you.
Title: Re: FedEx v2.0 - Web Services
Post by: NWLB on February 01, 2010, 21:05:24 pm
Just wanted to give Reggie a public nod and thanks for the exceptional work he has done.  I initiated some of the features my employer underwrote recently, with others currently underway.  This module has truly made VirtueMart a program we can use for the long-term, and given us some features we haven't been able to match with other options.  Likewise, Riggie has been exceedingly swift with his work, responding to questions and such.  If there are others seeking to underwrite features, know that we have confidence in him!

Nathan Boyle
Title: Re: FedEx v2.0 - Web Services
Post by: Forrest on February 01, 2010, 22:30:52 pm
Very nice job with this. Thanks for the quality work!

A few things to note... O'm not complaining! Just food for thought...

1. Better commenting on the added or changed code within each core VM file. Many people who are willing to hack their files, have done so already (or will) with other hacks, and cannot just overwrite their existing files with your hacked ones. It was quite tedious comparing line by line for missing/altered code when integrating my already heavily hacked files.

2. Would be nice at some point to have a fully integrated solution for ALL three USP, USPS, and FedEx in one single hack download. I spend hours putting them all together, but got it working well. Several of my clients want all three shipping options available to their clients.

Thanks again :)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 02, 2010, 20:04:04 pm
*****UPDATE*****
vm114-FedExv2.0.2010.01.21

Changelog:
2010.01.21
   - option to add an additional charge to international orders (per each package)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 03, 2010, 19:25:01 pm
Another user has chimed in on #2 as well:
http://forum.virtuemart.net/index.php?topic=66275.msg220052#msg220052

Very nice job with this. Thanks for the quality work!

A few things to note... O'm not complaining! Just food for thought...

1. Better commenting on the added or changed code within each core VM file. Many people who are willing to hack their files, have done so already (or will) with other hacks, and cannot just overwrite their existing files with your hacked ones. It was quite tedious comparing line by line for missing/altered code when integrating my already heavily hacked files.

2. Would be nice at some point to have a fully integrated solution for ALL three USP, USPS, and FedEx in one single hack download. I spend hours putting them all together, but got it working well. Several of my clients want all three shipping options available to their clients.

Thanks again :)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 03, 2010, 21:44:57 pm
*********** POLL **********

Would you like to see the USPSv5, UPSv2, and FedExv2 modules combined into one monolithic module?

Pro's:
- Modules will work together, "out of the box"
- Features for one carrier could more easily be ported to another carrier

Con's:
- Larger archive size, could possibly lead to rehosting of the file
- You'll need to check the documentation to see if a feature is supported for the carrier you wish to use


Here's the poll (http://www.lowmips.com/joomla/component/apoll/apoll/1-i-would-like-to-see-upsv2-uspsv5-and-fedexv2-combined-into-one-module), for anyone interested.
Title: Re: FedEx v2.0 - Web Services
Post by: numlock on February 20, 2010, 10:29:42 am
Hi Reggie,

By the way great work for this shipping module.

It's much way better than the stock FedEXdc module that Virtuemart have.

Anyways, I always get a "No FedEx rates returned" message on the shipping section when checking out. And turning the debug on produces the message "Debug: get_package_rates: get_rates_array failed."

What am I missing?

Any help would be appreciated.

Thanks!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 20, 2010, 14:14:22 pm
Please post which version you are using.
Title: Re: FedEx v2.0 - Web Services
Post by: numlock on February 20, 2010, 18:33:50 pm
I'm using vm114_fedexv2.2010.01.21
Title: Re: FedEx v2.0 - Web Services
Post by: numlock on February 20, 2010, 18:42:10 pm
My bad... I forgot to select the "Authorized Service Types" on the shipping module configuration (I'm blaming this on my lack of sleep).

Thanks anyway.
Title: Re: FedEx v2.0 - Web Services
Post by: numlock on February 21, 2010, 00:45:49 am
I got the Fedex production access already, but it seems the shipping rates that I'm getting from my Virtuemart shopping page is a little quite off comparing to fedex.com rate.

My product's size and weight are the following

15 x 15 x 6 inches
6 lbs

I have applied this same size and weight to the fedex.com site. I'm also using the same source and destination zip code for both my shopping page and on fedex.com.

And here are the values that I'm getting:

Shopping Page
FedEx Ground (Home Delivery) ($8.12)
FedEx Express Saver ($29.98)
FedEx 2 Day ($31.79)
FedEx Standard Overnight ($42.87)
FedEx Priority Overnight ($48.62)
FedEx First Overnight ($75.24)

fedex.com
FedEx Home Delivery® 10.22
FedEx Express Saver® 16.16
FedEx 2Day® 18.39
FedEx Standard Overnight® 29.42
FedEx Priority Overnight® 36.13
FedEx First Overnight® 62.75        

Any clue what's happening?

I'm using vm114_fedexv2.2010.01.21

Thanks.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 21, 2010, 00:48:39 am
Is delivery type set to commercial or residential? That could be it..
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 01, 2010, 17:13:47 pm
**** Update ****

Version 2010.02.07 Released! Changelog:

- option to declare insurance value (entire shipment)
- option to declare insurance value (per product)
- option to allow shipping coupons (free shipping/in-store pickup)
Title: Re: FedEx v2.0 - Web Services
Post by: virtue111 on March 10, 2010, 16:17:18 pm
It says:

Critical: FedExv2: SOAP libraries are not installed!

When I try to configure the shipping module
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 10, 2010, 16:22:35 pm
Your server is not configured with the SOAP libraries.  This is a requirement for the module to work.
Title: Re: FedEx v2.0 - Web Services
Post by: h2oferko on March 13, 2010, 06:17:45 am
something just went here wrong, anyways, what is the Web Access Key and the Web Access Password?
User ID and Password to the fedex.com or the Production Password, but what is the Production ID then? Tried both, same error.
VM: 1.1.4
J!: 1.5.15
Fedex: VM114-FedExv2.2010.02.07



Please select a Shipping Method!
The FedEx Request was:
Array (   
    [WebAuthenticationDetail] => Array (       
        [UserCredential] => Array (           
            [Key] => xxxxxxxx
            [Password] => xxxxxxxx
        )
    )
    [ClientDetail] => Array (       
        [AccountNumber] => 123456789
        [MeterNumber] => 101010011
    )
    [TransactionDetail] => Array (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (       
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => USD
    [ReturnTransitAndCommit] => 1
    [RequestedShipment] => Array (       
        [ShipTimestamp] => 2010-03-13T05:10:32+00:00
        [Shipper] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => WI
                [PostalCode] => 54xxx
                [CountryCode] => US
            )
        )
        [Recipient] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => OH
                [PostalCode] => 43123
                [CountryCode] => US
                [Residential] => 1
            )
        )
        [RateRequestTypes] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackages] => Array (           
            [SequenceNumber] => 1
                [ItemDescription] => VirtueMart Order
                [Weight] => Array (                   
                    [Value] => 1
                    [Units] => LB
                )
            )
        )
    )
)
The FedEx Response was:
stdClass Object (   
    [HighestSeverity] => ERROR
    [Notifications] => stdClass Object (       
        [Severity] => ERROR
        [Source] => prof
       
Code: [Select]
=> 1000
        [Message] => Authentication Failed
    )
    [TransactionDetail] => stdClass Object (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (       
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
)
Notice: No FedEx rates returned.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 13, 2010, 14:57:11 pm
Sign up for Web Services on FedEx.com.  They'll send you development credentials (key, password, meter, etc.).  Follow the link they provide to move to production.  They'll give you new production credentials.
Title: Re: FedEx v2.0 - Web Services
Post by: h2oferko on March 15, 2010, 02:27:29 am
i have already signed up for web services, and i have the credentials, except, the production id - mentioned in the module. Is it running under a different name at fedex?

I have the followings from the guys. Oh and a user id for logging in into their website with a password.
Production Password: ***********************

FedEx Account Number : *********

Production Meter Number : *********
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 15, 2010, 02:56:24 am
Web Services Key.
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 17, 2010, 07:46:49 am
I have been fighting the same thing. It may be exhaustion but it's not clicking...  If you Google fedex "web access key" you get one result.  I've managed to build a pretty decent virtuemart store that's been running successfully for a few years now...but if this clears our shipping nightmares, we will absolutely be donating.

Our shipping has hopped back and forth between carriers over the last 5 or so years. Today, we got a one day notice from USPS that our rates for single item is increasing from @ $10 each to over $60 each and are migrating to FedEx tonight.

Running VM 1.1.4 - turned on debug and it's hit or miss if my skills let me see issues...and not seeing anything this time.

 
FedEx Sends Email...
Your Developer Test Key registration is complete

You're ready to test your FedEx Web Services integration.

Test Account information:

Test Password:ixxxxxxxxxxxxxxxxxxxc

Test Account Number:51xxxxxx0 (for FedEx Web Services for Shipping only)

Test Meter Number:11xxxxxx0 (for FedEx Web Services for Shipping only)

Test FedEx Office Integrator ID:123 (for FedEx Web Services for Office and Print only)

Test Client Product ID:TEST (for FedEx Web Services for Office and Print only)

Test Client Product Version:9999 (for FedEx Web Services for Office and Print only)

So in module configuration, I enter:
API Environment       Development Production 
Web Access Key        What Goes HERE?
Web Access Password   FedEx's Test Password:ixxxxxxxxxxxxxxxxxxxc
Fedex Account Number  FedEx's Test Account Number:51xxxxxx0 
Fedex Meter Number    Test Meter Number:11xxxxxx0
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 17, 2010, 09:36:57 am
OK, so walked away for a bit, came back and realized I was blind and the Web Access Key is shown on screen at FedEx but does not appear in the emails.

So...I am testing at a test website in a folder at our existing website. I went on and set the module to Production and entered our actual Web Services Authentication Key in Web Access Key Field. Other account information for Production acct in the appropriate fields and still get Notice: No FedEx rates returned.

I'm sure I'm missing something obvious.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 17, 2010, 13:30:50 pm
Put the shop into debug mode.  More information will be shown about why rates are not returned and hopefully will clear it up.
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 17, 2010, 18:48:22 pm
Yes, had debug on.  Wasn't seeing anything last night and turned back on again today and I'm still not seeing anything, though more clear headed.  ;D  Though I did mention it's hit and miss whether I see issues. And nothing is standing out. Debug code from page which is Checkout:Step 1 of 2 is attached as txt file...thank you SO much.

The weird thing is before I realized last night that there was a new FedEx module, I was able to get the old one working and returning results within .03 of the rate at FedEx online. (Saw many posts where folks can't get it working anymore). The only problem (besides it being old FedEx way) was that module would not start a 2nd package when # of units in a Box is met.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 17, 2010, 18:57:23 pm
The attached text file (which has some personal info in it, you should remove it) shows that Joomla debug is on, not VirtueMart.  There is a difference.

Turn VirtueMart debug on, not Joomla debug, and run through it again.
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 17, 2010, 20:01:56 pm
ahaaa!!!  Getting there.  Actually seeing rates now. Off to play with it!  Since the new shipping issues arose with USPS, we will be shipping large boxes and can fit about 5 hoops in a box. So going to play and see if I can get it to add the money to charge for 2nd package once it reaches 5 hoops.
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 17, 2010, 21:22:32 pm
OK, progress... Working on the Dev site pretty well. The boxes we'll be using to ship weigh just over 2 pounds. So, to offset the box weight, we set the item weight to 3lbs per , and the costs get pretty close to what the FedEx module is displaying. That's 1-2 lbs heavier than actual item weight depending on size ordered.

We have it configured to set 5 units per box. The biggest problem I'm having now is when you add a 6th item, there's a pretty big price difference (loss on our end) which seems to catch up and not be an issue once you get to 7 items.

I am using the Maximum per package method...do not believe I need to go the Unbundled item route. Thoughts?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 17, 2010, 22:01:05 pm
All I can tell you is to configure it as closely as you would real-world.  If you can put 5 items in a box (5 max per package), then the 6th item is going to go in its own box regardless of bundling settings.  The first box will weigh 15lbs, the second 3 lbs.  You could try padding the final cost by using the shipping modifier, which is similar to padding the product weight but has different consequences on the final calculation.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 17, 2010, 23:18:11 pm
Ack...real world rates were off by quite a bit. Items weigh an average of 1.5 lbs. Bumping up individual item weight to 3lbs got us close. 

Items weigh an average of 1.5 lbs.          
Box Weighs 2.08 lbs         
BOX + 1 ITEM is 4 LBS
Box Size 30x30x5    37206 to 46254         
Service Type:          FedEx Rates:     # Hoops   Lbs Per Box         
FedEx Home Delivery®   $10.22        1        4
FedEx Home Delivery®   $10.59        2        6
FedEx Home Delivery®   $10.83        3        7
FedEx Home Delivery®   $11.34        4        9
FedEx Home Delivery®   $11.40        5        10
FedEx Home Delivery®   $11.40        6        14 (2 packages)
         +$10.22
         
If I set item to 1.5 lbs each...         
Cart Returns:      FedEx Charges      
1  $7.89              $10.22       
2  $8.15              $10.59       
3  $8.43              $10.83       
4  $8.18 LESS?          $11.34       
5  $8.54              $11.40       
6  $8.71              $11.40+$10.22    (module not calculating rate for 2nd box)   


Maybe I am misunderstanding the Max per Package settings. Does the FedEx module SEE it's at the max of 5 and start calculating the rate for the 2nd box?  The using real world configuration problem might be another issue...our oversized boxes. Does the module take the product dimensions into consideration for package size when calculating rates?

I'll keep test product at 1.5 lbs and play with the shipping modifier but if you believe from what I've stated above that we need a little extra help, we are totally willing to pay for that as well as the existing module itself.
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 17, 2010, 23:53:29 pm
Woohoo! Another case of RTFM...not SKIM the FM. My eyes skimmed over the -> Shipping when reading the Usage tab in the FedEx module.  I had the Units per Box set on the Product Dimensions & Weight tab, once entered on the Shipping tab in Maximum per Box...duh...

Still have to test different shipping zones and different products...have only been using one test item, but think this is going to be better than I'd hoped. Thanks for the help.


**EDIT** Is there a zone setting somewhere I'm not seeing? It doesn't matter what zip code we enter, we are getting the same rate returned. There is about a $3 difference in what FedEx charges between zones close to us and zones far away from us.
Title: Re: FedEx v2.0 - Web Services
Post by: YourHoop on March 18, 2010, 02:29:06 am
Well...it's eating our attribute pricing. Is not calculating any longer, price stays the same through all options. This did not occur at the test site but did happen when we moved it to the live website. Module is not yet enabled as we are modifying items and the shipping tab at this point. Has anyone seen this before?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 18, 2010, 03:10:58 am
Attribute pricing? The module does not consider anything other than item weight, and the other shipping specific settings.  Maybe other modifications you're using are acting up?
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 22, 2010, 18:10:20 pm
Hi lowmips,

Thanks for the great module.

But, We are using the "Development" Option and I have registered on the "Developers" section on the FedEx website. I have configured the FexEd in the admin with all the necessary parameters eg, Acct#, Meter# Web Access Key etc...

But, I am getting this error:
"Notice: No FedEx Rates Returned"

Do I have to configure the "Rates" in the FexEx account. Again, I am using Developers account on FedEx. Please help. (More info on Error "Debug: get_package_rates:get_rates_array failed")

Any Help will be really appreciated.

Thanks,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 22, 2010, 18:13:29 pm
Be sure you've selected appropriate shipping services (FedEx Ground, etc.).  I have another user getting that same issue because only "Ground" services were selected, but for the address he was using, FedEx was returning International shipping quotes.
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 22, 2010, 19:33:29 pm
Hi lowmips,

I have selected the appropriate FedEx Service.
Still getting the error "No FedEx Rates Returned"

Please help,
Thanks
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 22, 2010, 19:35:52 pm
Try selecting them all. You could also re-enable the "extra" debug info that I had commented out to get the request/reply from the API.
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 22, 2010, 22:30:11 pm
Hi lowmips,

Thank you so much for yoour quick response.

I have selected the all the FedEx services, still getting the error.

Here is more debug info.

The FedEx Request was:
Array (    
    [WebAuthenticationDetail] => Array (        
        [UserCredential] => Array (            
            [Key] => xxxx
            [Password] => Vxxx
        )
    )
    [ClientDetail] => Array (        
        [AccountNumber] => xxx
        [MeterNumber] => xxx
    )
    [TransactionDetail] => Array (        
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (        
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => USD
    [RequestedShipment] => Array (        
        [ShipTimestamp] => 2010-03-22T21:15:35+00:00
        [Shipper] => Array (            
            [Address] => Array (                
                [StateOrProvinceCode] => CO
                [PostalCode] => 80204
                [CountryCode] => US
            )
        )
        [Recipient] => Array (            
            [Address] => Array (                
                [StateOrProvinceCode] => CO
                [PostalCode] => 80204
                [CountryCode] => US
                [Residential] => 1
            )
        )
        [RateRequestTypes] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackages] => Array (            
            [SequenceNumber] => 1
                [ItemDescription] => VirtueMart Order
                [Weight] => Array (                    
                    [Value] => 10
                    [Units] => LB
                )
            )
        )
    )
)



Sorry, but did not understand this "You could also re-enable the "extra" debug info that I had commented out to get the request/reply from the API."

Your help will be really appreciated,

Thanks,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 22, 2010, 22:38:23 pm
Well, you have half of it showing already.  What you posted is the request to FedEx.  Was there not a reply listed?

The request looks fairly typical.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 22, 2010, 23:22:56 pm
Hi lowmips,

There was no reply listed.

Here is more debug info.
Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using development WSDL
Debug: Fedexv2: using residential delivery
Debug: class.Shipment::addPackage() Adding a new bundled package

Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using development WSDL
Debug: Fedexv2: using residential delivery
Debug: class.Shipment::addPackage() Adding a new bundled package

I have set up a developers account and in the backend I have selected "Development".

Thanks for your help,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 22, 2010, 23:37:48 pm
Maybe it is still commented out. If you'd like to try to uncomment it, go to fedexv2.php, and around line 658 look for this:

Code: [Select]
        // try the request
        $debugmsg ='';
        try {
            $response = $client->getRates($request);
            if (strstr($_SESSION['auth']['perms'],'admin')){
                echo "The FedEx Response was: <br />".fedexv2::pretty_print(print_r($response,true))."<br />";
            }

make sure the "echo" part is not commented out with double slashes like - //
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 23, 2010, 16:02:05 pm
Hello lowmips,

I checked fedexv2.php and the code you mention above is uncommented and the "echo" part is also uncommented.

Dont know why it is not echoing "The FedEx Response was" part.

Please help on this.

Thank you for your help,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 23, 2010, 16:08:46 pm
That is odd.  It sounds like the try/catch block is failing, but you're not getting any error message to that effect.  Hmmm...
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 23, 2010, 16:15:01 pm
Yeah lowmips,

May you suggest some solution.

Thanks,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 23, 2010, 16:17:44 pm
Need more info.
Is this a new installation? Was it running before? Did it suddenly stop working?
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 23, 2010, 16:21:59 pm
Hello lowmips,

This is a new installation and it was the first time I was testing and it is giving the error.

Thanks,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 23, 2010, 16:40:31 pm
Mitali,
I can't think of anything else off the top of my head.  It would require more investigation, possibly a trace session involving customized debug files.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 23, 2010, 16:52:13 pm
Also, which version are you using?
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 23, 2010, 17:16:19 pm
Hi lowmips,

I totally understand that it will require more debugging. That's fine. I will try looking into it. I really appreciate your help.

I am using Virtuemart 1.1.4 and
using Fedex version: vm114-fedex_v2.0.2010.02.07.zip

Thanks again lowmips for your help,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: mariela on March 24, 2010, 04:00:35 am
Hi there. First of all, thank you for this great module! Nice work!

I have everything working properly, except for one thing. I can only get 6 shipping options to show on the store during checkout, although under admin I select many more. How can I get more options to show?

Please see attached images and see if you could help me.

Thank you very much in advanced!!!!

(http://img694.imageshack.us/img694/7871/shippingselected.png) (http://img694.imageshack.us/i/shippingselected.png/)

(http://img203.imageshack.us/img203/3050/shippingoptions.png) (http://img203.imageshack.us/i/shippingoptions.png/)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 24, 2010, 13:09:48 pm
You can select as many options as you wish, but the module will only show those that match up with what the Web Services API returns.

In other words, selecting a service does not guarantee rates for that service.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 24, 2010, 14:54:12 pm
************** Feature Update **************
version vm114-fedexv2.2010.03.10.zip

Here's the changelog:
   Feature Additions:
   - option to add padding weight based on package weight
   
   Bugfix:
   - removed unsupported freight services from shipping service list
   - fixed issue with option to restrict free shipping to ground services (VM_RESTRICT_FREESHIP_BASIC)
   - !!!IMPORTANT!!! Shipping Tax Changes:   
      The original VirtueMart code calculates shipping tax incorrectly when the "Show Prices Including Tax"
      option is checked.  The discrepency results in an under charge by a small percentage of the real tax
      cost.  For small orders in US currency, this is often just a few cents, but can really add up over
      time!  I have modified this calculation to be more accurate.
      Also, shipping tax by default was added to every order, regardless of where the user is located.  I
      have changed the behavior to only tax shipping if the user is in the same country/state(province) as
      the store.  This will "fix" the tax issue for some countries, such as the US.
Title: Re: FedEx v2.0 - Web Services
Post by: MituAku on March 25, 2010, 19:36:22 pm
Hello mariela,

Could you please share on how you configured the FedEx settings.

I am trying the FedEx module to get working, but I am constantly getting error saying ""Notice: No FedEx Rates Returned". I am using a "Developers" account on Fedex. I still need to create a "Real" Account.

May you plese provide the following information.
1) Is your Fedex a "Development" or "production" Account?
2) Did you configure anything in your account on the Fedex.com website, Meaning did you add any rates etc.

Please help if you can. Lowmips tried helping me. But, I want to make sure I do not miss anything in the basic settings for FedEx 2.0  in the administration area.

Thanks again,
Mitali
Title: Re: FedEx v2.0 - Web Services
Post by: adzig8 on March 25, 2010, 21:36:27 pm
thank you for this, great work
Title: Re: FedEx v2.0 - Web Services
Post by: putuaa on March 29, 2010, 06:55:21 am
Hi lowmips,

Does this shipping module support dimension based rate??
I've examine the code and looks like the code for getting product dimension is being commented.

Would it be ok if I just remove the comment??

Thanks before
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 29, 2010, 14:28:17 pm
Putuaa,
Currently the module does not support dimensions.  The commented code was from a unit test supplied by FedEx, and uncommenting it will do no good.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 01, 2010, 16:13:53 pm
****** Feature Request - Needs Funding *****
Hi all,
A user has approached me about adding support for drop shipping from different addresses.  I already have this feature in my UPSv2 module, and need about 4 hours time to port it to FedExv2, including testing.  The user could only pay for about an hour.  Is anyone else willing to help fund this feature?

Please email or PM me if you'd like to contribute.
Thanks,
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Schelly on April 01, 2010, 19:33:06 pm
Hello and thank you so much for this wonderful shipping module!  I spoke with a FedEx "programmer" earlier in the day and he was difficult to work with in getting this information.  Just reading this one forum thread was far more insightful than almost 30 minutes on the phone with him.

I have configured the FedEx Shipping module, version 2.2010.03.10. on a VM 1.1.4 install under J! 1.5.15.  In each product detail list, I told it to ship separately on the shipping tab.  When I add the product to my cart and select checkout, I get all of the code with the post and response back from FedEx before the shipping options are displayed.  Is this normal?  I am still in developer mode.

If this means I have been successful, I'll go forward with finding out how to transition to production mode.

Once again, thank you a thousand fold.  Your responsiveness and your helpfulness will definitely get a donation from me.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 01, 2010, 19:50:22 pm
Schelly,
The request/reply code you see is only shown to administrators.  I can tell you how to comment it out so it does not show.  I get so many questions about it, eventually I will make it an option in the module config, and turn it OFF by default. Haha.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Schelly on April 01, 2010, 19:51:22 pm
LOL!  Perfect -- thank you so much Reggie.
 ;D

P.S.  Check your PayPal for a nice donation.  Please use that to continue development on this fine module.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 01, 2010, 19:59:33 pm
Wow, thanks! That's the best "out of the blue" donation I've ever received ;)
I'll put that towards the "drop shipping" option.


Here's how to disable the admin debug info:
in fedexv2.php, go to:

line 654-656
Code: [Select]
        if (strstr($_SESSION['auth']['perms'],'admin')){
            echo "The FedEx Request was: <br />".fedexv2::pretty_print(print_r($request,true))."<br />";
        }
Comment it out like:
Code: [Select]
        if (strstr($_SESSION['auth']['perms'],'admin')){
            //echo "The FedEx Request was: <br />".fedexv2::pretty_print(print_r($request,true))."<br />";
        }

line 662-664
Code: [Select]
            if (strstr($_SESSION['auth']['perms'],'admin')){
                echo "The FedEx Response was: <br />".fedexv2::pretty_print(print_r($response,true))."<br />";
            }
Comment it out:
Code: [Select]
            if (strstr($_SESSION['auth']['perms'],'admin')){
                //echo "The FedEx Response was: <br />".fedexv2::pretty_print(print_r($response,true))."<br />";
            }

line 688-691:
Code: [Select]
                if (strstr($_SESSION['auth']['perms'],'admin')){
                echo "Service type: $service_type<br/>";
                echo "Actual rate type: $actual_rate_type<br/>";
                }
comment:
Code: [Select]
                if (strstr($_SESSION['auth']['perms'],'admin')){
                //echo "Service type: $service_type<br/>";
                //echo "Actual rate type: $actual_rate_type<br/>";
                }
Title: Re: FedEx v2.0 - Web Services
Post by: Schelly on April 01, 2010, 20:01:24 pm
Super -- I'll tackle that right away.  In the interim, I've just logged out as admin and logged in as a registered user on the front end.  Now, for some reason, I don't get shipping rates.  Same product, no changes made to the back end yet.

Is that weird or what!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 01, 2010, 20:02:08 pm
Try putting your shop in debug mode.  That should give you more info.
Title: Re: FedEx v2.0 - Web Services
Post by: Schelly on April 01, 2010, 20:41:10 pm
Wow, I must have really been asleep at the wheel -- I put in some really random number that couldn't possibly be a zip code in my "registered user's" address.  The fault was mine.  Thank you!
Title: Re: FedEx v2.0 - Web Services
Post by: OptionD on April 06, 2010, 08:42:41 am
Hi Lowmips, Great module!

Any idea on if/when product dimensions will work? I have a client who ships everything oversized and would like to feature.

Thank you!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2010, 15:51:32 pm
OptionD,
I could add dimensions for an hour or two charge, if your client would like to underwrite it. I basically just need to copy it over from my UPSv2 module, and test it.

The thing is, the dimensional support would be very basic..that is, if your products ship by themselves, in their own box, then the dimensional support would work just fine.  If your products will be shipped together in the same/multiple boxes, and need some type of algorithm to determine which items can fit together, then it will not be supported. See my UPSv2 module for an example of how this will work.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2010, 17:53:02 pm
******** Notice - Cart Rates Plugin *********

A client of mine asked me to port my CartRates plugin for UPSv2 over to FedExv2.  I've included a link to the download page in the first post, or download here (http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&id=1:virtuemart&Itemid=18).
Title: Re: FedEx v2.0 - Web Services
Post by: OptionD on April 07, 2010, 06:27:59 am
OptionD,
I could add dimensions for an hour or two charge, if your client would like to underwrite it. I basically just need to copy it over from my UPSv2 module, and test it.

The thing is, the dimensional support would be very basic..that is, if your products ship by themselves, in their own box, then the dimensional support would work just fine.  If your products will be shipped together in the same/multiple boxes, and need some type of algorithm to determine which items can fit together, then it will not be supported. See my UPSv2 module for an example of how this will work.

-Reggie

Sounds good. I will email you with rate and questions?

Thank you!

And yes, everything ships in its own box.

Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 02:26:11 am
****** Update Notice ******

FedExv2.2010.04.14 released!  This is actually a double release.  Here's the combined changelog:
- option to declare L/W/H on packages
- option to restrict L/W/H declaration to "unbundled" packages
- option to use alternate source shipping address per product (drop shipping)
- option to toggle "extra" administrative debug information on/off (FedEx request/reply)
- option to vary the maximum package weight.  You may wish to ensure packages are smaller than the FedEx maximum weight.
- FedEx does not ship to Post Office box addresses.  Users who choose a PO address during checkout will see a message stating this
- option to redirect user back to address selection page if PO address is detected

Download from the first post in this thread, or on my website's Free Software page.
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 18:24:59 pm
I followed all the instructions in the readme.txt file, but I cannot enable the module or disable the DHL module.  There are no options to do either.  Any thoughts?
Title: Re: FedEx v2.0 - Web Services
Post by: oriana on April 28, 2010, 18:58:04 pm
Hello Lowmips...

I'm a true newbie to this and am having some problems.  After reading the "readme.txt" file, I installed your module and filled out the Fedex information.  However,I am getting the error: Notice: No Fedex rates returned.

I'm sure it's something that I am doing wrong, but I can't seem to figure it out.  When I put VM in debug mode I am getting the messages:

Debug: Starting Shipping module: fedexv2
Debug: SSL support is not available in this build
Notice: No Fedex rates returned.

Any help would be very much appreciated. I am at a loss here.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 19:32:28 pm
Your server does not have the PHP openssl library modules installed.  This is required for FedExv2 to work.  Contact your system admins and ask them to install this library.
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 20:47:48 pm
I followed all the instructions in the readme.txt file, but I cannot enable the module or disable the DHL module.  There are no options to do either.  Any thoughts?


Hello?  Any idea on why I have no way to activate this module?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 20:54:18 pm
I followed all the instructions in the readme.txt file, but I cannot enable the module or disable the DHL module.  There are no options to do either.  Any thoughts?


Hello?  Any idea on why I have no way to activate this module?


Describe the steps you are taking and the results in more detail.  You could also try putting the shop in debug mode, or Joomla debug mode.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 21:12:56 pm
Actually, you are probably missing an updated file.  Try replacing
ps_config.php again.
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 21:17:43 pm
Alright, I'm using vm113-FedExv2.2009.09.26 because I'm using VM 1.1.3 and don't want to upgrade to 1.1.4 because of my shirtnetwork connector.  I can gointo shipping modules in VM/store and add all the correct info.  Then I save it.  Then there are no ways to enable it.  If I go under VM/Shipping and add shipper, I only get an "F" and then this error at the top.

Warning: Missing argument 2 for vmGet(), called in /home/content/b/r/o/broadwynwear/html/administrator/components/com_virtuemart/classes/ps_shipping.php on line 138 and defined in /home/content/b/r/o/broadwynwear/html/administrator/components/com_virtuemart/classes/request.class.php on line 26
 
So I'm not sure if these are related or what.  I'm new to this and do not know PHP.  So, I'm stuck.

Could it be somethign in my php.ini or php5.ini?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 21:21:05 pm
Go to:
Administration->Admin->Configuration->(Shipping tab)

Select FedExv2
Deselect the other module

"Save"
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 21:48:30 pm
It seems that this "Add-in" has broken my config page.  No tabs, no joomla formating, its all gone.  Heres a pic.

(http://www.broadwyn-wear.com/config.png)

I really need to get this working so I'm open to ideas.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 21:49:58 pm
You're probably missing some files.  Is there an error at the bottom of the page?
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 21:59:55 pm
LOL,  Yeah there is.  I guess if I would have calmed down for a second and scrolled down, I might have seen that.  Do you know what this means?

Fatal error: Call to undefined method ps_html::list_files() in /home/content/b/r/o/broadwynwear/html/administrator/components/com_virtuemart/html/admin.show_cfg.php on line 1037


Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 22:02:47 pm
Yep! You need to re-copy the ps_html.php file from the updated module.  I have a custom function in that file, and it's missing on your setup, causing the "blow up"!

:)
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 22:05:47 pm
I'm going to re-download and then re-apply this.  I do not have that file so it seems I'm probably missing that and maybe more.  I will let you know.  Thanks for the help. 
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 22:24:39 pm
That was it.  I had an older batch of files or something.  Thanks again.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 22:26:23 pm
No worries.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 22:29:33 pm
Now I'm getting no rates returned on the checkout page.  Did anyone find a fix for that?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 22:30:28 pm
Put VirtueMart in debug mode to get more info.
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 22:50:26 pm
Sorry, I'm real new to this.  In Debug its giving an authentication error.  So I'm trying to locate teh shipping modules option under admin, and its gone.  So, I fixed one problem and now I have another.  This is a drag and drop isntall directly from lowmips.com.  Sorry to be a pain, Just stressed and new to all of this.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2010, 22:56:06 pm
Did you configure the module with your Web Services credentials?
Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 22:58:08 pm
I did before I re-installed it.  Now the module to configure it is gone from the Admin.  So I don't know what the settings are at the moment.  I'm going to try to re-install it again and see.

Title: Re: FedEx v2.0 - Web Services
Post by: scothern99 on April 28, 2010, 23:11:31 pm
Alright that did it.  Appears to be working A-OK now.  Thank you very much again for your time and help.
Title: Re: FedEx v2.0 - Web Services
Post by: dsimi on May 12, 2010, 07:35:22 am
Just i have installed this module. How to setup?. How to get web access key, password. I have got only developer test key and password. iam getting "Notice: No FedEx rates returned" error when i use developer test key password. How to clear?.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 12, 2010, 14:17:32 pm
Just i have installed this module. How to setup?. How to get web access key, password. I have got only developer test key and password. iam getting "Notice: No FedEx rates returned" error when i use developer test key password. How to clear?.

Did you read the README.txt file? There is a link and a brief description of the sign up process for Web Services.  There are actually 4 credentials you need, not just 2. 
Title: Re: FedEx v2.0 - Web Services
Post by: dsimi on May 12, 2010, 15:08:35 pm
Can I use default fedex shipping module into virtuemart?. Then how to get the server URL?. If i set up this module correctly, will tracking number info comes up into user administration page?. And also If i enter weight info price is automatically increased around 400$. how to set up rates?. Should i set up rates or Is it coming from fedex server?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 12, 2010, 15:35:39 pm
Can I use default fedex shipping module into virtuemart?. Then how to get the server URL?. If i set up this module correctly, will tracking number info comes up into user administration page?. And also If i enter weight info price is automatically increased around 400$. how to set up rates?. Should i set up rates or Is it coming from fedex server?

Yes, you can use the default module that comes with VirtueMart, but please direct any questions about that module outside of this FedExv2 forum.

Tracking is not included.  Tracking is available only when you create shipments and pay FedEx actual money. This module does not currently support that. Right now, we only do "rate shopping".

You should enter the correct weight for your products, as the module has to have weights to send to FedEx.  FedEx then returns rates, and the module displays them for you.
Title: Re: FedEx v2.0 - Web Services
Post by: tionglyeme on May 23, 2010, 19:33:01 pm
Hi, I'm newbie for this FedEx2.0, v2.0.2009.09.26, having problems when come to shopping method, here is virtuemart debug:

Please select a Shipping Method!
Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: using residential delivery
Debug: class.Shipment::addPackage() Adding a new unbundled package
Debug: An error was encountered when requesting FedEx shipping rates.
WARNING
crs
556
There are no valid services available.
There are no valid services available.

Debug: get_package_rates: get_rates_array failed.
Notice: No FedEx rates returned.
______________________________________________________________________

I was checked with FedEx Programmer, but they are requesting transaction that system is sending to FedEx server in the form of XML, so they can bottom of this problem, unfortunately a bit tough I guess.

Hopefully, your help can solve my miss configuration.
Appreciate so much your help
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 23, 2010, 21:24:14 pm
open the fedexv2.php file.  Around line 585, change:

Code: [Select]
       if (strstr($_SESSION['auth']['perms'],'admin')){

            //echo "The FedEx Request was: <br />".fedexv2::pretty_print(print_r($request,true))."<br />";

        }

to:
Code: [Select]
       if (strstr($_SESSION['auth']['perms'],'admin')){

            echo "The FedEx Request was: <br />".fedexv2::pretty_print(print_r($request,true))."<br />";

        }


Around line 595, change:

Code: [Select]
           if (strstr($_SESSION['auth']['perms'],'admin')){

                //echo "The FedEx Response was: <br />".fedexv2::pretty_print(print_r($response,true))."<br />";

            }

to:

Code: [Select]
           if (strstr($_SESSION['auth']['perms'],'admin')){

                echo "The FedEx Response was: <br />".fedexv2::pretty_print(print_r($response,true))."<br />";

            }


This will show you the request and reply.  Make sure you're logged in as an administrator and run through the checkout again.
Title: Re: FedEx v2.0 - Web Services
Post by: tionglyeme on May 24, 2010, 17:40:53 pm
Thanks from your instance reply, here is the code after revise:

Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: using residential delivery
Debug: class.Shipment::addPackage() Adding a new unbundled package
The FedEx Request was:
Array (   
    [WebAuthenticationDetail] => Array (       
        [UserCredential] => Array (           
            [Key] => *********
            [Password] => ***********
        )
    )
    [ClientDetail] => Array (       
        [AccountNumber] => ********
        [MeterNumber] => *********
    )
    [TransactionDetail] => Array (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (       
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => MYR
    [ReturnTransitAndCommit] => 1
    [RequestedShipment] => Array (       
        [ShipTimestamp] => 2010-05-24T15:22:12+00:00
        [Shipper] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => SG
                [PostalCode] => 47810
                [CountryCode] => MY
            )
        )
        [Recipient] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => KU
                [PostalCode] => 52100
                [CountryCode] => MY
                [Residential] => 1
            )
        )
        [RateRequestType] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackages] => Array (           
           
  • => Array (               
[SequenceNumber] => 1
                [ItemDescription] => VirtueMart Order
                [Weight] => Array (                   
                    [Value] => 1
                    [Units] => KG
                )
            )
        )
    )
)
The FedEx Response was:
stdClass Object (   
    [HighestSeverity] => WARNING
    [Notifications] => stdClass Object (       
        [Severity] => WARNING
        [Source] => crs
       
Code: [Select]
=> 556
        [Message] => There are no valid services available.
        [LocalizedMessage] => There are no valid services available.
    )
    [TransactionDetail] => stdClass Object (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (       
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
)
Debug: An error was encountered when requesting FedEx shipping rates.
WARNING
crs
556
There are no valid services available.
There are no valid services available.

Debug: get_package_rates: get_rates_array failed.
Notice: No FedEx rates returned.[/table]
______________________________________________________________________

I was send this code to FedEx, but unfortunately. they need the XML, Soap/XML, or Tagged transaction as a .txt file so that they may attempt to copy and paste it into their client for further troubleshooting.

I'm wondering actually which 1 cause the problem, is product? configure? or FedEx service not available for my product range?

Appreciate so much your help and thank you.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 24, 2010, 17:43:27 pm
Sorry, I can't tell you what is wrong here.
Make sure you've:
1) Entered all of the credentials correctly in the module setup
2) Looked at the 2010 service guide and confirmed that shipping from your country is supported.

If this does not help, you'll need to contact FedEx Web Services.  The error message does not give us any further information, so I have no way to know what is wrong.
Title: Re: FedEx v2.0 - Web Services
Post by: bracyp on May 25, 2010, 01:45:12 am
I'm getting a similar problem.  It was working with the old FedEx shipping module.  But now using the new Web Services module it's not.  I've got all the needed information for Production (Key, Password, Account Number and Meter Number).  I've also talked with the Web Services Support and they said that those numbers that I'm using are correct, but I'm getting an authentication error.  Here is the complete debug information (with my keys and password removed):
Code: [Select]
class.Shipment::addPackage() Adding a new unbundled package
class.Shipment::addPackage() - Package Number: 1
class.Shipment::addPackage() - Package is Unbundled
class.Shipment::addPackage() - Maxweight: 70
class.Shipment::addPackage() - Shipping Info - Country: US State: GA ZIP: 30040
class.Package::addItem() - ***** Adding item 1156 (CDD GA Underbrush for Semi-Auto Pistols) to package #1 *****
fedexv2::get_rates_array() - Using dimesions of L:13 W:10 H:2
The FedEx Request was:
Array (    
    [WebAuthenticationDetail] => Array (        
        [UserCredential] => Array (            
            [Key] => ****************
            [Password] => *************************
        )
    )
    [ClientDetail] => Array (        
        [AccountNumber] => *********
        [MeterNumber] => *********
    )
    [TransactionDetail] => Array (        
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (        
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => USD
    [RequestedShipment] => Array (        
        [DropoffType] => REGULAR_PICKUP
        [ShipTimestamp] => 2010-05-24T23:24:06+00:00
        [Shipper] => Array (            
            [Address] => Array (                
                [StateOrProvinceCode] => GA
                [PostalCode] => 30040
                [CountryCode] => US
            )
        )
        [Recipient] => Array (            
            [Address] => Array (                
                [StateOrProvinceCode] => GA
                [PostalCode] => 30028
                [CountryCode] => US
                [Residential] => 1
            )
        )
        [RateRequestTypes] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackages] => Array (            
            [0] => Array (                
                [SequenceNumber] => 1
                [ItemDescription] => VirtueMart Order
                [Weight] => Array (                    
                    [Value] => 3
                    [Units] => LB
                )
                [Dimensions] => Array (                    
                    [Length] => 13
                    [Width] => 10
                    [Height] => 2
                    [Units] => IN
                )
            )
        )
    )
)
The FedEx Response was:
stdClass Object (    
    [HighestSeverity] => ERROR
    [Notifications] => stdClass Object (        
        [Severity] => ERROR
        [Source] => prof
        [Code] => 1000
        [Message] => Authentication Failed
    )
    [TransactionDetail] => stdClass Object (        
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (        
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
)

Any help would be appreciated.  I can get any information for anyone that's not here already in the debug text.  As background, we simply executed the SQL to update the database and loaded all the files.  Then we inserted our four values into the correct fields for authentication.  Is there anything I'm missing?  We haven't changed any of the values yet in the product except for marking the "ships seperately" field and "Maximum per box" to 1.[/code]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 25, 2010, 01:47:51 am
That looks like a partial debug.

Did you set the module to use "Production" instead of "Development" (there's a drop down in the config).
Title: Re: FedEx v2.0 - Web Services
Post by: bracyp on May 25, 2010, 06:47:10 am
Yes, I've got it set to Production.  I verified that the debug information I provided is complete; assuming all I need to do is check the debug checkbox.  I also checked, just to be sure, that the two Production and Development .wsdl files also point to the correct servers.  No reason for it not to as I haven't edited any of the files included in the package.
I've never used this module on a website before, but I do know a lot about Joomla and Virtuemart as well as being able to follow php code pretty well.  Any other ideas?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 25, 2010, 14:17:51 pm
Sorry, no new ideas.  Maybe contact FedEx Web Services and obtain new credentials.  I've had one client have to do that before.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: bracyp on May 25, 2010, 15:35:24 pm
Yeah, that's the weird part.  When I contacted Web Services they said that you may need to try and get new credentials.  So I've even already done that and it still did the same thing.  I think I'll try to go back to the new credentials again and see if maybe something wasn't copied correctly.  I made sure to use copy and paste, but hopefully no junk characters were copied.

Are the credentials stored in a file or the database?  I may try to paste them straight into that location instead of the administrator section.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 25, 2010, 15:38:24 pm
fedexv2.cfg.php
Title: Re: FedEx v2.0 - Web Services
Post by: vbarkouski on May 27, 2010, 03:38:00 am
Error: FedExv2 - System error. We were unable to find your address in the database. Please try again.

Please help...
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 27, 2010, 03:45:06 am
More information.  How is your shop set up? Are users entering their addresses?
Title: Re: FedEx v2.0 - Web Services
Post by: vbarkouski on May 27, 2010, 04:09:22 am
Stock VM settings. Copied files, entered all settings and enabled shipping module. User enters address themselves. Only difference is I have one page checkout. Site is here: www.baytires.com

More information.  How is your shop set up? Are users entering their addresses?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 27, 2010, 04:23:41 am
Module version?
Title: Re: FedEx v2.0 - Web Services
Post by: vbarkouski on May 27, 2010, 04:28:23 am
Your latest module: 2.2010.04.14
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 27, 2010, 04:30:14 am
Actually, I see what's happening. It is the single-page checkout that is the issue.  The shipping module expects the user to have chosen an address at this point.  It is checking to make sure that the address is not a post office box.

If you want to disable this feature in order to skip the error message, go to
fedexv2.php around line 242.  Comment it out so that it looks like this:

Code: [Select]
/*     // FedEx does not ship to Post Office boxes
     // Check the user's selected address.  If it is a PO address,
     // show an error message and redirect them back to the address
     // selection page.
     $addr_db = new ps_DB;    
     $q  = "SELECT * FROM #__{vm}_user_info WHERE user_info_id='" . $vars["ship_to_info_id"]."'";
$addr_db->query($q);
    
if ($addr_db->num_rows()==0){
$vmLogger->err($VM_LANG->_('VM_FEDEX2_ADDRESS_ERROR'));
return false;
}
$addr_1 = $addr_db->f('address_1');
$addr_2 = $addr_db->f('address_2');
$pattern = '/[P|p]*(OST|ost)*\.*\s*[O|o|0]*(ffice|FFICE)*\.*\s*[B|b][O|o|0][X|x]/';
if (preg_match($pattern,$addr_1)||preg_match($pattern,$addr_2)){
$_SESSION['po_error']=true;

// redirect to the address selection page
if (defined('FEDEX2_PO_REDIRECT') && FEDEX2_PO_REDIRECT=="1"){
vmRedirect( $sess->url('index.php?page=checkout.index',false,false) );
}
return false;
}
*/

Note that another issue with FedExv2 and single page checkout is that it will not know what address to use and will default to the first one it can find, ie, the first shipping address it can find, or if that fails the first billto address it can find.  There is a potential for users to want to ship to one address, but get rates for another...
Title: Re: FedEx v2.0 - Web Services
Post by: vbarkouski on June 01, 2010, 20:20:38 pm
Got Single Page Checkout (SPC) working with FedexV2.
Basically after installation of Fedex module you need to do manual changes to the same files that are instructed in Single page checkout manual.

FedexV2 has its own modification and share same files with SPC. PO Box verification still cause bugs on page and brake the layout as-well so I had to keep it disabled.
Title: Re: FedEx v2.0 - Web Services
Post by: tionglyeme on June 17, 2010, 13:08:44 pm
I'm using FedEx2.0, v2.0.2009.09.26, is that possible add on FedEx Pak services in this version?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 17, 2010, 14:04:55 pm
I've never seen FedEx Pak mentioned in the Web Services API.  I'm not familiar with FedEx Pak either.
Title: Re: FedEx v2.0 - Web Services
Post by: crlanier on June 21, 2010, 02:39:17 am
Killer App, thanks so much. I'm almost there with it and this last step's killing me. I have all of the methods checked in the app, I don't have ground only checked in the products, yet the only shipping option I get is ground shipping.

Have debug on with no errors or warnings.

I read in another post that this may be dependent on fedex and not the app, can you expand on how I get more options?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 21, 2010, 02:55:48 am
The module will show all services returned by FedEx which match the services you've selected in the module configuration.  So, if FedEx is only returning ground services, that's all the module can show.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: crlanier on June 21, 2010, 16:41:16 pm
Okay, thanks for the info. I have no idea where to select more options in fedex, any idea?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 21, 2010, 16:43:07 pm
I have all of the methods checked in the app, the app,

I think you've already got them all checked in the FedExv2 module configuration, right?  So there are no more options to select.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: crlanier on June 21, 2010, 18:33:35 pm
No there aren't any more options in the module to select. Are there any in the fedex web services site that I missed somehow? If all fedex is returning is "fedex ground" then it must be something via the fedex side (not the virtuemart/fedex module), right? Do they limit the services or is there a place in the account config that allows you to select more services from them?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 21, 2010, 19:11:59 pm
No there aren't any more options in the module to select. Are there any in the fedex web services site that I missed somehow? If all fedex is returning is "fedex ground" then it must be something via the fedex side (not the virtuemart/fedex module), right? Do they limit the services or is there a place in the account config that allows you to select more services from them?

I don't know of any place on the fedex website where you can restrict services for your account.

Assuming you have installed the latest version of FedExv2, one thing you could do is turn on the "extra debug information" in the module, log in as an administrator, and run through the checkout procedure.  The first time you do this, you'll see the XML request and reply, which may provide more insight.  If indeed you are only getting ground options back, you may want to contact FedEx Web Services for further support.
Title: Re: FedEx v2.0 - Web Services
Post by: crlanier on June 21, 2010, 19:19:14 pm
Okay, note to all it was item weight. I have products that are 4 ounces or less. It was rounding up to 1 lb in the request when purchasing single items, but for some reason it was failing and just returning 1 shipping option from fedex (standard ground). Fedex suggested I make everything minimum 1lb. Hmmm, that could potentially screw customers who order bulk.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 21, 2010, 20:55:29 pm
****** Feature Update *************
Version 2010.06.18.zip

- Option to allow users to specify Commercial/Residential address type per address
- Basic CSV export function, to export your order shipping info for FedEx Shipping Manager
- Option to allow user to require signature confirmation (shown during checkout)
Title: Re: FedEx v2.0 - Web Services
Post by: crlanier on June 24, 2010, 05:52:14 am
Reggie,

Any way to modify handling fee as a percentage rather than a flat fee?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 24, 2010, 16:53:07 pm
Reggie,

Any way to modify handling fee as a percentage rather than a flat fee?

Hi,
This would require modification of the code.  What is the percentage of, the shipping fee, or the order total?

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: crlanier on June 25, 2010, 18:21:02 pm
Reggie,

Any way to modify handling fee as a percentage rather than a flat fee?

Hi,
This would require modification of the code.  What is the percentage of, the shipping fee, or the order total?

Reggie

They want to add 50% of the shipping cost as a handling fee, which is kind of ridiculous for next day shipping, but I stopped asking questions long ago.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 25, 2010, 18:24:46 pm
You could add the fee by setting each product's shipping modifier to 150%.  it's not a catch-all solution like the handling fee, but accomplishes the same thing.

Or, I could code it so that if the handling fee has a trailing percent sign, it would add the percentage.
Title: Re: FedEx v2.0 - Web Services
Post by: crlanier on June 27, 2010, 00:33:39 am
You could add the fee by setting each product's shipping modifier to 150%.  it's not a catch-all solution like the handling fee, but accomplishes the same thing.

Or, I could code it so that if the handling fee has a trailing percent sign, it would add the percentage.

Used the shipping modifier solution and got close. What is the upgrade procedure to move to the newest version? My rates are a bit off (over or under) and I'm wondering if its the res/com destination that makes the difference.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 27, 2010, 00:40:01 am
Upload the files, enter the SQL commands.
You'll want to do the SQL commands one by one, as many fields already exist and will throw errors.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 08, 2010, 16:57:13 pm
***** Update 2010-07-08 ******
- FedEx export function now encases all fields in double quotes
- added order number, vendor email, and client email fields to export
- re-download version 2010.06.18, and install the updated file:
/administrator/components/com_virtuemart/html/order.fedex_exportpopup.php
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 21, 2010, 17:49:45 pm
A quick note about the "Web Services" discount

A user pointed out to me that in order to remove the Web Services discount from your rates, all you need to do is NOT include the account number in the module setup.  If you DO NOT include the account number, FedEx returns generic, non-discounted rates!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 10, 2010, 17:04:36 pm
**************** Update ******************
I have ported the latest module (2010.06.18) to VirtueMart 1.1.5.  Please use vm115-fedexv2.2010.08.10.zip with VirtueMart 1.1.5.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: CoolrunninJA on September 01, 2010, 19:52:06 pm
AWESOME MODULE!!

However, I am having trouble with the ground shipping. The ground shipping is not showing up but all other shipping options will. Please let me know if this is a bug.

P.S - I know this was a big with the default fedex module. THanks
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 01, 2010, 19:53:25 pm
You'll have to supply more information.  Put the shop in debug mode, post the API request/reply (remove any credentials).  Post your shop config.  Post your FedExv2 module config.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 02, 2010, 00:40:23 am
********************** BUG ALERT **********************
Version: vm115-Fedexv2.2010.08.10

There is a bug in this release that can cause checkout to fail.  The file in question is:

/administrator/components/com_virtuemart/classes/ps_checkout.php

I introduced this bug when porting it from VM1.1.4 to VM1.1.5. Please re-download this version and replace the affected ps_checkout.php file.
Title: Re: FedEx v2.0 - Web Services
Post by: jbd123 on September 10, 2010, 22:41:54 pm
Reggie,

Thank you for creating this module! It was working for me, generating rates, etc...but now it's giving me an error (and I haven't done anything different to the cart to make this happen)


Please select a Shipping Method!
Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using development WSDL
Debug: Fedexv2: Using user-defined max weight of 70
Debug: Error! An exception was caught:Internal system error. Please try again later.


That's what I get in debug mode.

I read through this entire thread and even tried selecting all shipping methods in my backend, but that didn't help either.

What do you suppose the issue is?
Debug: get_package_rates: get_rates_array failed.
Notice: No FedEx rates returned.
Title: Re: FedEx v2.0 - Web Services
Post by: jbd123 on September 10, 2010, 22:55:30 pm
Wait...

It's working again?

I am baffled. I will keep you posted if it messes up again. o_O
Title: Re: FedEx v2.0 - Web Services
Post by: CoolrunninJA on September 11, 2010, 00:08:13 am
Thanks for this awesome application!

Is there any way to add free shipping with this? For example an option in the product shipping menu? I want to add free shipping for a products with quantities of 2 or more.

I know i can add free shipping by order total but I want to do it by product quantity. Please let me know if this is possible. Thanks!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 12, 2010, 21:06:19 pm
There is currently only one way to do free shipping from within the module, by using a 0% shipping modifier. however, this will always apply, so it will not work for your 2+ quantity needs.  also, it is per product, not the entire order.
Title: Re: FedEx v2.0 - Web Services
Post by: jbd123 on September 14, 2010, 23:15:57 pm
I think someone may have asked this before, but when I try to set nothing but ground shipping as an option, it comes up with an error. Here's the debug, sorry if it's hard to read (it was all over the place)

This is for the shipping rates:

Debug: Fedexv2: using development WSDL
Debug: fedexv2::__construct() no user information returned from database where $vars["ship_to_info_id"]==
Debug: Using first BT address found.
Debug: Fedexv2: Using user-defined max weight of 40
Debug: get_package_rates: get_rates_array failed.

Warning: array_reverse() [function.array-reverse]: The argument should be an array in /home/wwwmowp/public_html/plugins/system/cartrates/cartrates.tpl.php on line 147
Debug: Tax rate is: 1

Warning: Invalid argument supplied for foreach() in /home/wwwmowp/public_html/administrator/components/com_virtuemart/classes/shipping/fedexv2.php on line 1205
Shipping Estimate:
Country:    State/Province:    Zip Code:          Reset
US    GA    30228          


Warning: Invalid argument supplied for foreach() in /home/wwwmowp/public_html/plugins/system/cartrates/cartrates.tpl.php on line 202

And this is on the shipping step in the checkout:


Please select a Shipping Method!
Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using development WSDL
Debug: Fedexv2: Using user-defined max weight of 40
Debug: get_package_rates: get_rates_array failed.
Notice: No FedEx rates returned.


And I have just added the option for residential/commercial shipping option. Worked fine when I had every single kind of shipping method available.

Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 14, 2010, 23:23:26 pm
Which version of the module?

In the module config, make sure you're showing extra debug info.
On the front end, log out, log back in as an admin, and run it again using the same address and product selections.  You should see a request/reply.  Post that here, minus any credentials.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: johnstep on September 15, 2010, 06:59:36 am
Support for tracking numbers?

Does the FedExv2.0 module support [automatically] adding tracking numbers to the order and shipping confirmation emails?

Or do you have a different module that support this request?

Thank you for your time!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 15, 2010, 13:57:39 pm
FedExv2 does not currently support tracking numbers.

My UPSv2 module has an after-the-fact tracking number support mechanism.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: jbd123 on September 15, 2010, 14:55:22 pm
Reggie,

No problem. Here's my output with the debugs on. It's linked below- it was very long (not sure what I needed to include/disclude in this).

Thanks so much, and I'm using your latest version.

http://www.mowproducts.com/debug_mowp.txt (http://www.mowproducts.com/debug_mowp.txt)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 15, 2010, 15:18:44 pm
Reggie,

No problem. Here's my output with the debugs on. It's linked below- it was very long (not sure what I needed to include/disclude in this).

Thanks so much, and I'm using your latest version.

http://www.mowproducts.com/debug_mowp.txt (http://www.mowproducts.com/debug_mowp.txt)

Remove your key and password from the file.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 15, 2010, 15:22:56 pm
jbd123, do you have FedEx Ground Home delivery checked as a service option?
Title: Re: FedEx v2.0 - Web Services
Post by: jbd123 on September 15, 2010, 15:53:32 pm
I do now...it seems to be working. :)

(thanks for warning me about the key and passcode too)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 15, 2010, 15:55:30 pm
No problem.  I've seen this issue come up enough that I need to make the get_rates_array error message more specific, like "No matching rates found, please check your module configuration" or something.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: all3njg on October 13, 2010, 05:54:12 am
Hey man. Keep it up, your doing a great job. I donated to this awhile back before you released it to public and it has really came a long way.

I have a quick question...

Is there a way to "restrict" ground shipping for all states for a specific product?

I am shipping meat and this particular product cannot be shipped ground as it takes too long.

Thanks in advance!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 13, 2010, 13:53:50 pm
Yes, create a shipping restriction and apply it to Ground shipping for that particular product.  Look on the product's "shipping" tab.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: all3njg on October 13, 2010, 16:51:52 pm
The problem is when I try to create the restriction, I have to choose the state, but I need no ground for all states on the restriction.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 13, 2010, 16:55:00 pm
all3njg,
I can't check right now, but I thought the mechanism would allow for multiple country/state pairs, correct? You'll need to enter all 50 states as a new country/state pair.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: all3njg on October 13, 2010, 17:07:41 pm
Ah ok I see now. Hey man thats slick.

Thanks
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 13, 2010, 17:09:36 pm
:)

Sorry it isn't easier, but adding country specific niceties would have taken a lot of time.  If you have any MySQL-Fu skills perhaps it would be better to do it from there. jos_vm_shipping_restrictions is the table name, IIRC.
Title: Re: FedEx v2.0 - Web Services
Post by: obertrauser on October 29, 2010, 12:49:08 pm
I have a problem with the Tax on delivery costs in my B2B shop.
UPS send the rate and when the delivery is in Germany (the shop is in Germany too) everything works well - tax for the products and tax for the deliverycosts.
But when I send out of Germany it has to be without tax. That works fine for the product (Tax based on shipping address) but for the deliverycost I still get the Tax !!

Is it the same for the FedEx2.0 module ??

I use Joomla 1.5 and VM 1.1.5

Thanks for this info
Joachim


Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 29, 2010, 13:42:39 pm
The FedExv2 module has the same tax support as the original..meaning you can assign a tax class to apply tax to all orders.

My UPSv2 module does have a better tax handling setup, including EU support.  If you could install that on a test site and determine if it works correctly for you, we could then proceed with adding the updated tax handling to FedExv2.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: taylor09 on January 06, 2011, 02:54:35 am
I am using the RocketTheme Mynxx template, does anyone know if this will work on here?  Also I gone through all the php stuff on the sql's, now I am on to the joomla folder in the install.  I only want the rates to work do I need to change everything from this folder or just the administrative stuff?  Will it work with Mynxx?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 06, 2011, 02:58:31 am
If you're just using the rates and no other feature of the module, it should work. Otherwise, you'll have to modify template files to get some of the features to work.
Title: Re: FedEx v2.0 - Web Services
Post by: taylor09 on January 06, 2011, 03:24:43 am
Do I need to change anything to have the new FedEx module information to show in the backend?  Everything appears to all be the same...
Title: Re: FedEx v2.0 - Web Services
Post by: taylor09 on January 06, 2011, 03:44:41 am
I went through most of the files to see if you marked your changes so I could just go through an individually change each file with the new code and only saw your insertion in the top.  Do you by chance have just your changelogs seperate?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 06, 2011, 03:51:25 am
I've been keeping track of changes via the CHANGELOG more extensively lately, but I have not had the time to go through and denote every change from past versions.  You'll need to use a file comparison tool if you want to be 100% sure, and compare with the original source.
Title: Re: FedEx v2.0 - Web Services
Post by: taylor09 on January 06, 2011, 04:06:46 am
Do you know off the top of your head which file to have the Fedex Shipping Module display in the backend?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 06, 2011, 14:28:18 pm
There are a number of files on the back end that have been modified.  Basically everything under "administrator/components/com_virtuemart" in the archive.  If you mean the module configuration page, look at the config template file under "administrator/components/com_virtuemart/classes/shipping/fedexv2/".
Title: Re: FedEx v2.0 - Web Services
Post by: taylor09 on January 06, 2011, 22:04:06 pm
I went ahead and uploaded everything since the template file was for the default template and it wouldn't do anything to crack the mynxx template and styling.  I am getting an error message that says (note: product weight is 229 and should ship via pallet LTL:

Debug: fedexv2::populate_shipment() Error adding product pid 67 to the shipment!

When I drop the weight (10 lbs) I get this error message:

Debug: get_package_rates: get_rates_array failed.

Is this configurable to work with LTL?

Thanks!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 06, 2011, 22:08:14 pm
The module does not currently handle freight items.  The maximum weight is something like 70lb/150lb home/commercial.
Title: Re: FedEx v2.0 - Web Services
Post by: taylor09 on January 06, 2011, 22:57:17 pm
Is it panned to include LTL?  What sort of donation would cover this?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 06, 2011, 23:04:55 pm
No plan at this time.  If you'd like to underwrite adding freight options to the module, I'd be happy to accommodate you.  However, I'm currently swamped and it will be quite some time before I could pick this project up.

If you'd like, I can "add you to the queue", so to speak.
Title: Re: FedEx v2.0 - Web Services
Post by: lkarpiuk on January 10, 2011, 20:57:04 pm
I'd love to use this shipping module on a VM 1.0.x install that, for reasons I won't go into here, cannot be upgraded at this time.

Has anyone modified this module for VM 1.0?

Reggie: would you be willing to do so if underwritten (and if so, how much)?
Title: Re: FedEx v2.0 - Web Services
Post by: rooze62 on January 10, 2011, 21:18:04 pm
Hi

I'm using this module and it's suddenly stopped passing Ground as an option. It shows the other selected options but not ground.

Any ideas?

Thanks

Rooze
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 21:18:36 pm
What's the debug output show?
Title: Re: FedEx v2.0 - Web Services
Post by: rooze62 on January 10, 2011, 21:53:11 pm
Hi,

Thanks for getting back so quick...Is there a debug with the module, or do you mean put Joomla in debug?

Rooze
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 21:57:24 pm
VirtueMart debug, as well as the "show extra debug info" in the module configuration.
Title: Re: FedEx v2.0 - Web Services
Post by: rooze62 on January 10, 2011, 22:08:39 pm
I don't see the extra debug option in the module, here's the Version 2.0.2009.07.20
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 22:11:05 pm
You're using an older version without that feature.  Please state your module version and virtuemart versions first thing in any future support posts.

Now, what does debug mode show?
Title: Re: FedEx v2.0 - Web Services
Post by: rooze62 on January 10, 2011, 22:17:00 pm
Ok sorry....VM 1.1.4

Debug

Debug: Starting Shipping module: fedexv2
Debug: fedexv2::__construct() no user information returned from database where $vars["ship_to_info_id"]==
Debug: Using first BT address found.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 22:25:51 pm
Not much to go on.  Try un-commenting lines 325 and 330 in /administrator/components/com_virtuemart/classes/shipping/fedexv2.php.  That will give you the request/reply.  Email that output to me.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 22:32:28 pm
Also, note that this will show your credentials to anyone checking out at the time.  Be sure to re-comment those lines when done.  you may want to consider taking the site offline until you're done.
Title: Re: FedEx v2.0 - Web Services
Post by: rooze62 on January 10, 2011, 22:45:05 pm
Ok, with that uncommented (as below), the debug output is exactly the same.
                      )
              );

      echo "The FedEx Request was: <br />".fedexv2::pretty_print(print_r($request,true))."<br />";

        // try the request
        try {
            $response = $client->getRates($request);
            echo "<br/>The FedEx Response was: <br />".fedexv2::pretty_print(print_r($response,true))."<br />";
            if (   $response->HighestSeverity!='FAILURE'
                && $response->HighestSeverity!='ERROR'
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 22:51:47 pm
It's probably caching the rates, but no cached rate matches your settings.  Log out of Joomla, log back in, and try again (with the lines uncommented).


Title: Re: FedEx v2.0 - Web Services
Post by: rooze62 on January 10, 2011, 23:05:06 pm
OK, I've attached the debug

Thanks

Rooze

edit by Reggie: Never, ever, post your user credentials on a public forum.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 23:11:45 pm
Have you selected "FedEx Ground (Home Delivery)" as an option? That is one service that was returned.  The "FedEx Ground" service is for commercial delivery.
Title: Re: FedEx v2.0 - Web Services
Post by: rooze62 on January 10, 2011, 23:20:33 pm
Ok, I did not have home as an option, I've just enabled it and it shows a rate for home delivery, however, both from and ship-to addresses are businesses, all orders are shipped business to business, which is why I never had home as an option. Has something perhaps changed on Fedex end?

Rooze
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 10, 2011, 23:54:31 pm
Not in the version of the API that the module you are using uses.  My later versions of FedExv2 have mechanisms to account for home/commercial delivery, FYI.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 16, 2011, 00:37:15 am
Site URL: Click here (http://www.deatschwerks.ryanklatt.com)

I'm having problems with the shipping on my site which is running your module...right now I have it set in "development" mode and it displays estimated shipping prices, but for some reason it has 3 lines of debug code.

Debug message:

Deprecated: Assigning the return value of new by reference is deprecated in /home/deatschwerks/deatschwerks.com/administrator/components/com_virtuemart/classes/shipping/fedexv2.php on line 129

Deprecated: Assigning the return value of new by reference is deprecated in /home/deatschwerks/deatschwerks.com/administrator/components/com_virtuemart/classes/shipping/fedexv2.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/deatschwerks/deatschwerks.com/administrator/components/com_virtuemart/classes/shipping/fedexv2.php on line 131

And here's those lines of code in the fedexv2.php file it's referencing:
Code: [Select]
       $dbc =& new ps_DB;  // country information
        $dbv =& new ps_DB;  // vendor information
        $dbu =& new ps_DB;  // user information

**Also, I have Fedex "Ground" set to display (box is checked under module config), but it doesn't show up.

Let me know if you got any ideas!

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 16, 2011, 00:47:19 am
You can either:
1) Lower your error_reporting settings
2) Remove the ampersand (&) symbol from those three lines.  It is depricated and will have no bad effect.

For the "ground" rates issue...did you choose Ground and Home Ground? One is for commercial, the other residential deliveries.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 16, 2011, 21:24:38 pm
You can either:
1) Lower your error_reporting settings
2) Remove the ampersand (&) symbol from those three lines.  It is depricated and will have no bad effect.

For the "ground" rates issue...did you choose Ground and Home Ground? One is for commercial, the other residential deliveries.
That fixed it!

Now on another note, I get a debug line when I update products in the VirtueMart component:

Code: [Select]
Deprecated: Function ereg() is deprecated in /home/deatschwerks/deatschwerks.com/administrator/components/com_virtuemart/classes/ps_product.php on line 206
Code it's referencing in ps_product.php is:

Code: [Select]
if (empty($d['ship_modifier']) || (!ereg("^[1-9]?[0-9]?[0-9]%$",$d['ship_modifier'])) ){
Also, just donated to you for your quick help!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 16, 2011, 22:08:13 pm
You may change that line to use preg_match instead of ereg.  Just swap the names out. I tested it and it works just fine.

Thanks for the donation!
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 16, 2011, 22:15:56 pm
You may change that line to use preg_match instead of ereg.  Just swap the names out. I tested it and it works just fine.

Thanks for the donation!
Ok, I just tried out replacing it with that variable name and now have this error instead:
Code: [Select]
Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /home/deatschwerks/deatschwerks.com/administrator/components/com_virtuemart/classes/ps_product.php on line 206
This is what line 206 looks like now:
Code: [Select]
if (empty($d['ship_modifier']) || (!preg_match("^[1-9]?[0-9]?[0-9]%$",$d['ship_modifier'])) ){
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 16, 2011, 22:17:42 pm
Oops! you're right.  I added in a couple of things:

Code: [Select]
preg_match("/^[1-9]?[0-9]?[0-9]%$/".$d['ship_modifier'])
Note the forward slashes.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 16, 2011, 22:25:35 pm
fixed!

thanks Reggie.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 16, 2011, 23:21:04 pm
Another quick question for you...now that I have your FedEx v2.0 module installed, will it work in combination with the default USPS module that comes packaged with VirtueMart? or do I need to use the module you developed?

Reason I ask is because we use FedEx for U.S. domestic shipping, but use USPS for anything international and the customer needs the option to choose.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 16, 2011, 23:48:57 pm
The USPS module that comes with VM will be unaffected by FedExv2, and visa-versa.  You cannot install FedExv2 with USPSv5, however, without some code merging.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 17, 2011, 00:23:33 am
gotcha...I had to do some "code merging" as well with some of the core files your module updated. Reason being is that the Joomla/VirtueMart template that I'm using already had some modified code in pages like flypage.tpl and such. I ran it through some "code comparison" software and made it work. I appreciate you adding in your PHP notes to the sections you modified – that helped me easily track your modifications to core files.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 18, 2011, 05:44:13 am
Site URL: Click here (http://www.deatschwerks.ryanklatt.com)

Well, it seemed to be working fine yesterday, but now the other FedEx shipping options aren't showing up. The ones I have checked are ground, 2day, express saver, ground (home delivery) and standard overnight.

Attached are screenshots of my module settings as well as the debug info in the shipping part of checkout.

Any ideas? Let me know if you need more information.

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 18, 2011, 14:29:26 pm
You'll need to log out of joomla and back in to clear the rate cache, then run the debug again.  You should see the request/reply.  If you do not see the service options you want to see in the reply, then the API simply is not returning them as an option.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 18, 2011, 16:06:23 pm
Ok, I logged out and then logged back in...here's a line of info I found in the new debug:
Code: [Select]
[Message] => Rating is temporarily unavailable for one or more services: FIRST_OVERNIGHT; PRIORITY_OVERNIGHT; STANDARD_OVERNIGHT; FEDEX_2_DAY; FEDEX_EXPRESS_SAVER; ; ; ; ; ; . Please try again later.
and then as soon as I refresh that page, it shows this info:
Code: [Select]
fedexv2::get_rates_array() - using cached rates
Could it have to do with me still running development mode?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 18, 2011, 16:08:10 pm
The cached rates line is my code in the module.  Once you obtain some working rates, it caches them for the duration of the session.  Hence, I asked you to log out of Joomla (kills the session, and therefore the cached rates), and back in to run the request again.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 18, 2011, 16:18:30 pm
yeah but it still doesn't show the other rates once I log out and log back in - which I guess is a problem from the FedEx side since those services are unavailable right now? (according to the debug)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 18, 2011, 16:19:34 pm
Exactly.
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 21, 2011, 04:43:19 am
Reggie, I am still having problems with your FedEx shipping module...check your email.

Reference this debug:
Code: [Select]
Fedexv2: using residential delivery
FedExv2: not using signature option
class.Shipment::addPackage() Adding a new bundled package
class.Shipment::addPackage() - Package Number: 1
class.Shipment::addPackage() - Package is Bundled
class.Shipment::addPackage() - Maxweight: 70
class.Shipment::addPackage() - Shipping Info - Country: US State: OK ZIP: 73106
class.Package::addItem() - ***** Adding item 82 (Integra 1991-2001) to package #1 *****
fedexv2::get_rates_array() - Skipping dimensions
The FedEx Request was:
Array (   
    [WebAuthenticationDetail] => Array (       
        [UserCredential] => Array (           
            [Key] => I removed this this for preview purposes
            [Password] => I removed this for preview purposes
        )
    )
    [ClientDetail] => Array (       
        [AccountNumber] => I removed this this for preview purposes
        [MeterNumber] => I removed this this for preview purposes
    )
    [TransactionDetail] => Array (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (       
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => USD
    [RequestedShipment] => Array (       
        [ShipTimestamp] => 2011-01-21T04:22:12+00:00
        [Shipper] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => OK
                [PostalCode] => 73106
                [CountryCode] => US
            )
        )
        [Recipient] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => NC
                [PostalCode] => 28278
                [CountryCode] => US
                [Residential] => 1
            )
        )
        [RateRequestTypes] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackages] => Array (           
            [0] => Array (               
                [SequenceNumber] => 1
                [ItemDescription] => VirtueMart Order
                [Weight] => Array (                   
                    [Value] => 1
                    [Units] => LB
                )
            )
        )
    )
)
The FedEx Response was:
stdClass Object (   
    [HighestSeverity] => ERROR
    [Notifications] => stdClass Object (       
        [Severity] => ERROR
        [Source] => prof
        [Code] => 1000
        [Message] => Authentication Failed
    )
    [TransactionDetail] => stdClass Object (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (       
        [ServiceId] => crs
        [Major] => 6
        [Intermediate] => 0
        [Minor] => 0
    )
)
Notice: No FedEx rates returned.

The part that looks interesting to me is: [Message] => Authentication Failed[/code]
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 22, 2011, 22:03:47 pm
got it working...after talking with FedEx numerous times, they had me fill out the Web Services "Production Key" form again since the credentials weren't showing up correctly in their system. Yehhh!

Now I gotta get the USPS module working correctly...for some reason the ® mark isn't showing up correctly. It's being displayed as: USPS Express Mail<sup>&reg;</sup> International

Also, the USPS module shipping options selected are also offset..I have to choose one below the option I actually want in the configuration.

I'll post that in the USPS section of the forums and see if anyone has any ideas.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 22, 2011, 22:10:33 pm
The default module does have an offset issue, which I fixed in my USPSv5 module. I'm pretty sure I posted the fix in the USPS forums, try searching for it.

-R
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 23, 2011, 00:52:02 am
The default module does have an offset issue, which I fixed in my USPSv5 module. I'm pretty sure I posted the fix in the USPS forums, try searching for it.

-R
Reggie, can you link me to the fix? I can't seem to find it. Is that fix for the USPS 3 or USPS 4 module?

Reference this thread in the USPS section which I just posted in about the situation...I'm using your FedEx 2 module in combination with the USPS 4.2 module currently.

http://forum.virtuemart.net/index.php?topic=76421.msg267044#msg267044 (http://forum.virtuemart.net/index.php?topic=76421.msg267044#msg267044)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 23, 2011, 00:54:21 am
My USPSv5 module is fixed. I do not know the status of USPSv4 or v3, I do not follow those.

http://forum.virtuemart.net/index.php?topic=46784.0
Title: Re: FedEx v2.0 - Web Services
Post by: klattr1 on January 23, 2011, 19:19:09 pm
My USPSv5 module is fixed. I do not know the status of USPSv4 or v3, I do not follow those.
Have you successfully gotten both your FedEx V2 module and USPS V5 modules to work in combination?

I started to do some code merging of the 2 modules but then noticed some differences (so I stopped expecting there to be potential problems).

For example, in the "product.product.display.php" file, your FedEx module uses the "VM_PRODUCT_FORM_SHIP_SEPERATELY" variable whereas your USPS module uses "PHPSHOP_PRODUCT_FORM_SHIP_SEPERATELY"...wasn't sure what to do in scenarios like that.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 23, 2011, 20:15:00 pm
I have not merged the two in quite some time.  I know another user merged them a few months back.

In the specific case you listed, I had changed one to the new "VM" convention, but not the other.  Either will work, or both if you choose.  They both point to the same text.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 24, 2011, 21:33:25 pm
********* Update *********

Version 9 API
FedExv2.2011.01.16 for VirtueMart 1.1.5 has been publicly released! This latest version of the module incorporates the newest version of the "Web Services" API, version 9.  This brings many more options to the table for any potential feature underwriters.

Download from the first post in this thread, or from my Free Software page on my website.


Estimated Duties and Taxes
Also, I have implemented the "Estimated Duties and Taxes" feature of the API in a private release of this version of the module, which can automatically include duties and taxes for international shipments.  This feature is only allowed on a per-client basis by FedEx, and I have been explicitly told to NOT distribute this version of the module without prior consent.  So, if you'd like to have this feature you'll need to contact your service representative and request access.  One more note, I have only implemented this for US to Canada shipments.  Any multiple country shipments or shipments other than US-Canada will require more coding.
Title: Re: FedEx v2.0 - Web Services
Post by: throtle on January 29, 2011, 08:17:18 am
Hi,

Kindly help with the fedex configuration , i am unable to find the fedex webaccess key here with attached the screenshot.
plz help !!

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on January 29, 2011, 14:56:51 pm
Throttle,
It should be listed somewhere in your account, I do not know why they aren't showing it on that screen.  You'll need to contact FedEx for further assistance.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: throtle on January 31, 2011, 05:44:53 am
Reggie,
Thanks for your assistance ,and i will contact fedex regarding this.
Title: Re: FedEx v2.0 - Web Services
Post by: samuelreece on February 02, 2011, 00:18:08 am
We are on VirtueMart 1.1.6 and using the default FedEx module. I've entered all required infomation (acct #, meter # and server address) and still I got an error.

Warning: fsockopen() [function.fsockopen]: unable to connect to https://gateway.fedex.com/GatewayDC:80 (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in /home/shopvtx/public_html/administrator/components/com_virtuemart/classes/shipping/fedex/fedexdc.php on line 430

Error: unable to process services_rate

Tried calling FedEx a couple of times but they are not really helping. Is this a compatibility issue? Should I install FedEx v2.0?


Please help!

Thanks!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 02, 2011, 00:41:31 am
Samuelreece,
This topic is for the FedExv2 module, not the original.  They are two completely different modules using different APIs.

Try posting your topic in the main "FedEx" forum.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 02, 2011, 04:34:28 am
Samuelreece,
I didn't read your full message the first time around....

YES, install FedExv2.  The old API (DC) is GOING AWAY, and soon.  The new API (Web Services) is here to stay.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: samuelreece on February 02, 2011, 19:33:12 pm
Thanks Reggie,

so which one should I download and install? I am on VM 1.1.6

vm-113-fedex_v2.0.2009.07.20.zip ?
vm114-FedExv2.2010.06.18.zip ,or
vm115-fedexv2.2011.01.06.zip?

I only need basic functionality and only want to API to work.

Thanks!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 02, 2011, 19:46:26 pm
The 2009.7.20 version is the most basic, and requires less core files be modified (only one language file).  You can easily integrate it with a VM1.1.6 installation by copying the FedExv2 additions from that file and paste them into your VM1.1.6 language file.  View the README.txt for more details.
Title: Re: FedEx v2.0 - Web Services
Post by: samuelreece on February 02, 2011, 23:31:12 pm
Hi Reggie,

I configured FedEX v2 and got this error msg:

Class 'SoapClient' not found in /home/shopvtx/public_html/administrator/components/com_virtuemart/classes/shipping/fedexv2.php on line 233


Also, in your readme file, you said "You'll need to rename RateService_v6_production.wsdl
to RateService_v6.wsdl in order to access the FedEx production API." I am using production credentials but how could I rename the file to RateService_v6.wsdl as there's already a file w/ the same file name in it?

Please help!
Thanks,
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 02, 2011, 23:41:09 pm
samualreece,
The module requires PHP SOAP extensions.  You'll need to contact your host for that.

Rename the current RateService_v6.wsdl to RateService_vs_DEVELOPMENT.wsdl.  Then rename RateService_v6_production.wsdl to RateService_v6.wsdl.
Title: Re: FedEx v2.0 - Web Services
Post by: samuelreece on February 03, 2011, 19:15:36 pm
hi Reggie,

Mind you tell me which SOAP module I should install on the server end?

Payment_PayPal_SOAP   0.3.1 beta  PayPal SOAP API client
SOAP                  0.12.0 beta SOAP Client/Server for PHP
SOAP_Interop          0.8.2 beta  SOAP Interop Test Application

Thanks so much!
 
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 03, 2011, 20:31:32 pm
Whatever version that comes with your PHP build.  This is installed via the '--enable-soap' command line argument when building the PHP binary.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Zen Amateur on February 13, 2011, 07:12:47 am
I just installed the FedEx V2. 0 and am having a problem getting the module to function correctly. After uploading the files and importing the SQL I have run into a problem because I can't fill out the configuration window. My window loads, but there is no labeling on the various fields, and when I have compared them to the various screenshots I haven't been able to match the fields to what is shown on the various screen shots posted here.

I am running the latest version of Virtuemart (1.1.7), set up through the eCommerce Bundle (Joomla 1.5.22), on hosting at Rochen, and up until now Virtuemart has been behaving, but this has me stumped. Any help or guidance would be greatly appreciated. Attached is a screen shot of the issue as it appears on my installation:


[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 13, 2011, 14:48:11 pm
Looks like you're missing a language file.  Try uploading everything under the "language" directory again.
Title: Re: FedEx v2.0 - Web Services
Post by: Zen Amateur on February 13, 2011, 15:28:20 pm
lowmips,
Thanks for the prompt response, I went ahead and uploaded everything in the administrator and component directories, but I still receive the same result. It only shows the blank fields in the configuration panel, the associated tabs with the documentation reads correctly. I toggled the shipping module on and off, and checked in Firefox to ensure that it wasn't a browser rendering issue.

For the moment would you mind giving me a screenshot of the configuration panel so that I could bypass this issue for the moment and see if I can get the functional aspects of the module working?

Thanks for your efforts, this seems like a very robust component.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 13, 2011, 15:55:26 pm
Here's a shot of the admin panel, with a "padding rule" started.

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: Zen Amateur on February 13, 2011, 16:13:08 pm
lowmips,
Thanks again, however seeing this makes me realize that I am going to have to start from the beginning, as the API development dropdown, Delivery Type, ETA Display Format don't contain any data either, so I can't move any further along until I fix this.

I will retrace the installation steps, and try this again. I am using the build vm115-fedexv2.2011.01.06, with VM 1.1.7, is it possible that the modifications for the security update for VM have broken something?

Thanks again.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 13, 2011, 16:20:15 pm
I would assume that the eCommerce edition is the culprit, but I have no real data to support that theory.  You're missing language files, or something is not calling the language files correctly.  I've had enough people download and install this module on the "normal" version of VirtueMart to know that it has worked before with no issue like this.

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: cacklewack on February 19, 2011, 20:45:19 pm
I've just added this module and it's working well, except for our most important product that needs to ship in two separate boxes. Is there a way to account for a product shipping in two boxes?

Thanks!

Matt
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 19, 2011, 22:19:36 pm
The module currently does not support per-product multi package shipping.  You could try using the shipping modifiers feature to approximate the cost of more than one package, but it probably will not be very accurate..
Title: Re: FedEx v2.0 - Web Services
Post by: miikie3 on February 23, 2011, 22:58:49 pm
Sorry if this question has already been asked, but I wasn't able to find it anywhere.
Does the FedEx v2.0 work with VM 1.1.7? I went to the developers website and there was a note that said, NOTE: I have several users who also confirm it works with VirtueMart 1.1.6. But nothing about 1.1.7 Has anyone installed this and got it working successfully on 1.1.7

Also I'm using the old GatewayDC version now and I can't get any Interantional shipping option to appear? Any thoughts on this and will they appear in the FedEx v2.0?

Thanks for any responses...these modules are giving me a headache!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 23, 2011, 23:11:04 pm
I have not had a user confirm that it works in 1.1.7.

The differences between 1.1.6 and 1.1.7 are very small.  I would think that using the current version of the module with 1.1.7 will work.  But be aware, you may overwrite some security updates that were put out in 1.1.7 if you install the older version of the module.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 07, 2011, 21:12:03 pm
********** BUGFIX ***********

Versions affected:
vm114-FedExv2.2010.06.18
vm115-fedexv2.2011.01.06


Description:
- Signature option was malformed, resulting in signature fees not being added to final shipping cost
- please re-download the appropriate archive and replace the following file:
/administrator/components/com_virtuemart/classes/shipping/fedexv2.php
Title: Re: FedEx v2.0 - Web Services
Post by: Longover on March 18, 2011, 03:24:34 am
I'm getting an error for some cities.  I will have to copy the specific error, but it basically says that fedex could not return shipping results.

I am able to manually go to fedex.com and generate a quote with the same addresses.  So I'm not sure what is being lost in the process of receiving results.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 18, 2011, 13:45:47 pm
Web Services cannot handle all locations.  But we really won't know what the issue is until you can get the error message returned by FedEx (be sure to use the "show extra debug info" feature).

-Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Longover on March 30, 2011, 21:24:17 pm
Thanks for the quick reply and I will get the error logged when I figure out which specific address it is.

Another question...

Any idea why the UPS module on here would interfere with this module when both are activated?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 30, 2011, 21:25:11 pm
Which UPS module, specifically?
Title: Re: FedEx v2.0 - Web Services
Post by: Longover on March 30, 2011, 23:36:58 pm
UPS 2.2010.02.15

Error is:
Fatal error: Cannot redeclare class Package in /home1/{site}/public_html/administrator/components/com_virtuemart/classes/shipping/class.Package.php on line 21
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 30, 2011, 23:38:06 pm
The modules are not designed to work together, yet.  You'll have to merge the code together, and make some other tweaks before they'll work.

FYI, I have plans for creating a unified shipping module so that future users will not have to manually merge them.
Title: Re: FedEx v2.0 - Web Services
Post by: Longover on March 31, 2011, 02:16:47 am
Hey lowmips thanks for all the help.

I'm no coder, but I see that you've created a lot of stuff on this forum.  Could you point me in the right direction with what would have to be merged for both modules to work with one interfering with the other.

Thanks
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 31, 2011, 02:22:37 am
You'll need to use a file comparison tool, and make sure that the updates for both modules are put in. They share some updates, so that's helpful.  Also be sure that any SQL updates for the modules are made.

You should do this in a test environment before ever considering going live..

I don't recommend trying this yourself if you're not an experienced coder.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 01, 2011, 00:00:55 am
************ BUGFIX ***************

Version:
2011-01.06

Issue:
Shipping coupon feature inadvertently left out of main VirtueMart configuration

Fix:
Download updated module.  Replace file:
/adminstrator/components/com_virtuemart/html/admin.show_cfg.php
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 19:08:14 pm
Web Services cannot handle all locations.  But we really won't know what the issue is until you can get the error message returned by FedEx (be sure to use the "show extra debug info" feature).

I can tell you that this is definitely an issue that is effecting us at www.wristbands.net. We installed the Fedex module and the frustrating thing is that this error is wildly inconsistent with the addresses. I use a Houston, Tx address and it fails every time. When one of our developers in Argentina uses the same address, he gets through. It would be less of a problem if the module would have an option for a standard price that can be set when no rates are found allowing the user to complete an order. But with our site, Fedex is the only option for shipping that they allow. This problem is huge because when this error occurs, no user can get past the step to finalize the order. I would consider, if you cannot fix the address problem, at least give an option that would enable a "site" to have a FedEx manual price option that can basically cover the shipping costs if no address is returned... or something to that effect. Just a thought.

Here is a little more info. If you would like our development team to do more to help you test this, let us know.

Test Address:
1200-1204 Caroline St
Houston, TX 77002
United States

Here is the error:
Notice: No FedEx rates returned.
CHECK_OUT_GET_SHIPPING_METHOD


Randy Van Gelder
CompeteSoft
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2011, 19:20:03 pm
Randy,
Sorry to hear you have such trouble with this. Are you 100% sure it's a CRS 556 "There are no valid services available" error? You can determine that by viewing the checkout with "show extra debug information" logged in as an admin. If so, have you contacted FedEx Web Services about this issue?

I'll make plans to add a fallback "standard shipping" option to the module.  It may be a while before it comes to fruition... If your developers are PHP-savvy, it wouldn't take too much to add it in.  I know other modules have the feature, such as my UPSv2, and the vanilla ups module.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 19:28:24 pm
Reggie,

Technically, this error is simply "not finding the address". The actual system is not producing an unexpected error. It is as if the address is not being found. When I tried several known residences in Houston and Sugar Land, I could not get the order to go through.

I have turned on the debug and I am logged in as the admin. Can you tell me what I am looking for as this looks like the same error with no additional information.

http://prntscr.com/1po4b (You can see a screen of it here)

Keep in mind, we are processing orders throughout the day. This is not breaking all the time. However, the fact that it MAY be breaking with a customer trying to purchase is of major concern even if other orders are going through. We have processed 10-15 orders since we launched a few days ago but I am certain that some customers may be stuck. I am just lucky that I am one of those users or we may not have found this issue.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2011, 19:30:03 pm
You'll need to enable the "Show extra debug info" option in the module.
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 19:36:52 pm
You'll need to enable the "Show extra debug info" option in the module.

Yes, of course. I know that. :)

What I am asking is where this is logging the error or "returned" information. I cannot seem to locate that either in the administrator or by logging in to the site as the admin and going through the order process. I am trying to find out where this "Show extra debug info" is actually showing.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2011, 19:40:11 pm
The "show extra debug info" will show the 'extra' information on the front end, during checkout, especially on the "select shipping method" step.  This is where the API request/reply will be logged and displayed when turned on.

-R
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 19:58:52 pm
The "show extra debug info" will show the 'extra' information on the front end, during checkout, especially on the "select shipping method" step.  This is where the API request/reply will be logged and displayed when turned on.

-R

Here is what the debug info is telling us:

fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!

Hopefully that is meaningful to you.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2011, 20:01:43 pm
That's it? No other debug info whatsoever?   ???
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 20:04:57 pm
Fedexv2: using commercial delivery
FedExv2: not using signature option
fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!


This is the complete debug error from start to finish.
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 20:08:28 pm
We are going to test now in our local development environment to see if we can find anything else. That was from the live site using the test address:

Address:
2915 Old Masters Drive
Sugar Land, TX 77479
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2011, 20:08:32 pm
It would really help to know the module version.
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 20:09:56 pm
It would really help to know the module version.

Of course!

The FedEx Shipping module, version 2.2011.01.06. Utilizes FedEx "Web Services". For VM1.1.5.

Probably would also help you to know that we do have VM 1.1.7



Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2011, 20:16:07 pm
This is not a fedex API issue.  This is failing before the API is ever called upon.  This is probably a zero weight, too large weight, or other issue.  Can you not put your shop in full VirtueMart debug mode, and run the transaction again? You'll get more debug info.
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 20:21:06 pm
Will do... and we'll let you know what we find. We may also go ahead and write the add-on to the module for fallback to Standard Shipping. If we do, I'll be happy to share that with you if you like.
Title: Re: FedEx v2.0 - Web Services
Post by: The VeeG on April 06, 2011, 20:53:43 pm
The beauty in all this is that this exercise helped establish the need for a backup or fall back plan. It also established that if the client does something foolish, you can test forever and never find a bug. Let's just say that you were right about the weight issues... Our system is very complex with the number of products and how the wizard creates products from scratch. The reason why the shipping was not consistantly working can now be explained.

Thank you for your efforts here... it should not have taking us this long to discover something so simple but you cannot control what the client does sometimes. In this case, we have solved the problem and when we add something to this module for the fall back scenario, I plan to donate that to you for your hard work and effort. Thank you! 
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 06, 2011, 20:56:30 pm
Glad to hear you resolved the issue.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: PassionateTeam on April 09, 2011, 10:23:48 am
Thankyou for your quick reply and help, Reggie, and sorry about not posting the question in FedExv2 forum.
FedEx has enabled Estimated Duty and taxes (ED&T) for our Web Services account, for account information to produce rates for a shipment to Canada with ED&T and also the Clearance Entry fee.

What information would you require to send us ED&T version of the module?

Please refer our post http://forum.virtuemart.net/index.php?action=post;topic=84656

Waiting for your reply.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 09, 2011, 16:39:16 pm
Hi,
Please email me.  I'll send you the module via email.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: PassionateTeam on April 11, 2011, 13:38:23 pm
Hello,

We have sent you an email for the ED&T version of the module. Waiting to hear from your end.

Thanks,
Passionate Team.
Title: Re: FedEx v2.0 - Web Services
Post by: trocupei on April 13, 2011, 18:13:40 pm
Hi guys !

We have the same message:

Fedexv2: using residential delivery
FedExv2: not using signature option
fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!

How does it get fixed ? I got lost in the outcome
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 13, 2011, 18:21:53 pm
Quote
This is probably a zero weight, too large weight, or other issue.  Can you not put your shop in full VirtueMart debug mode, and run the transaction again? You'll get more debug info.
Title: Re: FedEx v2.0 - Web Services
Post by: PassionateTeam on April 14, 2011, 15:48:02 pm
Hi,

We have upgraded the virtuemart to the version1.1.5 and then updated the FedEx module with the ED&T version. But there is change of $1 only in the price.

Any clue..
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 14, 2011, 15:57:15 pm
ED&T usually applies a charge based on a percentage of the item value, for items that apply.  It determines if the charge applies by looking at the harmonized code, and the value of the item.

One thing that may not be plainly spelled out in the instructions is that you'll want to enter the correct harmonized codes for your products in the product configuration.  It's a new field in the ED&T version.

Harmonized codes can be a real pain, so I wish you luck finding the correct one!  FedEx Web Services was fairly helpful with my last client who had trouble finding the correct codes, so I suggest that you interface with them.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: PassionateTeam on April 25, 2011, 15:55:54 pm
After enabling the EDT to our site, FedEx ground rates are same as the FedEx site but the FedEx International Economy remain same with quantity of product.

Is there any setting we suppose to change...?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 25, 2011, 16:20:34 pm
Yes, under the main virtuemart configuration, "Shipping" tab,be sure to check the "Declare estimated duties and taxes".  Also, where are you shipping from/to? Also, have you input the harmonized codes for your products in the product config?
Title: Re: FedEx v2.0 - Web Services
Post by: jbd123 on April 28, 2011, 14:34:36 pm
Hey Reggie,

I am having a problem with the fedex module on my website, www.mowproducts.com. I put an air filter in my shopping cart, which weighs in at 0.0100 pounds. However, the ground fedex shipping rate is still coming out to over 15 dollars. Is this an error, or does fedex not offer lower rates?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2011, 14:51:36 pm
You'll have to use debug mode and "show extra debug info", get me the request/reply.  Then maybe I can give you a good answer. =)
Title: Re: FedEx v2.0 - Web Services
Post by: jbd123 on April 28, 2011, 15:07:13 pm
Reggie,

No problem. Please let me know if this is helpful. I added the same product to my shopping cart and got a 'commercial' rate of $13.06. I took screenshots if you need them, I'll attach them upon your request. Please let me know if I need to run the debug on a different page, etc. Thank you so much.

Above content:

Debug: Using existing Session f9d31f8ad404d5cb92babd2e6538b315, ID: 6e3ec658a12e12a72d365e1262a38d43.
Info: The product was added to your cart.
Begin of File: /home/wwwmowp/public_html/plugins/system/cartrates/cartrates.tpl.php
' ,WIDTH, -350 ,TITLE,'Tip!' );" onmouseout="UnTip()" >
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: Using user-defined max weight of 40
Debug: Tax rate is: 1
Debug: Adding handling fee

Below Content:

DEBUG CENTER
Version: VirtueMart 1.1.5 stable [Wiesbaden]
03/07/2010 12:00 GMT
RunTime:    0.0756649971008 sec.     Current Page:    shop.cart
Queries executed:    28       Last Page:    shop.cart
UID:    58     Return To Page:    
Username:    justyne@commercialsonhold.com     Function:    cartAdd
Perms:    shopper     Command (Result):    (True) 
$func_perms:    ./.    $ps_vendor_id:    1   
 
$dir_perms:    Ok     global Log:    0 logged message(s).   
 
Joomla! Session ID:    6e3ec658a12e12a72d365e1262a38d43
VirtueMart Session ID:    6e3ec658a12e12a72d365e1262a38d43   
$cart:    $cart[0]:ID[7380]->Qty:[1]
$auth:    Array ( [show_prices] => 1 [user_id] => 58 [username] => justyne@commercialsonhold.com [perms] => shopper [first_name] => Justyne [last_name] => Dickson [shopper_group_id] => 5 [shopper_group_discount] => 0.00 [show_price_including_tax] => 1 [default_shopper_group] => 1 [is_registered_customer] => 1 [country] => USA [state] => GA [zip] => 31217 )
$_POST:    zone_qty=>1
$_COOKIE:    
$_SESSION:    __default=> {Array}
auth=> {Array}
cart=> {Array}
recent=> {Array}
ps_vendor_id=>1
minimum_pov=>0.00
vendor_currency=>USD
vmUseGreyBox=>0
vmCartDirection=>0
VMCHECK=>OK
userstate=> {Array}
last_page=>shop.cart
last_browse_parameters=> {Array}
product_sess=> {Array}
rate_cache=> {Array}
shipment=> {Array}
fedexv2%7CFEDEX2%7CFedEx+Ground%7C13.06=>1
ccdata=> {Array}
savedcart=> {Array}
coupon_discount=>
coupon_id=>
coupon_redeemed=>
shipping_coupon_redeemed=>
shipping_coupon=>
     
$vars:    product_id => 7380
flypage => shop.flypage.tpl
page => shop.cart
manufacturer_id => 0
category_id => 5020
func => cartAdd
option => com_virtuemart
Itemid => 28
f9d31f8ad404d5cb92babd2e6538b315 => 6e3ec658a12e12a72d365e1262a38d43
virtuemart => 6e3ec658a12e12a72d365e1262a38d43
__utma => 45575992.1578178448.1303993540.1303993540.1303995817.2
__utmc => 45575992
__utmz => 45575992.1303993540.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
beecf3d6ab6b8b1434c13bff08dc7501 => 3370ad5e15ef764cb134e04579f5f06a
switchmenu => 1
__utmb => 45575992.2.10.1303995817
order_subtotal_withtax => 1.37
payment_discount => 0
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 28, 2011, 15:11:03 pm
Hi,
I don't see the request/reply. Did you enabled "show extra debug info" in the module? Also, log out and back in before running the checkout so that it will not cache the rates, giving you the request/reply.

DO NOT post the request/reply here.  It contains sensitive info. Email it to me.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: stidevildog on May 04, 2011, 02:08:02 am
Anyone else having an issue with the 24 hour and 12 hour format? The module configuration keeps saving under 24 even when I choose 12.  Would like to customize the format in Fedexv2.php but it won't go to the 12 hour format.  Any tips would be appreciated.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 04, 2011, 02:51:30 am
Are you using VM117 or higher? After saving, click some other link in the store, then go back to the module configuration to load the new values.

The module used to redirect to a different page after a save, which causes the old values to be cleared when you go back in.  They changed this behavior....
Title: Re: FedEx v2.0 - Web Services
Post by: stidevildog on May 04, 2011, 03:40:19 am
I'm using VM118 and your 115 module version that I downloaded on the main page. 

I figured out the problem on my end.  I tried doing your method but it doesn't refresh with 12 just stays at 24.

The fix for me was manually adding
define ('FEDEX2_SHOW_ETA_FORMAT', '12');
to the fedexv2.cfg.php file.  Manually it will take it but if I make any other changes to the page later it rewrites the file minus the eta_format for some reason.
Title: Re: FedEx v2.0 - Web Services
Post by: mhogan on May 24, 2011, 16:29:01 pm
Should SmartPost rates be displayed?  It does not appear that they are being returned by FedEx.

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 24, 2011, 21:59:13 pm
Web Services may not support SmartPost at this time, I really don't know.  This would be a good question for a FedEx representative to answer for us.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: thedudeabidez88 on June 20, 2011, 20:01:39 pm
Hello. I am getting "Notice: No FedEx rates returned." error on the shipping checkout page. How do I fix this?
Also what is the best way to remove fedexv2 from the mysql database? I was going to reinstall this fedex module, and when I go to upload the mysql file for the plugin, phpmyadmin gives me an error saying:

Error

SQL query:

ALTERTABLE`jos_vm_product`ADDCOLUMN`ship_alone` CHAR( 1)NOTNULL DEFAULT'N' AFTER`ship_code_id` ;

MySQL said:
#1060 - Duplicate column name 'ship_alone'
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 20, 2011, 20:04:12 pm
Depending on what version you are using, you'll need to use VirtueMart debug mode and possibly the module's "show extra debug info".

To reinstall the SQL, you can import one SQL command at a time.  If you get a "duplicate column" error, simply ignore and move on to the next command.  Commands end with a semi-colon.
Title: Re: FedEx v2.0 - Web Services
Post by: thedudeabidez88 on June 20, 2011, 20:24:02 pm
I enabled debugging in Virtuemart, and went to the shipping checkout page, here is what I got.

Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: Using user-defined max weight of 70
Debug: get_package_rates: get_rates_array failed.
Notice: No FedEx rates returned.

There was more information at the bottom of the page such as shop core vars and global vars to.

Edit: I am using Virtuemart 1.1.8 with Fedex version 2.2011.01.06
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 20, 2011, 20:25:07 pm
You really need to list the module version you're using.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: thedudeabidez88 on June 21, 2011, 08:09:59 am
"I am using Virtuemart 1.1.8 with Fedex version 2.2011.01.06"
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 21, 2011, 15:41:35 pm
OK,
Use the "show extra debug info" option, and log in as an administrator, and run through the checkout again.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: thedudeabidez88 on June 22, 2011, 03:23:33 am
I am not sure what the issue was, but when I went to do that this morning and go through the checkout process again, I discovered at the bottom after all the extra debug information, the fedex rates appeared. so I disabled all the debug information, and it appears to be working normally :). A problem on FedEx's side perhaps? I dont know.

Thank you Reggie for your support.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 22, 2011, 18:35:49 pm
************** Public Release **************
vm118-fedexv2.2011.04.19 is now publicly available. Download from the first post in this thread, or from my website.

THANK YOU DONATORS!
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Leandro Bertalot on July 11, 2011, 18:55:48 pm
Can anyone tell me if I can use Smart Post with this component?

this is the reply from a FedEx representative:
SmartPost rates are not available online or by a customer support representative. SmartPost rates can only be provided by your sales representative

Web Services may not support SmartPost at this time, I really don't know.  This would be a good question for a FedEx representative to answer for us.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: fearless924 on July 13, 2011, 20:25:37 pm
I have a client you has a discount on his account but he doesn't want his discount to show for his customers.  I called Fedex and they said if your able to choose List rates instead of User rates that will resolve the issue.  Is there a way to do that?  thanks.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 13, 2011, 20:31:58 pm
vm118-FedExv2
/administrator/components/com_virtuemart/classes/fedexv2.php
Line 951, change: 'PAYOR_ACCOUNT' to 'RATED_LIST'
This will change the preferred rates from the account rates to the list rates, if available.  Note that if the RATED_LIST rates are not available, it will fall back to whatever the ACTUAL_RATE is.

Also see my notes in the first post about removing the "web services" discount.
Title: Re: FedEx v2.0 - Web Services
Post by: learner on July 24, 2011, 17:41:40 pm
hi there, how do i install SOAP? can someoe provide me a link? I looked around but wasn't sure which one to install. i have downloaded fedexv2 2011.4.19 package and am trying to use it. another question is, i see the package was created for virtuemart 1.1.8. i have 1.1.9. can that casue any issues if i overwrite existing files with this version?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 24, 2011, 19:32:56 pm
http://php.net/manual/en/soap.installation.php

Installing the 118 version on 119 can overwrite files, but I've heard of several users doing so with no apparent issues.
Title: Re: FedEx v2.0 - Web Services
Post by: learner on July 25, 2011, 05:00:40 am
thank you. all i had to do was enable the soap module in php.
Title: Re: FedEx v2.0 - Web Services
Post by: learner on July 26, 2011, 04:13:02 am
just had one more question. i got SOAP enabled, got the fedex developer web key and other details. Also i went to virtuemart and under shipping module list, selected fedex v2 and configured it with settings provided by fedex. now, im not sure how to link the fedex module to my shopping cart. can someone point me in the right direction please. thanks!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 26, 2011, 14:37:15 pm
Under the main configuration there is another "Shipping" tab.  Be sure to enable the module there.  It's a bit counter-intuitive.... ::)
Title: Re: FedEx v2.0 - Web Services
Post by: learner on July 26, 2011, 21:22:42 pm
i just can't seem to figure out why the fedex module is not loading in the checkout page. i think i have enabled and configured it properly. this is what i have done so far:

I went to Admin --> Configuration --> Shipping Tab and selected Fedexv2 as the shipping method there
I went to Store --> Shipping Module list and verified its enabled there (also, i have entered the info fedex provided there and verified web access key and other stuff is saved in fedexv2.php file)

I am not sure if i need to do anything else but there seems to be a link missing between virtuemart and fedex2.
This is what happens. I select a product and add it to the cart. i then goto view cart and the item is there. i see the checkout button. when i click on the checkout button, it takes me to the following link: http://localhost/joomla/products?page=checkout.index&ssl_redirect=1&option=com_virtuemart&Itemid=2

how do i change the checkout button so it takes me to the proper page? please help...

 
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 26, 2011, 21:31:27 pm
You've got configuration issues beyond Fedexv2.... the "localhost" URL is not what you should be seeing..sounds like possibly your VirtueMart configuration is incorrect, or you have a custom mod that needs to be fixed. 

Please post your Checkout button issue in the "Installation" or "Checkout" forums, as it is not related directly to FedExv2.

Thanks
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: learner on July 27, 2011, 16:42:20 pm
thanks lowmips for all your help. i finally got it to work by reinstalling everything. i wanted to start clean. but now i am getting this msg "Debug: get_package_rates: get_rates_array failed." i enabled debug in virtuemart and that's the msg i get. im gonna search this forum to see if i can find any solutions. thanks again.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 27, 2011, 16:53:43 pm
Hmm..did you select some services to offer? Do your products all have weight defined?
Title: Re: FedEx v2.0 - Web Services
Post by: ak_tailored on July 28, 2011, 11:16:10 am
I am using VirtueMart 1.1.8 , FedEx2.0  (2.2010.08.10) ,UPS (2.2010.08.12 ) for my shop.

For , freight product I am getting "Freight Shipping: Fee yet to be determined. " from UPS but, fedex is giving rates and the rates are not freight rates as shown at fedex site.

Can you please give me some guideline OR suggestion for this, let me know if I am misunderstanding something.

Thank you.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 28, 2011, 13:53:51 pm
FedExv2 does not have the "freight shipping" feature.  The modules are not integrated, and do not understand one other's features.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 28, 2011, 20:55:24 pm
*********************** NOTICE *********************

I had a brief email conversation with a FedEx representative about FedEx SmartPost today (thank you Linda for contacting me).   FedEx SmartPost is not being returned along with the normal "Rate Shopping" rates because it requires a special query to the API.  So the final answer is:

Web Services DOES support SmartPost
FedExv2 DOES NOT support SmartPost, at this point.

I plan on adding support sometime in the future (it's on my long, dusty, TODO list).
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: learner on August 07, 2011, 04:21:14 am
hi there, i am just curious as to how the order gets processed if i use this module this fedexv2 module. after customers select their shipping method how does fedex get that order information using fedexv2? also, how do i know the order has been placed? do i have to let fedex know about the order manually or the order gets automatically created in their system (since the module uses has fedex account info). thanks
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 07, 2011, 05:00:01 am
The module only does "rate shopping".  It does not charge your account, print labels, or initiate any shipping processes.  You will have to manually take over after the order is placed.
Title: Re: FedEx v2.0 - Web Services
Post by: learner on August 16, 2011, 00:18:18 am
one more question lowmips,
how do i add an image before the start of the the shipping options? please see attached screenshop of what im tryign to do. thanks in advance!

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: ashelleydesign on August 18, 2011, 20:29:55 pm
Did you read the README.txt file? There is a link and a brief description of the sign up process for Web Services.  There are actually 4 credentials you need, not just 2.

I have a FEDEX account and have combed thru the link provided in the README.TXT and i cannot see where or how to get the necessary keys, etc. i have gone to every single link on the site and cannot find how to do this ???
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 21, 2011, 00:22:23 am
Hi,
It's been 3 years since I signed up, so things may have changed.  You'll want to sign up for "Web Services" and follow whatever instructions provided to be moved to production.

Beyond that, I can give no more information.
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: melriksdesign on August 21, 2011, 23:29:44 pm
i have gone to every single link on the site and cannot find how to do this ???

Instead of going to www.fedex.com.  Go to http://www.fedex.com/us/developer/ and log-in with your usual FedEx account credentials.

Click on Developer Solutions.  At the bottom of the first column in the table is "Access FedEx Web Services for Shipping Technical Resources".  Click and follow the registration trail.  Get a test key. Transfer the test key to Production (or try jumping right to Production).

You'll get part of the Web Services information directly online and the other half emailed to you.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 22, 2011, 16:09:15 pm
Thanks for clearing that up!
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Rajinder on August 23, 2011, 06:42:00 am
Hello,


I have used fedex pickup webservice from Advanced Api at https://www.fedex.com/wpor/web/jsp/drclinks.jsp?links=wss/getstarted.html

But below error is occurred,

Error returned in processing transaction Severity: ERROR
Source: prof
Code: 1000
Message: Authentication Failed


Can you please let me know what is reason behind this Error as fedex key,password and meter number and account  number is correct,
I have used "1314070742" Date format.

Please let me know as soon as possible.

Thanks!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 23, 2011, 15:08:44 pm
Hi,
I cannot debug authentication errors.  Check that your credentials are correct, and that you are in the PRODUCTION environment.  Beyond that, you'll need to contact FedEx for further assistance.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: jakeslife on September 15, 2011, 01:42:15 am
How do I change the delivery time format? It is showing YYYY-DD-MM HH:MM:SS. I set it in the module settings to use 12 hour, and also checked the main VM and Joomla settings, but the box keeps going back to 24H and the date format does not change.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 15, 2011, 02:13:11 am
What version? Do you have any caching component enabled?
Title: Re: FedEx v2.0 - Web Services
Post by: sdemmitt on September 23, 2011, 00:13:05 am
Using vm-113-fedex_v2.0.2009.07.20.zip with virtuemart 1.18
SOAP and SSL libraries installed

Configured with Test Key, Acct #,  Password, and Meter #

I get this error, but can't seem to figure out what the problem is.
Any idea?

Debug: Starting Shipping module: fedexv2
Debug: Could not connect to host

Notice: No Fedex rates returned.

Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 23, 2011, 19:49:33 pm
Some type of basic connectivity issue.  FROM THE HOST, can you ping gateway.fedex.com?  Can you reach https://gateway.fedex.com:443/web-services via a browser?
Title: Re: FedEx v2.0 - Web Services
Post by: sdemmitt on September 23, 2011, 23:11:40 pm
yes and yes
thought it might be the firewall
opened up the 443 ports, reset firewall and still not working

any other ideas?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on September 27, 2011, 14:27:42 pm
Sorry, no other ideas.  Do you have problems with any other shipping modules, like the UPS module?
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 04, 2011, 17:56:20 pm
Hi there,
I've installed this and so far so good besides the fact , on International Address it's saying "Notice: No FedEx rates returned.". But it does list USPS rates. I will add it will provide rates for Domestic addresses. Is this an issue with the item i'm adding to the cart or fedex issue? Also I try to change the display hour option from 24 to 12 and it keeps going back to 24hr .. any ideas?

Thanks,
Jeff
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 04, 2011, 18:21:01 pm
Version?
Debug output?

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 04, 2011, 19:35:58 pm
Running version 2.2011.04.19. During debug it's stating the zip code is invalid , I guess the zip code was entered wrong so I redid it and now it's working! Stupid mistake on my part .. only thing is now is the time deal. I select 12HR and it says it's updated however the 24HR is selected, no matter how many times I select the 12HR, it goes to 24HR after I update. Not a big deal but it would be easier for customers to read 12HR time then 24.

Thanks
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 04, 2011, 19:43:01 pm
There is a bug in the way VM loads shipping modules since about vm1.1.7.  Select 12 hour option, then save it, then go somewhere else in virtuemart.  It doesn't matter where, just get completely out of the shipping module config page.  Then go back and see if it took.
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 04, 2011, 20:17:18 pm
Nope , unfortunately that's not working. I select 12hr , hit save and when it reload the 24HR is already selected.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 04, 2011, 20:21:08 pm
I'll add it to the bug list.
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 04, 2011, 21:24:39 pm
I also just noticed something. This happen to me when installing the meta hack (which I added to the  product.product_form and is working fine). However I think the problem lies in the product.product_display. I've attached two pictures so you can see what i'm talking about. (The pictures are a little older from when installing the meta hack however the same thing is happening .. only difference is the top picture does NOT show the Shipping tap when it should.)

(http://i14.photobucket.com/albums/a309/pure2k7/display.jpg)

(http://i14.photobucket.com/albums/a309/pure2k7/display1.jpg)

You can see that categorie section is different when adding products. The first pic shows how it is with FedEx installed , the 2nd shows without .. I need the categories section to be how it is in the 2nd pic , as we have a lot of categories .. can I run the original product.product_display file? Or is there something I can change that will change the way categories are displayed?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 04, 2011, 21:28:08 pm
I don't know what "the meta hack" is, but if you're installing two different mods you'll need to be sure that one isn't overwriting the other.  You'll want to merge the code from both product.product_form.php files.
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 04, 2011, 21:44:04 pm
I did merge them. The problem I'm seeing would lie in the product_form or product_display file? The metahack basically pulls information from products and puts them in the meta field , suppose to help with search engines.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 04, 2011, 22:13:46 pm
look in product.product_form.

product.product_display is just a "recap" after you've saved the product.
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 05, 2011, 16:27:24 pm
I can't find it .. I'm not experience enough in it. Do I need to run your product_form? Can I run my original one? Or will it not work?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 05, 2011, 16:34:36 pm
/administrator/components/com_virtuemart/html/product.product_form.php

If you want the fedexv2 features, you'll need to run my form + your additions.
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 05, 2011, 17:21:31 pm
I know the product_form file .. i just can't find the categories part within the PHP I need to change so I can get it back to the way it was ..
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on October 05, 2011, 17:41:21 pm
I see.  It's missing, you can't find it in your current file.
Here's an idea: use a file comparison tool to compare my original version with your current version, and perhaps the metahack version as well.  I like to use a program called "diffuse merge tool" as it gives you a 2 or 3 way comparison within a nice gui.  I know it has a linux port (which I use), it may have a windows port.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: jeffrps on October 05, 2011, 18:58:34 pm
Awesome program! I found it with that. The problem lied in line 276:
          if( $number_of_categories > 200 ) {

200 needs to be 10000. I put in 10000 and now the layout is back to the way it was .. it must be because I have over 200 categories?

Title: Re: FedEx v2.0 - Web Services
Post by: Softwired on November 10, 2011, 00:48:11 am
So I went through all the steps to set up the Fedex account and get the production key after uploading all the necessary files.  I configured the module and when I go to calculate shipping I get a "no FedEx rates returned"  What am I missing?

http://69.167.135.87/~visseafo/index.php?option=com_virtuemart&Itemid=87

I am running Virtuemart 1.1.9 if that makes a difference.

Thanks for any insight!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on November 10, 2011, 03:17:21 am
Configure the module to debug mode.
Configure VirtueMart to debug mode.

Run the checkout again and see what's going on.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Softwired on November 18, 2011, 21:17:29 pm
There are a couple of things that caused this problem for me.  The first is not having dimensions in the product itself.  The second is having an incorrect zip code entered for the Store address.  If either of those things aren't causing the problem call Fedex and they can troubleshoot from their end.
Title: Re: FedEx v2.0 - Web Services
Post by: Softwired on November 18, 2011, 21:30:59 pm
I'm trying to set this up and it doesn't seem to be working for me.  So I set up a restriction called ground shipping for all 50 states.  Then I go into each product and set the restriction for ground to remove that from the list of available methods.  Correct?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on November 18, 2011, 21:33:08 pm
That sounds about right.  If it's not working, look at the debug output.  Does it show any clues?

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: grutz on December 01, 2011, 18:52:41 pm
Joomla 1.5.24
VirtueMart 1.1.9
vm118-fedexv2.2011.04.19

I'm not getting the Free Shipping within the module to work.

In the module, I've checked "Enable" for Domestic Orders, and put in a value of $78.00.

I've tried it with the Free Shipping in Edit Store set to both $78.00 and $0.00.

Am I missing something?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 01, 2011, 18:58:47 pm
Using the module's debug mode, and VirtueMart debug mode, run through the checkout again.  Report your findings here (remove any credentials from the debug).  Be sure to log out, then back in as an admin.  This will clear any cached rates on the module's part.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: grutz on December 01, 2011, 19:25:29 pm
I logged out and in, as well as closed and reopened my browser.  Here is the debug from the Shipping Methods page.

Debug: Using existing Session 403d2f3655df9176f1d758da0de9cdfa, ID: f0df0b5baa895711984ac44e7c89782e.
Debug: calculating tax based on shipping address

Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: using residential delivery
Debug: Fedexv2: Using user-defined max weight of 70
Debug: FedExv2: not using signature option
Debug: class.Shipment::addPackage() Adding a new bundled package
Debug: class.Shipment::addPackage() - Package Number: 1
Debug: class.Shipment::addPackage() - Package is Bundled
Debug: class.Shipment::addPackage() - Maxweight: 70
Debug: class.Shipment::addPackage() - Shipping Info - Country: US State: OR ZIP: 97756
Debug: class.Package::addItem() - ***** Adding item 19 (12 Pack Combo) to package #1 *****
Debug: class.Package::addItem() - ***** Adding item 19 (12 Pack Combo) to package #1 *****
Debug: class.Package::addItem() - ***** Adding item 19 (12 Pack Combo) to package #1 *****
Debug: fedexv2::get_rates_array() - Skipping dimensions
(I left out the array for the sake of space, I couldn't see anything free shipping related, but let me know if you want to see it.)

Debug: fedexv2::get_tax_rate() - tax class is zero, returning zero tax rate
Debug: Tax rate is: 1

My order was at $117, and I have the Free Shipping set at $78.  This is the only module I have active in Admin->Configuration.

Thank you for the quick response!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 01, 2011, 20:29:02 pm
If you have restricted free shipping to "basic" services, but the services returned are non-basic, the free shipping option will not be triggered.  Check in your main VM config under the "Shipping" tab for that configuration option.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: grutz on December 01, 2011, 20:49:01 pm
"Restrict free shipping to basic ground services" is/was unchecked.  All 5 of the additional options under the shipping tab are unchecked.

I haven't set any shipping restrictions of any kind.

All of the products have the default values under the shipping tab.

VirtueMart is the only extension I have on this Joomla install, and FedExv2 is the only addition to VirtueMart.  Very little modification has been made, visual modifications to browse and flypage only.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 01, 2011, 22:07:02 pm
Hmm. Strange.  Are you familiar with PHP?  The code in question is in class.Shipment.php, lines 350-382:

Code: [Select]
if ($this->packages[$looper]->ship_src_info['country'] != $this->dest_country ){
// international shipping
if (
defined('fedex_free_shipping_international') &&
(fedex_free_shipping_international == 1) &&
($cart_amount >= fedex_free_shipping_international_amount)
){
// are we restricting free shipping to ground services?
if (
VM_RESTRICT_FREESHIP_BASIC=='N'||  // free shipping can be applied to all services
(VM_RESTRICT_FREESHIP_BASIC=='Y' && in_array($tmp_array['ServiceName'],fedexv2::$fedex_service_grnd_list)) // free shipping can only be applied to ground services, and this is a ground service
){
$free_shipping = true;
$this->debugLog("class.Shipment::getRates() - Package meets free international shipping conditions");
}
}
}else{
// domestic shipping
if (
defined('fedex_free_shipping_domestic') &&
(fedex_free_shipping_domestic == 1) &&
($cart_amount >= fedex_free_shipping_domestic_amount)
){
// are we restricting free shipping to ground services?
if (
VM_RESTRICT_FREESHIP_BASIC=='N'||  // free shipping can be applied to all services
(VM_RESTRICT_FREESHIP_BASIC=='Y' && in_array($tmp_array['ServiceName'],fedexv2::$fedex_service_grnd_list)) // free shipping can only be applied to ground services, and this is a ground service
){
$free_shipping = true;
$this->debugLog("class.Shipment::getRates() - Package meets free domestic shipping conditions");
}
}
}

If you can debug it, maybe check the "$cart_amount" against the fedex_free_shipping_domestic_amount to see if that's the issue.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: grutz on December 02, 2011, 00:10:35 am
I know a little PHP.

I tested thusly:

Code: [Select]
}else{
// domestic shipping
if (
defined('fedex_free_shipping_domestic') &&
(fedex_free_shipping_domestic == 1) &&
($cart_amount >= fedex_free_shipping_domestic_amount)
){
$this->debugLog("is this even getting in"); //yes
$this->debugLog($cart_amount); //correct
$this->debugLog(fedex_free_shipping_domestic_amount); //correct
$this->debugLog(VM_RESTRICT_FREESHIP_BASIC); //nothing
// are we restricting free shipping to ground services?
if (
VM_RESTRICT_FREESHIP_BASIC == 'N'||  // free shipping can be applied to all services
(VM_RESTRICT_FREESHIP_BASIC == 'Y' && in_array($tmp_array['ServiceName'],fedexv2::$fedex_service_grnd_list)) // free shipping can only be applied to ground services, and this is a ground service
){
$free_shipping = true;
$this->debugLog("is this even getting in2"); //no
$this->debugLog("class.Shipment::getRates() - Package meets free domestic shipping conditions");
}
}
}

As you initially suspected, it seems to be hanging up on the VM_RESTRICT_FREESHIP_BASIC in some way, because I couldn't get "is this even getting in2" to show up in the debugLog.  I didn't get a value at all for that variable in the debugLog.  I'm not sure I should have, but I did for the other variables I tried...

I'm not sure what to test next.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 02, 2011, 00:25:49 am
Oh I know what it is.....the checkbox for the VM_RESTRICT_FREESHIP_BASIC sets the var to "Y", but unchecked it is set to nothing...my code should have validated it and set it to "N" for unchecked cases.

Change the code:
Code: [Select]
if (
VM_RESTRICT_FREESHIP_BASIC == 'N'||  // free shipping can be applied to all services
(VM_RESTRICT_FREESHIP_BASIC == 'Y' && in_array($tmp_array['ServiceName'],fedexv2::$fedex_service_grnd_list)) // free shipping can only be applied to ground services, and this is a ground service
){

to the following:

Code: [Select]
if (
VM_RESTRICT_FREESHIP_BASIC != 'Y'||  // free shipping can be applied to all services
(VM_RESTRICT_FREESHIP_BASIC == 'Y' && in_array($tmp_array['ServiceName'],fedexv2::$fedex_service_grnd_list)) // free shipping can only be applied to ground services, and this is a ground service
){
Title: Re: FedEx v2.0 - Web Services
Post by: grutz on December 02, 2011, 00:32:17 am
That got it!

Thanks for your help, and thanks for this essential addition to VM!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 02, 2011, 00:35:21 am
Great! I'll update the archives with this fix and eventually post them here :P

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: grutz on December 02, 2011, 20:23:11 pm
Hi Reggie,

I thought I'd share some mods I needed to make that others may find useful.

I wanted to restrict free shipping to the contiguous states, and also wanted a different free shipping amount for the Wholesale Shopper Group, so this is what I came up with:

class.Shipment.php

First, add $auth to the globals. This is so we can grab the shopper_group_id.  (~line 260)
Code: [Select]
function getRates($rate_type='ALL'){
global $vmLogger, $vars, $vendor_currency, $order_total, $auth;

Then (~line 366)
Code: [Select]
}else{
// domestic shipping
if (
defined('fedex_free_shipping_domestic') &&
(fedex_free_shipping_domestic == 1) &&
($cart_amount >= fedex_free_shipping_domestic_amount)
){

// determine the user's state
$dbs = new ps_DB;
$q  = "SELECT * FROM `#__{vm}_user_info`, `#__{vm}_country` WHERE user_info_id='" . @$_REQUEST["ship_to_info_id"] . "' AND ( country=country_2_code OR country=country_3_code)";
$dbs->query($q);
$eg_state = $dbs->f("state");

// determine the user's shopper group
$eg_shopper_group_id = $auth[shopper_group_id];

// are we restricting free shipping to ground services?
if (
VM_RESTRICT_FREESHIP_BASIC != 'Y'||  // free shipping can be applied to all services
(VM_RESTRICT_FREESHIP_BASIC == 'Y' && in_array($tmp_array['ServiceName'],fedexv2::$fedex_service_grnd_list)) // free shipping can only be applied to ground services, and this is a ground service
){
if ($eg_state != "AK" && $eg_state != "HI") { // excludes Alaska and Hawaii
$free_shipping = true;
$this->debugLog("class.Shipment::getRates() - Package meets free domestic shipping conditions");
}
if ($eg_shopper_group_id == "7" && $cart_amount < 156) { // accounts for shopper group and price
$free_shipping = false;
}
}
}
}

The shopper group id and free shipping amount are hardwired in. :P

Hmm, just occurred to me that I didn't think about Puerto Rico and the other territories.  I may need to add some more...  (Edit: nope, these aren't under USA)

Of course, take any of this you want, even if it's just the idea.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 02, 2011, 20:43:40 pm
Cool, thanks for posting the mod.  I hope someone finds it useful here!  It'd be great if others would post their mods here as well.

I do have "big plans" for the shipping restrictions/modifiers/etc. mechanism, but I currently don't have "big time" to implement it.  I would like to create more of a free-form "mix and match" mechanism where the user can define rules from multiple "triggers" which would include shipping service, cart totals, tax, user groups, source/dest, products, categories, etc... Maybe some day :)
Title: Re: FedEx v2.0 - Web Services
Post by: Brody on December 03, 2011, 20:25:04 pm
What is the easiest way to eliminate the FedEx 2.0 Shipping options for NON North American shipments? Like the basic shipping module, you have a list that you can select any or ALL countries to have X Y or Z methods of shipping. This would be great because it is confusing some of our non English speaking customers when they see the FedEx module and the Canada Post rates bellow. I just want them to see Canada Post, not both.

Also, when I enable the shipping coupons, I get an error after I submit the code, any insight or people with the same issue?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 03, 2011, 20:44:04 pm
1) You can directly modify the list_rates() method to silently exit if the user's country is outside of the US .  Something like:

Code: [Select]
if($this->dest_country != 'US'){ return; }
2) What error? You need to be specific when asking for help.
Title: Re: FedEx v2.0 - Web Services
Post by: building252 on December 08, 2011, 14:43:07 pm
Hi Reggie,

I was curious what is the best way of utilizing your USPSv5 and FedexV2 together? Since both of these modify Virtuemarts core files, I'm not sure how I can go about using. The files that I have questions about are:
ps_product.php
ps_config.php
admin.show_cfg.php
product.product_form.php

Do you have a package that combines both of these shipping features together?

Thanks
John
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 08, 2011, 14:51:11 pm
John,
I do have a package for vm119 that has FedExv2, UPSv2, and USPSv5 merged together.  It is largely untested, but the bundling/unbundling and shipping modifier features ARE tested and working.

Email me if you'd like a copy to test.
Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: bjk03 on February 08, 2012, 18:51:47 pm
I am using Joomla 1.5.21 and Virtuemart 1.1.4. I installed the FedEx Web services module for 1.1.4 some time ago. Now when i look at the configuration this is what I see. What can I do about it?

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 08, 2012, 19:43:33 pm
You've overwritten the language file.  You'll need to merge the fedexv2 language files with whatever updated language files you have installed.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: bjk03 on February 08, 2012, 21:42:51 pm
Ok, got that fixed! Now in step 2 of the checkout process I am getting the message "Notice: No FedEx rates returned." I have a production key already.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 08, 2012, 21:54:52 pm
Debug mode.  Post your findings...
Title: Re: FedEx v2.0 - Web Services
Post by: bjk03 on February 09, 2012, 14:31:21 pm
An error was encountered when requesting FedEx shipping rates.
ERROR
prof
1000
Authentication Failed
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 09, 2012, 14:32:19 pm
Your key/password or other credentials are incorrect.  Try re-entering them.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: bjk03 on February 09, 2012, 14:39:56 pm
Is the web Access key the same thing as the Authentication Key?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 09, 2012, 15:15:35 pm
Yes.
Title: Re: FedEx v2.0 - Web Services
Post by: keyrex on February 14, 2012, 00:38:05 am
John,
I do have a package for vm119 that has FedExv2, UPSv2, and USPSv5 merged together.  It is largely untested, but the bundling/unbundling and shipping modifier features ARE tested and working.

Email me if you'd like a copy to test.
Reggie

hello, I just sent you an email - I'm in the same boat looking to get UPS and fedex playing together.

thx
Title: Re: FedEx v2.0 - Web Services
Post by: bjk03 on February 15, 2012, 16:27:13 pm
Any ideas as to why the rates from the module are less than the rates from the FedEx Rate Finder? Virtuemart says shipping on an item is $6.45 less than what FedEx's site reports.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 15, 2012, 16:41:40 pm
There is a "web discount" that may be the difference.  Read the "Usage" tab for more info.  Also, check your shipping modifier settings.
Title: Re: FedEx v2.0 - Web Services
Post by: bjk03 on February 15, 2012, 16:53:36 pm
Shipping modifier is currently set to 100%. I looked in the usage tab and didn't see anything dealing with a "web discount"
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 15, 2012, 16:57:27 pm
Always post your module version when requesting support.  You're probably using a version before the discovery of the discount, and therefore does not have it documented.
Title: Re: FedEx v2.0 - Web Services
Post by: bjk03 on February 15, 2012, 17:01:00 pm
Sorry about that. I'm using Joomla 1.5.21 Virtuemart 1.1.4, vm114-FedExv2.2010.06.18
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 15, 2012, 17:16:35 pm
Here's the text from the "Usage" tab:

By default, FedEx may discount your rates for using the "Web Services" API.  Although the end user sees this discount, you will not actually receive it unless you also use the Web Services API to create the shipment (and print labels via the API).  The FedExv2 module does not currently support shipment creation, only rate shopping, so you will most likely want to turn this discount off.
To remove the Web Services discount from your rates, simply DO NOT INCLUDE your account number in the module configuration.
Title: Re: FedEx v2.0 - Web Services
Post by: susloff on February 22, 2012, 12:35:18 pm
we run liquor store is there any way to add ADULT SIGNATURE REQUIRED into module
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on February 22, 2012, 15:34:09 pm
If all your products have this requirement, you could do something like this:

find this section of code in fedexv2.php
Code: [Select]
            if ($this->signature_required==true){
            $request['RequestedShipment']['RequestedPackageLineItems']['0']['SpecialServicesRequested'] = array(
            'SpecialServiceTypes' => 'SIGNATURE_OPTION',
            'SignatureOptionDetail' => array(
            'OptionType'=>'DIRECT',
            ),
            );
        }

change it to this:
Code: [Select]
            if (true || $this->signature_required==true){
            $request['RequestedShipment']['RequestedPackageLineItems']['0']['SpecialServicesRequested'] = array(
            'SpecialServiceTypes' => 'SIGNATURE_OPTION',
            'SignatureOptionDetail' => array(
            'OptionType'=>'ADULT',
            ),
            );
        }

This should force the adult signature option for ALL shipments to be considered.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 30, 2012, 03:38:47 am
If you need the extra features that the advanced module offers, you'll need to merge the files together.  Otherwise, use the most basic version (2009.7.20)
Title: Re: FedEx v2.0 - Web Services
Post by: plusplus on March 30, 2012, 04:32:44 am
I'm also running joomla 1.5.25 virtuemart 1.1.9 and install the FedEx 2.0 module (vm118-fedexv2.2011.04.19).

But It says:

Critical: FedExv2: SOAP libraries are not installed!

When I try to configure the shipping module

I found you answer that "Your server is not configured with the SOAP libraries.  This is a requirement for the module to work.".

But I don't know how to do that. Could you tell me by step pls?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 30, 2012, 13:53:24 pm
Talk to your web hosting.  It is a PHP library that needs to be installed.
Title: Re: FedEx v2.0 - Web Services
Post by: plusplus on April 02, 2012, 12:49:03 pm
Talk to your web hosting.  It is a PHP library that needs to be installed.

I'm running on localhost. How can I know if soap libralies installed?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 02, 2012, 12:56:53 pm
You can use the joomla system info tab to view installed libraries, or a phpinfo() script.
Title: Re: FedEx v2.0 - Web Services
Post by: Jennifer Chase on April 13, 2012, 16:13:07 pm
I have installed all files for FedexV2 and ran SQL script.

here is the error:
Error: Invalid FedEx transaction data at `
soapenv:ClientFailure while unmarshalling message: Failed to parse XML text9999Failure while unmarshalling message: Failed to parse XML text'unable to process services_rate

joomla 1.5.25/ VM 1.19

chuck at Fedex said that there should be a field for password. I don't see this in the Shipping Module Configuration: fedex.php.

any new development since 2009?

thanks ahead for any information.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 13, 2012, 16:39:38 pm
The fedex module has fields for four credentials:
key
password
meter
account

Even if you remove one of these credentials, you should get some type of valid reply, such as an authentication error.  The error you are seeing is not a module error.  It is a SOAP error.  Probably what is happening is that some data injected into the marshalled (compressed) xml stream is causing the parser to break.  It may be something as simple as HTTP headers are being returned with the xml (a common issue in other areas that usually breaks XML parsing).  You'll need to get with someone who can view and debug the returned data.
Title: Re: FedEx v2.0 - Web Services
Post by: Jennifer Chase on April 13, 2012, 17:18:17 pm
thanks-
i  reinstalled  fedex v2 module. I configured with appropriate credentials:
production/ key / fedex password/account/ meter
(password is fedex password or Joomla?, I read in a forum a descrepancy, please advise.)
Getting closer can you help me interpret response below?
...
debug response:

.....
Response:
stdClass Object (   
    [HighestSeverity] => ERROR
    [Notifications] => stdClass Object (       
        [Severity] => ERROR
        [Source] => prof
       
Code: [Select]
=> 1000
        [Message] => Authentication Failed
    )
    [TransactionDetail] => stdClass Object (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (       
        [ServiceId] => crs
        [Major] => 9
        [Intermediate] => 0
        [Minor] => 0
    )
)
fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!
Notice: No FedEx rates returned.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 13, 2012, 17:36:16 pm
Well, it's pretty self explanatory  :P  The credentials you entered are incorrect.  Are you in DEVELOPMENT or PRODUCTION Web Services environment? Have you been moved to PROD?
Title: Re: FedEx v2.0 - Web Services
Post by: Jennifer Chase on April 13, 2012, 18:24:20 pm
thanks for the response- It's a relief that it is probably my own error. I will look at fedex to make sure I have been moved to production there. I have production pull down selected at module.  :o
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 13, 2012, 18:44:07 pm
No problemo...I know they used to provide a link to be moved to PROD in the email when you sign up.
Title: Re: FedEx v2.0 - Web Services
Post by: Jennifer Chase on April 13, 2012, 19:02:56 pm
i spoke with fedex and they assured mt that I am certified for production with my creds. Where do I check the address that fedexv2 uses when the pull  down selection is "production". I noticed the previous module had this as an input field. I think your right about crossing streams and it is pointing to development when I am supplying production credentials. can I send you a screen shot, I don't want to post client information here.

thank you
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 13, 2012, 19:10:37 pm
The URL is handled by the wsdl file.   There is NO need to edit it.  When you choose "Production" from the dropdown, the module switches to the production WSDL.  You can confirm by using the debug options in the module. It's probably your Web Services key, password, or other credential.  Make sure you're using the correct one.  The key is about 16 alphanumerical chars long, and the password is much longer.
Title: Re: FedEx v2.0 - Web Services
Post by: Jennifer Chase on April 13, 2012, 19:18:38 pm
i definitely have the wrong password if it is as long as you say. hmmm
thanks again for your help, i think you rock
Title: Re: FedEx v2.0 - Web Services
Post by: NorCalTruck on April 26, 2012, 22:58:16 pm
First I would like to say THANK YOU!! After literally months of our shipping not working through the site, were actually getting shipping rates.

It has gotten so bad that the owner of the company has decided to do away with an open source store and move on to another platform. Its been very frustrating.

The new store will not be completed for at least another month so we still need to use what we have and I had a few questions.

Joomla 1.5.22
VMart 1.1.3
and FEDEX2 Version 2.0.200.07.20

I cant seem to find an update for this, are there any available that will work?
Is there any way to enable FREE ground shipping on certain products?


Thank You,
Brian
Title: Re: FedEx v2.0 - Web Services
Post by: NorCalTruck on April 27, 2012, 00:16:03 am
Switched over from development to production mode and the shipping prices are gone...awesome!!...What part of the debug report do I paste in here?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 27, 2012, 03:10:48 am
Hi,
Were you moved to production? Did you receive the new credentials? Did you plug those new credentials in?

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: NorCalTruck on April 27, 2012, 16:42:41 pm
Yes, We were moved to production.

Received authentication key, production pass, our acct # and meter number.....
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on April 27, 2012, 17:12:06 pm
OK, that version doesn't have simple debug configuration options, you'll have to uncomment some lines.  Go to fedexv2.php, around line 325 and uncomment this:

Code: [Select]
//echo "The FedEx Request was: <br />".fedexv2::pretty_print(print_r($request,true))."<br />";so it looks like this:

Code: [Select]
echo "The FedEx Request was: <br />".fedexv2::pretty_print(print_r($request,true))."<br />";
Then do the same thing on line 330:
Code: [Select]
// echo "<br/>The FedEx Response was: <br />".fedexv2::pretty_print(print_r($response,true))."<br />";
Post your results here, be sure to remove and credentials from the request.
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 17, 2012, 07:30:50 am
Hi Reggie,

Thank you for the module / plugin for this FedEx, i ve got some problem.
I am using the latest FedEx 2011, Joomla 1.1.8

got this error message.

"Notice: No FedEx rates returned."

I got all the credentials for Development and Production environment.

I have tested both in development and production environment.
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 17, 2012, 11:48:04 am
Fedex only reply

Would you check the URL you specified in joomla?  We checked the status of your testing credential and found no new transaction.  The URL should be https://wsbeta.fedex.com:443/web-services.  Thanks.

 :( :( :( :( :(
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 17, 2012, 15:17:55 pm
Configure the module to show extra debug info.  Configure VirtueMart to debug mode.  Run the checkout again as an administrator.  You should get more specific error information.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: jbingen on May 17, 2012, 17:56:17 pm
We have VirtueMart 1.1.8 and I have downloaded the v2 plugin

I am a new user just looking at the ReadMe File step 2:
2) Unpack and copy the files from the archive, mirroring the directory structure.

I have unpacked the files but what directory do I upload them the web server?  What directory structure do I want to mirror? Or do I just install the zip file as a modular?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 17, 2012, 18:25:16 pm
Your joomla and virtuemart directory structure on the server is mirrored by the structure contained within the archive, assuming you start in the joomla root directory.  Upload the files into the same location as they are in the archive.  You have something like (joomla root)/administrator/components/com_virtuemart/.  Be sure that you put the files in the archive in the same place on your live server as they are in the archive.  I cannot tell you where your joomla root directory is, as that varies from server to server.

I'm not sure how else to explain it.
Title: Re: FedEx v2.0 - Web Services
Post by: jbingen on May 17, 2012, 18:54:50 pm
lowmips thanks for the fast response.  Then just overwrite all the existing files? 
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 17, 2012, 18:59:06 pm
I would recommend backing them up, renaming them, or doing some other manner of recovery preparation should you need to revert any changes.
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 18, 2012, 03:37:57 am
Hi Reggie,

when i did right click and open firebug under mozilla firefox, i couldnt find any error / warnings.

i did right click exactly at the error message.

Where should i suppose to do the right click?

how to configure and run it as administrator? sorry, i am not too understand, i am newbie in programming.  :-[

my website link is fixall.com.sg/onlineshop
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 18, 2012, 03:48:25 am
arcimo89,
Firefox debug is not what you need to use.

Again, put VirtueMart into VIRTUEMART debug mode.
Put the shipping module into debug mode by configuring the "show extra debug info" option in the module configuration.

Run your checkout while logged in as a JOOMLA administrator.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 18, 2012, 04:00:12 am
oh ok. I got it.

Here is the error message.

Fedexv2: using residential delivery
FedExv2: not using signature option
fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 18, 2012, 04:08:08 am
Fedexv2: using residential delivery
FedExv2: not using signature option
class.Shipment::addPackage() Adding a new bundled package
class.Shipment::addPackage() - Package Number: 1
class.Shipment::addPackage() - Package is Bundled
class.Shipment::addPackage() - Maxweight: 30.00
class.Shipment::addPackage() - Shipping Info - Country: SG State: - ZIP: 419975
class.Package::addItem() - ***** Adding item 178 (STARIUS 6D Optical Gaming Mouse) to package #1 *****
fedexv2::get_rates_array() - Skipping dimensions
Request:
Array (   
    [WebAuthenticationDetail] => Array (       
        [UserCredential] => Array (           
            [Key] =>
            [Password] =>
        )
    )
    [ClientDetail] => Array (       
        [AccountNumber] =>
        [MeterNumber] =>
    )
    [TransactionDetail] => Array (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (       
        [ServiceId] => crs
        [Major] => 9
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => SGD
    [ReturnTransitAndCommit] => 1
    [RequestedShipment] => Array (       
        [DropoffType] => BUSINESS_SERVICE_CENTER
        [PackagingType] => YOUR_PACKAGING
        [ShipTimestamp] => 2012-05-18T02:07:27+00:00
        [Shipper] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => -
                [PostalCode] => 419975
                [CountryCode] => SG
            )
        )
        [Recipient] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => -
                [PostalCode] => 41975
                [CountryCode] => ID
                [Residential] => 1
            )
        )
        [RateRequestTypes] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackageLineItems] => Array (           
            [Weight] => Array (                   
                    [Value] => 0.2268
                    [Units] => KG
                )
                [ItemDescription] => VirtueMart Order
            )
        )
    )
)
SoapFault caught: Error! An exception was caught:SSL support is not available in this build

fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 18, 2012, 04:16:24 am
Here's your problem:
Quote
SoapFault caught: Error! An exception was caught:SSL support is not available in this build

Your server must have SSL capabilites for PHP.

Also, I've removed the sensitive credentials from the debug output.  Never, ever post your credentials like that to a public forum.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 18, 2012, 04:29:03 am
Hi Reggie,

Thank you for the information.
I will try check with our server hosting then.

Thank you for removing my credentials, as i did not know about it. :-[
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 18, 2012, 04:34:45 am
Hi reggie,

according to phpinfo()
I've got this information.

IMAP c-Client Version   2004
SSL Support   enabled

Any other information that need to check?
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 18, 2012, 05:24:05 am
Here is the reply from support of my web hosting.

This SSL is to be enabled on the hosting setup.
It would depend if you will be using a valid SSL certificate or a self-signed certificate.
To check with you, from which application are you going to use this SSL?
If it requires valid SSL certificate, you can purchase from our online store.

So, is it need valid SSL certificate?

Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 18, 2012, 13:42:37 pm
You do not need an SSL cert.  FedEx does not connect to you, you connect to FedEx.

I cannot tell you what to do at this point.  Your provider and phpinfo say you have SSL, but the FedEx API bombs out saying it does not.

Make sure that in your phpinfo, under registered streams you see https, and under registered stream socket transports you see ssl, sslv2, sslv3.
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 19, 2012, 03:27:00 am
Hi Reggie,

in my phpinfo, i ve only got this information.

Registered PHP Streams   php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports   tcp, udp

i will check our provider then. i will ask them how i can get https, ssl, sslv2, sslv3
Thank you.
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 21, 2012, 03:37:20 am
Hi Reggie,

I have all this information

Registered PHP Streams   php, file, data, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports   tcp, udp, ssl, sslv3, sslv2, tls

but i found the same problem. No more this error "SoapFault caught: Error! An exception was caught:SSL support is not available in this build"  :( :(

Fedexv2: using residential delivery
FedExv2: not using signature option
class.Shipment::addPackage() Adding a new bundled package
class.Shipment::addPackage() - Package Number: 1
class.Shipment::addPackage() - Package is Bundled
class.Shipment::addPackage() - Maxweight: 30.00
class.Shipment::addPackage() - Shipping Info - Country: SG State: - ZIP: 419975
class.Package::addItem() - ***** Adding item 178 (STARIUS 6D Optical Gaming Mouse) to package #1 *****
class.Package::addItem() - ***** Adding item 178 (STARIUS 6D Optical Gaming Mouse) to package #1 *****
fedexv2::get_rates_array() - Skipping dimensions
Request:
Array (     
    [WebAuthenticationDetail] => Array (         
        [UserCredential] => Array (             
            [Key] =>
            [Password] =>
        )
    )
    [ClientDetail] => Array (         
        [AccountNumber] =>
        [MeterNumber] =>
    )
    [TransactionDetail] => Array (         
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (         
        [ServiceId] => crs
        [Major] => 9
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => SGD
    [ReturnTransitAndCommit] => 1
    [RequestedShipment] => Array (         
        [DropoffType] => BUSINESS_SERVICE_CENTER
        [PackagingType] => YOUR_PACKAGING
        [ShipTimestamp] => 2012-05-21T01:32:22+00:00
        [Shipper] => Array (             
            [Address] => Array (                 
                [StateOrProvinceCode] => -
                [PostalCode] => 419975
                [CountryCode] => SG
            )
        )
        [Recipient] => Array (             
            [Address] => Array (                 
                [StateOrProvinceCode] => -
                [PostalCode] => 41975
                [CountryCode] => ID
                [Residential] => 1
            )
        )
        [RateRequestTypes] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackageLineItems] => Array (             
            [Weight] => Array (                     
                    [Value] => 0.4536
                    [Units] => KG
                )
                [ItemDescription] => VirtueMart Order
            )
        )
    )
)
Response:
stdClass Object (     
    [HighestSeverity] => WARNING
    [Notifications] => stdClass Object (         
        [Severity] => WARNING
        [Source] => crs
       
Code: [Select]
=> 556
        [Message] => There are no valid services available.
        [LocalizedMessage] => There are no valid services available.
    )
    [TransactionDetail] => stdClass Object (         
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (         
        [ServiceId] => crs
        [Major] => 9
        [Intermediate] => 0
        [Minor] => 0
    )
)
fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 21, 2012, 03:40:47 am
Hi,
check the fedex shipping guide to ensure that fedex will ship to/from the selected countries.  if they do, you'll want to contact a fedex web services representative with the issue.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 21, 2012, 03:47:59 am
Hi Reggie,

Thank you for helping me.
Let me try to contact fedex.
I will update you again later.

May i know, how to check The URL https://wsbeta.fedex.com:443/web-services for development and for the production ? which file is it?

Regards,
arcimo89
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on May 21, 2012, 04:04:12 am
The url is defined in the wsdl.  There is no need to change it.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on May 21, 2012, 04:05:46 am
oh ok.
Thanks.

arcimo89
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on June 01, 2012, 10:42:01 am
Dear Reggie,

I still got this problem.

Last time, development environment is already working.
Then, I checked with FedEx Singapore, they said, they never receive any transaction based on my credentials.
If it was worked, i received the rates too, means all ok, isn't it?

Then, FedEx Singapore asked me to change credential with another testing credentials again, because they said they never receive transaction even we have got the rates already.

Now, after i changed new credentials, all not working, the same problem again.

They said API environment poiting to the wrong address.

Can you advise something ?

Thank you so much again. :-[

Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 01, 2012, 13:28:56 pm
Hi,
I don't know what to tell you. The URL is defined in the wsdl files, and should not be changed.  You can open the file with a text editor to verify the URL, look down at the bottom.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on June 02, 2012, 03:05:56 am
Hi Reggie,

Thank you for your help.

I will ask fedex help first, then i will update you for any other problem since you were the one who developed it.
Thank you.
 ;D ;D
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on June 12, 2012, 05:13:52 am
Hi Reggie,

Do you mind to tell me, where can i get the XML transaction that created from virtuemart to FedEx ?

Thank you.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on June 12, 2012, 20:53:04 pm
You can see the data being sent by dumping the $request variable in the get_rates_array function of fedexv2.php.  You can see the request by dumping the $response variable.  To view the actual data sent and received, you'll have to interrogate the SoapClient class using the __getLastRequest and __getLastResponse functions.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: arcimo89 on June 15, 2012, 03:40:40 am
Hi Reggie,

Would you mind to clarify with me for the steps?
Since i am not too familiar with coding. :( :(

Thanks.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on July 31, 2012, 16:52:25 pm
**** UPDATE ****

vm119-lowmips.2011.08.22 public release
Includes UPSv2, USPSv5, and FedExv2, all ported to vm119 code.
Download from my website, under "Free Software", "Shipping", then "Other" (http://www.lowmips.com/joomla/free-software/category/7-other).
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 13, 2012, 19:16:00 pm
Thanks again for this module!!...I have a problem, here is the url: http://www.anthonyskeyshops.com/

Test Login-
User: frank
Pass: tester

Debug info:
Debug: Using existing Session 27074a7b6b5b8901ae403443333c5dd2, ID: eea9eeb4703cf9891cfffc6133c8aff9.
Debug: calculating tax based on shipping address

Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: Using user-defined max weight of 31.75
Notice: No FedEx rates returned.

Note: I have all of the shipping options checked, also got same error with only 5 options checked.

If you choose the test product under "Men" (orange image) then you will be able to reproduce this problem. I am running Joomla 1.5.23 & VM 1.1.9

Thanks for any help you can provide
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 13, 2012, 19:18:44 pm
Which version of the module?

Try using the "show extra debug info" option of the module, as well as VirtueMart debug mode....both will provide more info as to what is going wrong.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 13, 2012, 19:25:22 pm
Wow, impressively fast response! Thanks.

Module version: vm119-lowmips.2011.08.22.zip

All debug info:

Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: using residential delivery
Debug: Fedexv2: Using user-defined max weight of 31.75
Debug: FedExv2: not using signature option
Debug: class.Shipment::addPackage() Adding a new bundled package
Debug: class.Shipment::addPackage() - Package Number: 1
Debug: class.Shipment::addPackage() - Package is Bundled
Debug: class.Shipment::addPackage() - Maxweight: 31.75
Debug: class.Shipment::addPackage() - Shipping Info - Country: HN State: - ZIP:
Debug: class.Package::addItem() - ***** Adding item 117 (Test Product) to package #1 *****
Debug: fedexv2::get_rates_array() - Skipping dimensions
Debug: fedexv2::get_rates_array() - using cached rates
Debug: fedexv2::get_package_rates() - ERROR - get_package_rates: get_rates_array() failed!
Debug: fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!
Notice: No FedEx rates returned.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 13, 2012, 19:33:53 pm
You have selected some shipping services in the module config?

Are you logged in as an admin? If not, do so, so that you'll get the full request/reply as well.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 13, 2012, 19:52:58 pm
Note: All of the options were checked in shipping module.
Here is all of the debug info with an admin login:

Attached txt file has info...

These 2 options showed up under debug info too:
FedEx International Economy ($82.21)
FedEx International Priority ($90.65)

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 13, 2012, 20:07:57 pm
That's odd, it shows that INTERNATIONAL_ECONOMY and INTERNATIONAL_PRIORITY were successfully parsed out of the reply, and that the rates were cached.  This may require a debugging session to fix.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 13, 2012, 22:55:04 pm
I just found out my client input her store with her Honduras address! I am waiting for her to provide the USA address so I can test it. I will let you know. Could this be the problem?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 13, 2012, 22:56:31 pm
Maybe, but I'm more concerned with the fact that all services were checked, two services were returned, but the module did not pick them up.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 13, 2012, 23:06:16 pm
Unfortunately adding the US address did not resolve anything. With debug off I still get:
"Notice: No FedEx rates returned."
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 13, 2012, 23:08:53 pm
I'd have to do a debug session to find the problem.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 13, 2012, 23:10:44 pm
I understand, debug is back on with extra options in module too;-)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 13, 2012, 23:13:51 pm
I mean something a little more in-depth.  An inspection of your installation, possibly some custom debug edits to figure out what's going wrong.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 14, 2012, 00:55:27 am
Just let me know how I can help? I can give you access to what you need when you need it;-)
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 14, 2012, 01:36:30 am
OK, email me ftp and joomla admin credentials please.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 14, 2012, 01:55:37 am
Email sent;-)
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 15, 2012, 22:28:44 pm
Hi, Reggie -

I'm having a slight problem with vm119-lowmips.2011.08.22 (Joomla 1.5.26 & VM 1.19)

Your lowmips language file is not loading for me in this file - fedexv2.config.tmpl.php.

I have double checked the files (english.php and fedexv2.config.tmpl.php) and they are intact. The language file loads fine for USPv2 and UPSPv5. Also (if it helps) I have installed this same vm119-lowmips module on a different site, which is in a development environment, and the lowmips language file loads fine everywhere for that site.

Do you have any ideas?

Thanks,
Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 15, 2012, 22:39:14 pm
That's a strange one Vicki.  Try doing this, open that file and change these lines:
Code: [Select]
global $VM_LANG;
$VM_LANG->load("lowmips");

to this:
Code: [Select]
global $VM_LANG, $vmLogger;
if($VM_LANG->load("lowmips")===false){
$vmLogger->err('Failed to load lowmips language file');
}

this should tell if at least if it thinks it is loading the file or not.
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 16, 2012, 01:19:31 am
Hi, Reggie -

I changed the code and I did indeed get "Error: Failed to load..."

Please let me know if you need any more info. I can hardcode the language strings if I need to (and then make sure everything else is working) but I thought you might have seen the issue before.

Thanks,

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 16, 2012, 02:37:08 am
That's a weird one... it works everywhere else? Are you sure the permissions on the file are OK?
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 16, 2012, 07:34:19 am
Yes, checked permissions, too. They are OK. I have an older site using an older version of FedExv2 also, and I noticed the same thing on that site, too (but didn't pursue it because I already had all the keys, etc. set up and everything was working corrctly so it was no issue).

PM me if you want and I will send you more info in about 8 hours... or if you don't want to delve into it I can just hard-code the language strings and can let you know if I find any other issues.

Thanks!

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 16, 2012, 13:38:12 pm
Vicki, go ahead and do the hard coded strings.
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 16, 2012, 22:41:22 pm
Hi, Reggie -

I was wrong earlier - the UPSv2 and USPSv2 modules aren't seeing the language file either.  But it was all easy to correct by pasting the lowmips language lines into common/english.php.

I have run into one other problem, so far -- I'm getting a syntax error (unexpected $end) on account.order_details.tpl.php

Thanks,

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 16, 2012, 23:20:12 pm
line 183, delete this:

Code: [Select]
<?php if ( $PSHOP_SHIPPING_MODULES[0] != "no_shipping" && $db->f("ship_method_id")) { ?>
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 18, 2012, 00:32:59 am
lowmips, were you able to take a look at my problem? My client is getting on my case pretty bad! Do I need to turn anything on?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 18, 2012, 03:00:55 am
servicefly: Yes, and your reply was "Thanks I'll keep you informed".
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 21, 2012, 22:14:30 pm
Hi, Reggie -

Thank you for the earlier fix for account.order_details.tmpl.php -- I have not tested thoroughly but believe that should fix the error.

Meanwhile.... I'm getting a No FedEx rates returned error. Turned on max debugging and see this:
Code: [Select]
Request:
Array (   
    [WebAuthenticationDetail] => Array (       
        [UserCredential] => Array (           
            [Key] => (thiskey)
            [Password] => (thispassword)
        )
    )
    [ClientDetail] => Array (       
        [AccountNumber] => (thisaccountnumber)
        [MeterNumber] => (thismeternumber)
    )
    [TransactionDetail] => Array (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => Array (       
        [ServiceId] => crs
        [Major] => 9
        [Intermediate] => 0
        [Minor] => 0
    )
    [CurrencyType] => USD
    [RequestedShipment] => Array (       
        [PackagingType] => YOUR_PACKAGING
        [ShipTimestamp] => 2012-08-21T20:02:21+00:00
        [Shipper] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => TN
                [PostalCode] => 92630
                [CountryCode] => US
            )
        )
        [Recipient] => Array (           
            [Address] => Array (               
                [StateOrProvinceCode] => TN
                [PostalCode] => 37122
                [CountryCode] => US
                [Residential] => 1
            )
        )
        [RateRequestTypes] => LIST
        [PackageCount] => 1
        [PackageDetail] => INDIVIDUAL_PACKAGES
        [RequestedPackageLineItems] => Array (           
            [0] => Array (               
                [Weight] => Array (                   
                    [Value] => 25
                    [Units] => LB
                )
                [ItemDescription] => VirtueMart Order
            )
        )
    )
)
Response:
stdClass Object (   
    [HighestSeverity] => ERROR
    [Notifications] => stdClass Object (       
        [Severity] => ERROR
        [Source] => prof
        [Code] => 1000
        [Message] => Authentication Failed
    )
    [TransactionDetail] => stdClass Object (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (       
        [ServiceId] => crs
        [Major] => 9
        [Intermediate] => 0
        [Minor] => 0
    )
)

The only thing I can tell from this info is that the state TN does not match the zip code 92630 in the RequestShipment array. Does this mean our client has their shipping address set up wrong in their FedEx acct. - or is the error more likely caused by an incorrect key or password? The keys have apparently been generated on their end multiple times, so I am using the latest Test key info they provided (and Developer setting in module dropdown).

Thank you!

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 21, 2012, 22:17:46 pm
Vicki, be sure that you've selected the correct environment (PROD or DEV).   If you're using the 2009.7.20 version be sure to rename the wsdl.
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 22, 2012, 00:29:59 am
Hi, Reggie -

I'm using the 2011.8.22 version. I have "Developer" selected in the dropdown, since the keys, numbers & password I was sent are for the Testing environment.

Do you think the odd zip code might be an issue? Or if the client possible generated Production keys, wouldn't that render all the Test info invalid? The client is not sure what he's done and I'm at a loss for why this isn't working... I have an earlier version of your FedExv2 working great on another site.

Thanks again,
Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 22, 2012, 00:31:27 am
it's not a zip code issue...it's definitely an authentication issue.  be sure to confirm with the client that all of the credentials are correct.  I believe they can re-register to obtain new ones, if necessary.
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 22, 2012, 01:01:31 am
Thank you - I will pass along to the client and have them try to re-register.

I do have a quick (I hope) question about FedEx tracking numbers. As I understand it, the tracking number has to be entered manually into the order in the backend (which can then be emailed to the customer). Have you ever modified this process so that the tracking number gets added automatically? I know that it might be quite complicated, but if you have done it before or can think of how it could be set up, please PM me a quote.

Thanks again,

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 22, 2012, 01:55:13 am
Vicki,
Last time I quoted someone to add in the automatic shipment creation and tracking number solutions, it was quite a big job.  I still want to do it, but it is a matter of finding the time.  I'll most likely add it to fedexv2 for VM2, whenever that gets done.

Sorry for the delay, I'm just really swamped right now!
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 22, 2012, 17:28:19 pm
Hi, Reggie -

Thanks for the response. Shipment & tracking may be something we can add in later then, after we take the project live.

Meanwhile, I have still not being able to get the module to connect to the account. The client re-registered for web services and I plugged in the new password - I also thought to try the default VM FedEx module - and it is failing, too (so the fault is definitely not with your v2 module).

Here are the errors I get with the default module - do they indicate specifically what the problem is?
Error: Invalid FedEx transaction data at `
soapenv:ClientFailure while unmarshalling message: Failed to parse XML text9999Failure while unmarshalling message: Failed to parse XML text'unable to process services_rate

Thanks - sorry to keep bothering!

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 22, 2012, 17:33:04 pm
Vicki,
The default modules uses the old FedExDC method, which is completely incompatible with FedEx Web Services, and as far as I know has been disabled.  It was deprecated soon after the Web Services API was brought to life.

Did you try using the Production credentials?

Quote
The client re-registered for web services and I plugged in the new password
Be sure you enter ALL new credentials, not just the password.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 22, 2012, 18:32:07 pm
Hi, again -

The other credentials (Developer Test Key, Test Account Number, and Test Meter Number) were the same as they had been previously. The only thing that had changed was the Password that was emailed to the client.... ???? (This has really got me puzzled.)

To use Production credentials, we will need to click "Obtain Production Key" -- then a new password will be emailed to the client, right? I will try that, since the Test keys just do not seem to be working. (I did see a notice that the FedEx testing server could experience "outages" -- so maybe that's what's happening.)

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 22, 2012, 18:35:37 pm
Reggie -

I've hit a glitch - when I tried to move the web services account to Production (I have access to client's FedEx account now) I hit a screen that wanted all of the client contact info entered - so, it seems I will need the client to do this step?

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 22, 2012, 19:16:21 pm
Sounds like it Vicki.
Title: Re: FedEx v2.0 - Web Services
Post by: servicefly on August 22, 2012, 23:10:13 pm
I am assuming you found nothing wrong on the www.A*******K**S****.com website for your Fedex module? I starred out the domain due to privacy. I could really use your help! Thanks in advance Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: Vicki Payne on August 30, 2012, 00:31:11 am
Sounds like it Vicki.

Hi, Reggie - just wanted to let you know I finally got the FedEx acct. connected and your module is working great (after having to regenerate the access key about 3 times - go figure). I'm also using your UPS shipping module on a different site and that's returning rates fine, too.

Both sites using your bundled (FedEx, UPS, USPS) module for VM 1.1.9

Thanks for a great product and wonderful support!

Vicki
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on August 30, 2012, 00:37:27 am
Glad to hear it, thanks for reporting!
Title: Re: FedEx v2.0 - Web Services
Post by: gpraceman on November 12, 2012, 19:42:05 pm
I've got the files uploaded and SQL changes made, but I do not see anything in the Shipping Module List for this.  What am I missing?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on November 12, 2012, 19:45:47 pm
I've got the files uploaded and SQL changes made, but I do not see anything in the Shipping Module List for this.  What am I missing?

If the files are uploaded, it should be showing.   Are you sure you put the files in the right place?  Sometimes people accidentally upload to a test website instead of the live site, perhaps that is it?
Title: Re: FedEx v2.0 - Web Services
Post by: gpraceman on November 12, 2012, 19:51:50 pm
If the files are uploaded, it should be showing.   Are you sure you put the files in the right place?  Sometimes people accidentally upload to a test website instead of the live site, perhaps that is it?
I am trying to test everything on my test site first, which is were I have uploaded the files.  I see FedEXdc listed but no FexExV2.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on November 12, 2012, 19:55:25 pm
Maybe its a read rights issue?  check your file perms.
Title: Re: FedEx v2.0 - Web Services
Post by: gpraceman on November 12, 2012, 20:22:14 pm
Maybe its a read rights issue?  check your file perms.
I think that problem is that my test site is on a subdomain.  Some of the links in the admin console point to the production site.  Not sure why.
Title: Re: FedEx v2.0 - Web Services
Post by: gpraceman on November 12, 2012, 20:53:18 pm
Actually, I fixed the subdomain link issue, but still no listing for FedExV2 is showing up in the Shipping Modules List nor on the Shipping tab of the VM Configuration. Ideas?
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on November 12, 2012, 20:54:44 pm
Sorry, none here.
Title: Re: FedEx v2.0 - Web Services
Post by: gpraceman on November 13, 2012, 00:04:26 am
Unfortunately, I was not able to use my test site for this, so I am trying to get it working on the production site.  However, I see a couple of problems. 

1) When I go to configure the module, nothing is displayed on the Config tab.

2) When going through checkout, on the shipping page, I am getting this error:

Fatal error: Call to a member function addItem() on a non-object in /home/gpsc/public_html/administrator/components/com_virtuemart/classes/shipping/fedexv2.php on line 1055
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on November 13, 2012, 13:52:42 pm
Sorry, I don't know what to tell you.  The issues sound like missing/unreadable files to me.
Title: Re: FedEx v2.0 - Web Services
Post by: gpraceman on November 14, 2012, 16:56:03 pm
Actually, the problem was that SOAP was not installed.  I would have thought that there would be a warning of such shown on the web page.  Anyways, I got SOAP installed now, so I see the config info.

Now I am getting this error:

SoapFault caught: Error! An exception was caught:Could not connect to host
Title: Re: FedEx v2.0 - Web Services
Post by: motografik on November 14, 2012, 20:44:31 pm
Actually, the problem was that SOAP was not installed.  I would have thought that there would be a warning of such shown on the web page.  Anyways, I got SOAP installed now, so I see the config info.
Yeah never drop the SOAP  :)
Title: Re: FedEx v2.0 - Web Services
Post by: gpraceman on November 15, 2012, 02:04:02 am
Yeah never drop the SOAP  :)
Anyone have a helpful response?

I've double checked that I have my test key, password, account and meter number entered correctly and I still get that error.
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 03, 2013, 00:32:24 am
anyone know if this works with vm 1.2? i just get JInstaller: :Install: Cannot find XML setup file when i try to install it.
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 04, 2013, 13:50:59 pm
anyone know if this works with vm 1.2? i just get JInstaller: :Install: Cannot find XML setup file when i try to install it.
Hey Erik, I emailed you back but since this question may come up again I'll answer here as well.  The module has never been tested on vm1.2 with j2.5, so you'll be in uncharted territory.  Also, the module does not install via the component/plugin installer, it is a manual installation process.  See the README.TXT file in the archive.

Reggie
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 05, 2013, 03:36:13 am
thanks again, i'll post when i have some results  ;)
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 07, 2013, 00:09:04 am
welp, went to import the shipping.sql into the db through mysql. never done this before and got this
Quote
Error
SQL query:

/* * Version 2011.08.22 * Reggie Campbell * * TODO: Make this SQL smarter, especially for upgrades *//* * Product Table Updates */ ALTER TABLE  `jos_vm_product` ADD COLUMN  `additional_service` VARCHAR( 1 ) NOT NULL DEFAULT  'N';


MySQL said:

#1146 - Table 'pacjoom.jos_vm_product' doesn't exist

now cant access the backend of virtuemart :lol: any ideas?
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 07, 2013, 00:27:06 am
reinstalled virtuemart now the shipping modues are in the list but only the default ones seem to be working. guess i better reread this thread
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 07, 2013, 01:50:05 am
welp, went to import the shipping.sql into the db through mysql. never done this before and got this
Quote
Error
SQL query:

/* * Version 2011.08.22 * Reggie Campbell * * TODO: Make this SQL smarter, especially for upgrades *//* * Product Table Updates */ ALTER TABLE  `jos_vm_product` ADD COLUMN  `additional_service` VARCHAR( 1 ) NOT NULL DEFAULT  'N';


MySQL said:

#1146 - Table 'pacjoom.jos_vm_product' doesn't exist

now cant access the backend of virtuemart :lol: any ideas?

is your joomla prefix something other than "jos"? Change all of the sql to reflect this.  You can use a find/replace function in just about any text editor to do so.
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 07, 2013, 02:46:28 am
hmmm yea its mg3zy_ so the mysql import button at the top of the page is the correct way to do this?

wait now i get this
Quote
Error
SQL query:

/* * Version 2011.08.22 * Reggie Campbell * * TODO: Make this SQL smarter, especially for upgrades *//* * Product Table Updates */ ALTER TABLE  `mg3zy__vm_product` ADD COLUMN  `additional_service` VARCHAR( 1 ) NOT NULL DEFAULT  'N';


MySQL said:

#1146 - Table 'pacjoom.mg3zy__vm_product' doesn't exist
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 07, 2013, 03:11:06 am
nevermind i needed to remove the _ i guess
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 07, 2013, 03:38:02 am
Quote
allows for shipments larger than 150lbs (virtual packages)

how does this work? most of our products are in the 250-350 pound range. i need something that will give a rate for those.
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 07, 2013, 03:52:29 am
when i leave my product weight at 350 i get this
(http://i.imgur.com/acE8OZg.jpg)
i'm assuming that's because it weighs too much. but when i change the weight to 35 pounds i get this
(http://i.imgur.com/zGYTtlK.jpg)
whats going on there?

[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 07, 2013, 13:53:12 pm
Those are very heavy products.  Be sure to view each respective carrier's shipping guides to see what they allow.  I'm pretty sure you will not be able to use the modules for your products, due to the high weight.  You can also use the debug options (the modules themselves and VIrtueMart debug) to gain more insight into the issue and see the request/reply.
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 08, 2013, 04:31:37 am
Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: using residential delivery
Debug: Fedexv2: Using user-defined max weight of 70
Debug: FedExv2: not using signature option



i should say in the second image you cant tell but theres no styling or anything clickable. it just kills the site and shows what i posted in the image. 
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 08, 2013, 13:58:32 pm
Debug: Starting Shipping module: fedexv2
Debug: Fedexv2: using production WSDL
Debug: Fedexv2: using residential delivery
Debug: Fedexv2: Using user-defined max weight of 70
Debug: FedExv2: not using signature option



i should say in the second image you cant tell but theres no styling or anything clickable. it just kills the site and shows what i posted in the image. 

If it's a fatal error (white screen of death, or partial screen) then you'll need to tweak your error_reporting settings to see the errors. 
Title: Re: FedEx v2.0 - Web Services
Post by: ICWater on March 10, 2013, 01:36:46 am
how do you tweak error reporting?  :-[
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on March 11, 2013, 14:41:00 pm
how do you tweak error reporting?  :-[

depends on your setup.  you may be able to set Joomla's error reporting, or you may need to edit the .htaccess or php.ini files.  It depends on your hosting's configuration, really.
Title: Re: FedEx v2.0 - Web Services
Post by: vargpr on December 18, 2013, 22:51:45 pm
Running VirtueMart 1.1.9
joomla Version 1.5.23

I Installed the shipping files but when i go to set the password, etc i dont see the words.
Any suggestions?

I have the your UPS module installed and working great.


[attachment cleanup by admin]
Title: Re: FedEx v2.0 - Web Services
Post by: lowmips on December 19, 2013, 15:02:55 pm
The language file is missing.  You may need to merge the UPS and FedEx language files to get language for both.


Running VirtueMart 1.1.9
joomla Version 1.5.23

I Installed the shipping files but when i go to set the password, etc i dont see the words.
Any suggestions?

I have the your UPS module installed and working great.

Title: Re: FedEx v2.0 - Web Services
Post by: vargpr on January 09, 2014, 22:59:18 pm
Hi,
Thank you for the reply.
I actually found an image that shows all the words: so i just followed that and filled in the info.
I was on a rush and under time constrains so i had to improvise.
Thank you again.