已在 Magento 中设置 FedEx 帐户,但在尝试结帐时,我得到:
此送货方式目前不可用。如果您想使用这种运输方式发货,请联系我们。
找到这个: http: //www.magentocommerce.com/boards/viewthread/6996/P0/ 货币是美元,邮编是 10033(看起来不错)
他们建议:
// find:
$responseBody = curl_exec($ch);
// add:
Mage::log($responseBody);
试过了,但没有错误!这是答案:
<?xml version="1.0" encoding="UTF-8"?>
<FDXRateAvailableServicesReply xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ReplyHeader></ReplyHeader>
<Entry>
<Service>GROUNDHOMEDELIVERY</Service>
<Packaging>YOURPACKAGING</Packaging>
<TimeInTransit>1</TimeInTransit>
<EstimatedCharges>
<DimWeightUsed>false</DimWeightUsed>
<BilledWeight>10.0</BilledWeight>
<DiscountedCharges>
<BaseCharge>6.86</BaseCharge>
<TotalDiscount>0.00</TotalDiscount>
<TotalSurcharge>3.24</TotalSurcharge>
<NetCharge>10.10</NetCharge>
<EarnedDiscount>0.00</EarnedDiscount>
</DiscountedCharges>
</EstimatedCharges>
<SignatureOption>NONE</SignatureOption>
</Entry>
<Entry>
<Service>FEDEXGROUND</Service>
<Packaging>YOURPACKAGING</Packaging>
<TimeInTransit>1</TimeInTransit>
<EstimatedCharges>
<DimWeightUsed>false</DimWeightUsed>
<BilledWeight>10.0</BilledWeight>
<DiscountedCharges>
<BaseCharge>6.86</BaseCharge>
<TotalDiscount>0.00</TotalDiscount>
<TotalSurcharge>3.56</TotalSurcharge>
<NetCharge>10.42</NetCharge>
<EarnedDiscount>0.00</EarnedDiscount>
</DiscountedCharges>
</EstimatedCharges>
<SignatureOption>NONE</SignatureOption>
</Entry>
</FDXRateAvailableServicesReply>
因此,它获得了报价,但仍然显示“此运输方式目前不可用。如果您想使用此运输方式运输,请联系我们。” 在前端。
接下来看哪里?