Qphoria wrote:pesha.cz wrote:Hi,
first of all, thanks for the great extension.
I have just one question, my clients just asked me today, whether the final price includes the fuel surcharge? They already asked the guy in the Fedex and he told 'em, that I am the one who's setting this up...the question is, I do not really see how can I change that.
I guess the prices are with the fuel surcharges included, I'd like to make sure though. I tried to remove the "FUEL" and "FIXED_FUEL_SURCHARGE" from the wsdl just to try, it had no effect at all though. Maybe the fuel surcharge is included automatically for Fedex International Priority that we're using?
Thanks in advance for any hints, been trying to find out for a little while and it's starting to drive me crazy, the Fedex documentation is not helping me at all either :-/
Yes all prices shown are the "total" charge including fuel and surcharges. When FedEx returns the rate data, they give each price separately, and the total. I am using the total for this.
Oh yeah I can see that now. Turned out that clients just kinda messed up and didn't really mean fuel surcharges, but vat. Anyway I just printed the response to the request in firebug and it all makes sense now, thanks a lot for help!
And just for someone who might run into this stuff again in the future, to display the Fedex price without the tax (since it's actually VATed twice then: in the confirmation we've ended up with "(total + fedex) * 1.2 (for vat 20%)", which means the vat is calculated twice from the fedex price; and since in czech republic you don't have to pay taxes for stuff like fedex in some cases, it was not what my clients wanted):
In model in fedex_wsdl_api.php around line 250, just take the amount from the "TotalNetFedExCharge" instead of "TotalNetCharge" part of the fedex reply. Similarly to display it without fuel surcharges and so on (you can just put "print_r($service);" on line 255 of this file temporarily to view the the whole server response in Firebug [after clicking "continue" on step 3 of checkout proccess], and from there you can just copy name of any price you'd like to display).