{"id":60724,"date":"2025-04-26T09:03:53","date_gmt":"2025-04-26T01:03:53","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60724\/"},"modified":"2025-04-26T09:03:53","modified_gmt":"2025-04-26T01:03:53","slug":"%e5%90%84%e7%b1%bbzencart%e6%94%af%e4%bb%98%e6%a8%a1%e5%9d%97%e6%b5%81%e7%a8%8b%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60724\/","title":{"rendered":"\u5404\u7c7bzencart\u652f\u4ed8\u6a21\u5757\u6d41\u7a0b\u8be6\u89e3"},"content":{"rendered":"<p> paypal-express \u5feb\u901f\u652f\u4ed8\u6d41\u7a0b\u603b\u7ed3\uff1a&nbsp;<br \/> 1\uff09\u76f4\u63a5\u5728\u8d2d\u7269\u8f66\u9875\u9762\u70b9\u51fb paypal-express\uff0c\u8df3\u8f6c\u5230paypal \u7b2c\u4e09\u65b9&nbsp;<br \/> 2\uff09 \u4ecepaypal\u7b2c\u4e09\u65b9\u9009\u62e9\u5730\u5740\u8fd4\u56de\u5230\u6211\u4eec\u7684\u7f51\u7ad9order information \u9875\u9762\uff0c\u8fdb\u884c\u4e0b\u5355\uff1b<\/p>\n<p> \u9519\u8bef #21853&nbsp;<br \/> [ja\u6d4b\u8bd5\u73af\u5883]paypal\u5feb\u901f\u652f\u4ed8\u5728order information\u9875\u9762\uff0c\u70b9\u51fbcontinue checkout\uff0c\u63d0\u793a\uff1a10001 Transaction failed due to internal error &#8211; Internal Error<\/p>\n<p> \u6b64BUG\u7684\u539f\u56e0\uff1a&nbsp;<br \/> paypal-express\u63a5\u53e3\u95ee\u9898\uff0c\u5728\u5217\u51fa\u8d2d\u4e70\u8be6\u7ec6\u4fe1\u606f\u65f6\uff0c\u53ea\u652f\u6301\u7f8e\u5143<\/p>\n<p> \u4fee\u590d\u65b9\u6cd5\uff1a&nbsp;<br \/> includes\/modules\/payment\/paypalwpp.php&nbsp;<br \/> 1897\u884c\uff1a&nbsp;<br \/> if (DEFAULT_CURRENCY != &#8216;USD&#8217;) {&nbsp;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;zcLog(&#8216;getLineItemDetails 4&#8217;, &#8216;Not using default currency. Thus, no line-item details can be submitted.&#8217;);&nbsp;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return array();&nbsp;<br \/> }&nbsp;<br \/> \u6b64\u79cd\u652f\u4ed8\u65b9\u5f0f\uff0c\u662f\u5148\u4ece\u8d2d\u7269\u8f66\u5b8c\u6210\u652f\u4ed8\uff0c\u7136\u540e\u624d\u5b8c\u6210\u5728\u7f51\u7ad9\u7684\u4e0b\u5355\u3002<br \/> &nbsp;<\/p>\n<p> paypal \u652f\u4ed8\u65b9\u5f0f\u6d41\u7a0b\u603b\u7ed3\uff1a<\/p>\n<p> 1\uff09\u8d2d\u7269\u8f66\u9875\u9762&nbsp;<br \/> 2\uff09order information \u9875\u9762 \uff0c\u9009\u62e9 paypal \u652f\u4ed8\u65b9\u5f0f\uff0c\u63d0\u4ea4\u5904\u7406\u7684\u9875\u9762\uff0c\u4ecd\u7136\u4e3a order information&nbsp;<br \/> 3) order information \u9875\u9762\u63a5\u53d7\u63d0\u4ea4\u8fc7\u6765\u7684\u6570\u636e\uff0c\u8fdb\u884c\u5904\u7406\uff0c\u7136\u540e\u8df3\u8f6c\u81f3&nbsp; index.php?main_page=checkout_process&nbsp;<br \/> 4) checkout_process \u9875\u9762\u4e3b\u8981\u662f\u5bf9\u8ba2\u5355\u7684\u5904\u7406\uff0c\u8ba2\u5355\u7684\u8bb0\u5f55\u5165\u5e93\uff0c\u53d1\u9001new_order \u90ae\u4ef6\uff1b&nbsp;<br \/> \u5728includes\/modules\/pages\/checkout_process\/header_php.php\u4e2d&nbsp;<br \/> &nbsp;&nbsp;&nbsp; $payment_modules-&gt;after_process();&nbsp;<br \/> &nbsp;&nbsp;&nbsp; \u5728\u6bcf\u79cd\u652f\u4ed8\u7684\u7c7b\u4e2d\uff08\u5982\uff1aincludes\/modules\/payment\/paypal.php\uff09\u5728 after_process\u4e2d\u8fdb\u884c\u8be6\u7ec6\u5904\u7406\uff1b&nbsp;<br \/> &nbsp;&nbsp;&nbsp; unset \u6389session\u4e2d\u7684\u4e00\u4e9b\u53d8\u91cf\uff0c\u7f16\u5199\u4f20\u9012\u7ed9\u7b2c\u4e09\u65b9\u7684\u6570\u636e\u7b49\u7b49\uff1b&nbsp;<br \/> 5\uff09\u7b2c\u4e09\u65b9\u5904\u7406\uff0c\u5b8c\u6210\u652f\u4ed8\uff1b&nbsp;<br \/> 6\uff09\u5728\u7b2c\u4e09\u65b9\u7f51\u7ad9\u70b9\u51fb\u8fd4\u56de\uff0c\u8fd4\u56de\u5230checkout_success\u9875\u9762\uff1b<\/p>\n<p> \u6b64\u79cd\u652f\u4ed8\u65b9\u5f0f\u4e5f\u662f\u5148\u5728\u7f51\u7ad9\u4e0b\u5355\uff0c\u7136\u540e\u518d\u5230\u7b2c\u4e09\u65b9paypal\u8fdb\u884c\u652f\u4ed8\uff1b<\/p>\n<p> &nbsp;<\/p>\n<p> GC\u652f\u4ed8\u6d41\u7a0b\u603b\u7ed3\uff1a&nbsp;<br \/> 1\uff09\u8d2d\u7269\u8f66\u9875\u9762&nbsp;<br \/> 2\uff09order information \u9875\u9762\uff0c\u9009\u62e9GC \u652f\u4ed8\u65b9\u5f0f&nbsp;<br \/> 3\uff09gc_billing \u9875\u9762\uff0c\u9009\u62e9\u5361\u7684\u65f6\u5019\uff0cjs \u901a\u8fc7 onchange\u4e8b\u4ef6 \u63d0\u4ea4\u4e00\u4e2aajax \u8bf7\u6c42\uff1bajax \u63d0\u4ea4\u5230GC \u7684\u7b2c\u4e09\u65b9\u5904\u7406\uff0cGC\u5c06\u5904\u7406\u7684\u7ed3\u679c\u8fd4\u56de\u5230\u9875\u9762\uff0c\u5982\u679c\u6210\u529f\uff0c\u5219\u52a0\u8f7d\u9875\u9762\u7684continue \u6309\u94ae\uff0c&nbsp;<br \/> &nbsp;&nbsp; \u5931\u8d25\u7684\u8bdd\uff0c\u9875\u9762\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\uff1b&nbsp;<br \/> 4\uff09\u8fd4\u56de\u6210\u529f\uff0c\u53ef\u4ee5\u6309continue \u6309\u94ae\u7ee7\u7eed\u63d0\u4ea4\uff0c\u5c06\u8ba2\u5355\u7684\u4e00\u4e9b\u4fe1\u606f\uff0c\u4ee5\u53ca\u652f\u4ed8\u7684\u5361\u53f7\uff0c\u6709\u6548\u671f\u4f20\u9012\u7ed9\u7b2c\u4e09\u65b9\uff0c\u5b8c\u6210\u652f\u4ed8\uff1b\u76f4\u63a5\u8df3\u8f6c\u81f3\u7f51\u7ad9\u7684checkout_success \u9875\u9762\uff1b<\/p>\n<p> \u6b64\u79cd\u652f\u4ed8\u65b9\u5f0f\u662f\u5148\u5728\u7f51\u7ad9\u4e0b\u5355\uff0c\u7136\u540e\u518d\u5230\u7b2c\u4e09\u65b9\u5b8c\u6210\u652f\u4ed8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>paypal-express \u5feb\u901f\u652f\u4ed8\u6d41\u7a0b\u603b\u7ed3\uff1a&nbsp; 1\uff09\u76f4\u63a5\u5728\u8d2d\u7269\u8f66\u9875\u9762\u70b9\u51fb paypal-express\uff0c\u8df3\u8f6c\u5230paypal \u7b2c\u4e09\u65b9&nbsp; 2\uff09 \u4ecepaypal\u7b2c\u4e09\u65b9\u9009\u62e9\u5730\u5740\u8fd4\u56de\u5230\u6211\u4eec\u7684\u7f51\u7ad9order information \u9875\u9762\uff0c\u8fdb\u884c\u4e0b\u5355\uff1b \u9519\u8bef #21853&nbsp; [ja\u6d4b\u8bd5\u73af\u5883]paypal\u5feb\u901f\u652f\u4ed8\u5728order information\u9875\u9762\uff0c\u70b9\u51fbcontinue checkout\uff0c\u63d0\u793a\uff1a10001 Transaction failed due to internal error &#8211; Internal Error \u6b64BUG\u7684\u539f\u56e0\uff1a&nbsp; paypal-express\u63a5\u53e3\u95ee\u9898\uff0c\u5728\u5217\u51fa\u8d2d\u4e70\u8be6\u7ec6\u4fe1\u606f\u65f6\uff0c\u53ea\u652f\u6301\u7f8e\u5143 \u4fee\u590d\u65b9\u6cd5\uff1a&nbsp; includes\/modules\/payment\/paypalwpp.php&nbsp; 1897\u884c\uff1a&nbsp; if (DEFAULT_CURRENCY != &#8216;USD&#8217;) {&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;zcLog(&#8216;getLineItemDetails 4&#8217;, &#8216;Not using default currency. Thus, no line-item details can be submitted.&#8217;);&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return array();&nbsp; }&nbsp; \u6b64\u79cd\u652f\u4ed8\u65b9\u5f0f\uff0c\u662f\u5148\u4ece\u8d2d\u7269\u8f66\u5b8c\u6210\u652f\u4ed8\uff0c\u7136\u540e\u624d\u5b8c\u6210\u5728\u7f51\u7ad9\u7684\u4e0b\u5355\u3002 &nbsp; paypal \u652f\u4ed8\u65b9\u5f0f\u6d41\u7a0b\u603b\u7ed3\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60724","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60724"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60724\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}