wrong tax calculation
Hello again after struggling with paypal and all the stuff i finaly got everything working transactions are now working but i have notice that the tax are been calculated wrong,
i have added a 1$ product to test now reall purshase
with it im getting the following on my confirm page:
Name Price Quantity Total Test $1.00 1 $1.00 Order Summary
Sub-total $1.00 Shipping $11.20 Tax $5.60 Total: $17.80
Now the only tax rule on my cart was made when i used the checkout wizard and its set up like this (please view image tax1.jpg attached to this post) i also added the shipping rule made by the wizard file shipping-1.jpg,
i called fedex cause i thought their api was calculating the tax value, and they tell us their api does not do tax calculation so now why is it calculating that tax, when i set up everything with the wizard i placed for fedex miami FL and also 0 value declare example, i just cant see from where its getting those values for tax, specially that we are in florida wich tax is 7%, am i missing some settings?:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
//WA eCart (Copyright 2007, WebAssist)
//WA eCart FedEx Shipping - FedEx
$Shipping_SuccessURL = "";
$Shipping_FailureURL = "shipping_failure.php";
$Shipping_Packaging = 0;
$Shipping_PackageArray = array();
$Shipping_PackageIndex = 0;
$Shipping_Counter = 0;
$Shipping_Parameters = array();
$Shipping_Parameters["FedExAccount"] = "xxxxxxxxxx";
$Shipping_Parameters["FedExMeter"] = "xxxxxxxxx";
$Shipping_Parameters["FedExServer"] = "https://gateway.fedex.com:443/GatewayDC";
$Shipping_Parameters["CarrierCode"] = "FDXG";
$Shipping_Parameters["FedExService"] = "FEDEXGROUND";
$Shipping_Parameters["FedExPickUp"] = "REGULARPICKUP";
$Shipping_Parameters["ReturnShipmentIndicator"] = "none";
$Shipping_Parameters["ShipperState"] = "FL";
$Shipping_Parameters["ShipperZip"] = "33186";
$Shipping_Parameters["ShipperCountry"] = "US";
$Shipping_Parameters["ShiptoState"] = "".((isset($_POST["shipping_state_province"]))?$_POST["shipping_state_province"]:"") ."";
$Shipping_Parameters["ShiptoZip"] = "".((isset($_POST["shipping_postcode"]))?$_POST["shipping_postcode"]:"") ."";
$Shipping_Parameters["ShiptoCountry"] = "".((isset($_POST["shipping_country"]))?$_POST["shipping_country"]:"") ."";
while (($Shipping_Packaging == 1 && !$SofiShop->EOF()) || ($Shipping_Packaging == 0 && $Shipping_Counter == 0)) {
if (WA_eCart_FedEx_IsTrueValue("true")) {
$Shipping_PackageArray[] = array();
$Shipping_PackageIndex = sizeof($Shipping_PackageArray)-1;
$Shipping_PackageArray[$Shipping_PackageIndex]["eCart_Quantity"] = (($Shipping_Packaging == 1)?$SofiShop->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["IsPackage"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["Quantity"] = "1";
$Shipping_PackageArray[$Shipping_PackageIndex]["DeclaredValue"] = "0";
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "LBS";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".$SofiShop->DisplayInfo("TotalWeight") ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageType"] = "YOURPACKAGING";
$Shipping_PackageArray[$Shipping_PackageIndex]["SizeUnits"] = "IN";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageLength"] = "".$SofiShop->DisplayInfo("length") ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWidth"] = "".$SofiShop->DisplayInfo("width") ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageHeight"] = "".$SofiShop->DisplayInfo("height") ."";
//Special Services
$Shipping_PackageArray[$Shipping_PackageIndex]["RESIDENTIALDELIVERY"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["RESIDENTIALPICKUP"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["INSIDEDELIVERY"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["INSIDEPICKUP"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["SATURDAYDELIVERY"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["SATURDAYPICKUP"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["HOLDATLOCATION"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["DRYICE"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["DANGEROUSGOODS"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["HOMEDELIVERYTYPE"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["SIGNATUREREQUIRED"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["AOD"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["AUTOPOD"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["NONSTANDARDPACKAGE"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["COD"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["CODCOLLECTAMOUNT"] = "";
$Shipping_PackageArray[$Shipping_PackageIndex]["CODCOLLECTTYPE"] = "";
}
$Shipping_Counter++;
if ($Shipping_Packaging == 1) $SofiShop->MoveNext();
}
if ($Shipping_Packaging == 1) $SofiShop->MoveFirst();
$Shipping_Result = WA_eCart_FedEx_GetRateQuote($SofiShop, $Shipping_Parameters, $Shipping_PackageArray);
if ($Shipping_Result && $Shipping_SuccessURL != "")
$SofiShop->redirStr = $Shipping_SuccessURL;
else if (!$Shipping_Result && $Shipping_FailureURL != "") {
Header("Location: " . $Shipping_FailureURL); exit;
}
}
else if (!isset($_SESSION["SofiShop_FedEx_Success"])) {
WA_eCart_FedEx_SetSessionDefaults($SofiShop);
}
?>
need help again sorry :confused: just at the final stage of this.