【问题标题】:FedEx and Expresso Store IntegrationFedEx 和 Expresso 商店整合
【发布时间】:2012-11-08 21:55:29
【问题描述】:
我正在使用 Expresso 的 Store 和 Expression Engine,但无法让 FedEx 运输插件与我的测试凭据一起使用。我在 FedEx 建立了一个开发者账户,并在 Store Settings 中输入了相应的代码。当我使用示例商店模板进行测试时,我收到一个错误“与运输提供商通信时出错”。
我应该使用 Test Mode = "False" 还是 "True" 进行测试?
【问题讨论】:
标签:
expressionengine
expresso-store
【解决方案1】:
尝试打开store/libraries/store_shipping_fedex.php,在calculate_shipping($order)内的第80行附近,添加以下行:
echo '<pre>'; print_r($response); exit; // add this line
return $this->_parse_response($response);
然后再次运行您的结帐流程(或只需单击“更新总计”)。这应该会打印出 FedEx 的完整回复,这应该有助于诊断您的问题。
如果可能,请使用它返回的响应更新您上面的问题,因为它可能对其他人有帮助。