Magento:设置 FedEx 运输,但现在仍可供用户使用

Posted

技术标签:

【中文标题】Magento:设置 FedEx 运输,但现在仍可供用户使用【英文标题】:Magento: set up FedEx shipping, but it's still now available for users 【发布时间】:2012-01-10 23:42:23 【问题描述】:

已在 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>

因此,它获取了报价,但仍然显示“此运输方式目前不可用。如果您想使用此运输方式运输,请与我们联系。”在前端。

接下来看哪里?

【问题讨论】:

【参考方案1】:

好的,这已经搞砸了好几个小时,但在我把它贴在这里之后就回答了我自己的问题。

这就是全部内容:FedEx 给了我两个条目(请参阅 O-post 中的 XML)。 这里是 GROUNDHOMEDELIVERY 和 FEDEXGROUND。 后端有很多选项:

Priority Overnight
Standard Overnight
First Overnight
2Day
Express Saver
International Priority
International Economy
International First
1 Day Freight
2 Day Freight
3 Day Freight
Ground
Home Delivery
Intl Priority Freight
Intl Economy Freight
Europe First Priority

选择的只有优先过夜和第一夜。您未在答案中列出(请记住,只有 GROUNDHOMEDELIVERY 和 FEDEXGROUND)。我选择了“送货上门”,它在前端显示了报价!

为什么 FedEx 不提供所有的幽灵(可能取决于邮政编码或应该在 FedEx 帐户上做些什么)——这是另一个问题。这个解决了。

【讨论】:

【参考方案2】:

Magento 日志和报告目录。可能是 FedEx 数据格式更改或 magento 发送错误数据。

【讨论】:

以上是关于Magento:设置 FedEx 运输,但现在仍可供用户使用的主要内容,如果未能解决你的问题,请参考以下文章

Magento 运输例外

Magento运输方式到产品页面

Magento:更改现有订单的运输方式

Magento 获得选择的运输和计费方式地址字段

Magento Intraship PDF 创建失败

FedEx向印度运送新冠肺炎关键援助物资