Magento:设置 FedEx 运输,但用户现在仍然可以使用
已在 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>
因此,它获得了报价,但仍然显示“此运输方式当前不可用。如果您想使用此运输方式运输,请联系我们。”在前端。
接下来去哪里看?
Have set up the FedEx account in Magento, but when trying to checkout I'm getting:
This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.
Found this: http://www.magentocommerce.com/boards/viewthread/6996/P0/
Currency is USD, ZIP is 10033 (looks fine)
They advice:
// find:
$responseBody = curl_exec($ch);
// add:
Mage::log($responseBody);
Tried that, but got no error! Here's the answer:
<?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>
So, it gets the quotes, but still says "This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us." at frontend.
Where to look next?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我已经搞砸了几个小时了,但在我将其发布到此处后立即回答了我自己的问题。
这就是它的全部内容:FedEx 给了我两个条目(请参阅 O-post 中的 XML)。
这里是 GROUNDHOMEDELIVERY 和 FEDEXGROUND。
后端有很多选项:
选定的只有“优先过夜”和“首次过夜”。您没有在答案中列出(请记住,只有 GROUNDHOMEDELIVERY 和 FEDEXGROUND)。我选择了“送货上门”,它在前端显示了报价!
为什么联邦快递不提供所有的幽灵(也许这取决于邮政编码或应该在联邦快递帐户上完成某些操作) - 这是另一个问题。这个就解决了。
Okay, was messing with this for hours, but answered my own question right after I posted it here.
That's what it was all about: FedEx gives me two entries (see XML in O-post).
Here are GROUNDHOMEDELIVERY and FEDEXGROUND.
There's a bunch of options at the backend:
Selected ones were only Priority Overnight and First Overnight. Thy're not listed in answer (remember, only GROUNDHOMEDELIVERY and FEDEXGROUND). I've chosen 'Home Delivery' and it showed the quotes at the frontend!
Why doesn't FedEx doesn't give all the specter (maybe it depends on zip code or something should be done at the FedEx account) - that's another question. This one is solved.
Magento 日志和报告目录。可能是 FedEx 数据格式已更改或 magento 发送了错误的数据。
Magento log and report directory. Might be FedEx data format changed or magento sends wrong data.