{"id":60492,"date":"2025-04-24T11:26:14","date_gmt":"2025-04-24T03:26:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60492\/"},"modified":"2025-04-24T11:26:14","modified_gmt":"2025-04-24T03:26:14","slug":"%e5%9c%a8ecshop%e5%90%8e%e5%8f%b0%e7%9a%84%e8%ae%a2%e5%8d%95%e8%af%a6%e6%83%85%e9%a1%b5%e6%98%be%e7%a4%ba%e6%9c%ac%e5%8d%95%e5%95%86%e5%93%81%e6%80%bb%e6%95%b0-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60492\/","title":{"rendered":"\u5728Ecshop\u540e\u53f0\u7684\u8ba2\u5355\u8be6\u60c5\u9875\u663e\u793a\u672c\u5355\u5546\u54c1\u603b\u6570"},"content":{"rendered":"<p> \u53ef\u80fd\u6709\u4e9b\u670b\u53cb\u4e4d\u4e00\u770b\u6807\u9898\u4f1a\u6709\u4e9b\u6a21\u7cca\uff0c\u90a3\u597d\u5148\u4e0a\u6548\u679c\u56fe\uff1a<br \/> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/c101102\/12XDX93P450-150D.jpg\" class=\"aligncenter\" title=\"\u5728Ecshop\u540e\u53f0\u7684\u8ba2\u5355\u8be6\u60c5\u9875\u663e\u793a\u672c\u5355\u5546\u54c1\u603b\u6570\u63d2\u56fe\" alt=\"\u5728Ecshop\u540e\u53f0\u7684\u8ba2\u5355\u8be6\u60c5\u9875\u663e\u793a\u672c\u5355\u5546\u54c1\u603b\u6570\u63d2\u56fe\" \/><\/p>\n<p> \u8fd9\u662f\u540e\u53f0\u7684\u8ba2\u5355\u67e5\u770b\u9875\u9762\uff0c\u9ed8\u8ba4\u662f\u4e0d\u663e\u793a\u201c\u5546\u54c1\u603b\u6570\u201d\u7684\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u901a\u8fc7\u4e8c\u6b21\u5f00\u53d1\u6765\u7ed9\u4ed6\u52a0\u4e0a\u8fd9\u4e2a\u529f\u80fd\u3002<\/p>\n<p> \u6ce8\uff1a\u672c\u6559\u7a0b\u4ee5 ECSHOP2.7.2 \u4e3a\u51c6\uff0c\u5176\u4ed6\u7248\u672c\uff0c\u8bf7\u81ea\u884c\u4eff\u7167\u4fee\u6539<\/p>\n<p> 1\u3001\u6253\u5f00admin\/order.php<span>\u6587\u4ef6<\/span><br \/> \u641c\u7d22&nbsp;<br \/> <span style=\"background-color: #ccffff\">$res = $db-&gt;query($sql);<\/span><br \/> <span>\u4e00\u5171\u80fd\u641c\u7d22\u5230\u5f88\u591a\u5904\uff0c<br \/> \u6309\u524d\u540e\u987a\u5e8f\uff0c\u5728\u7b2c\u4e00\u5904\uff08\u5927\u6982\u5728320\u884c\uff09\u7684\u4e0b\u8fb9<br \/> \u589e\u52a0<\/span><br \/> <span style=\"background-color: #ccffff\">$goods_nums=0;<\/span><\/p>\n<p> 2\u3001\u7d27\u63a5\u7740\u7ee7\u7eed\u641c\u7d22\uff08\u5927\u6982\u5728351\u884c\uff09<br \/> <span style=\"background-color: #ccffff\">$goods_list[] = $row;<\/span><br \/> \u5728\u5b83\u4e0b\u8fb9\u589e\u52a0\u4e00\u884c\u4ee3\u7801<br \/> <span style=\"background-color: #ccffff\">$goods_nums+=$row[&#8216;goods_number&#8217;];<\/span><\/p>\n<p> 3\u3001\u7d27\u63a5\u7740\u7ee7\u7eed\u641c\u7d22 \uff08\u5927\u6982\u5728367\u884c\uff09<br \/> <span style=\"background-color: #ccffff\">$smarty-&gt;assign(&#8216;goods_list&#8217;, $goods_list);<\/span><br \/> \u5728\u5b83\u4e0b\u8fb9\u6dfb\u52a0\u4e00\u884c\u4ee3\u7801<br \/> <span style=\"background-color: #ccffff\">$smarty-&gt;assign(&#8216;goods_nums&#8217;, $goods_nums);<\/span><\/p>\n<p> 4\u3001\u4fee\u6539 admin\/templates\/order_info.htm<br \/> \u5c06<\/p>\n<table cellpadding=\"5\" cellspacing=\"0\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td> <font>&lt;td&gt;&lt;\/td&gt;<br \/> &nbsp;&nbsp;&nbsp; &lt;td&gt;&amp;nbsp;&lt;\/td&gt;<br \/> &nbsp;&nbsp;&nbsp; &lt;td&gt;&amp;nbsp;&lt;\/td&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u4fee\u6539\u4e3a<br \/>\n <\/p>\n<table cellpadding=\"5\" cellspacing=\"0\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td> <span style=\"color: #ff0000\">&lt;td&gt;&lt;\/td&gt;<br \/> &nbsp;&nbsp;&nbsp; &lt;td&gt;{if $goods_nums}&lt;div align=&#8221;right&#8221;&gt;&lt;strong&gt;\u5546\u54c1\u603b\u6570\uff1a&lt;\/strong&gt;&lt;\/div&gt;{\/if}&lt;\/td&gt;<br \/> &nbsp; &nbsp; &lt;td&gt;{if $goods_nums}&lt;div align=&#8221;right&#8221;&gt;{$goods_nums}&lt;\/div&gt;{\/if}&lt;\/td&gt;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> &nbsp; <\/p>\n<p> &nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u80fd\u6709\u4e9b\u670b\u53cb\u4e4d\u4e00\u770b\u6807\u9898\u4f1a\u6709\u4e9b\u6a21\u7cca\uff0c\u90a3\u597d\u5148\u4e0a\u6548\u679c\u56fe\uff1a \u8fd9\u662f\u540e\u53f0\u7684\u8ba2\u5355\u67e5\u770b\u9875\u9762\uff0c\u9ed8\u8ba4\u662f\u4e0d\u663e\u793a\u201c\u5546\u54c1\u603b\u6570\u201d\u7684\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u901a\u8fc7\u4e8c\u6b21\u5f00\u53d1\u6765\u7ed9\u4ed6\u52a0\u4e0a\u8fd9\u4e2a\u529f\u80fd\u3002 \u6ce8\uff1a\u672c\u6559\u7a0b\u4ee5 ECSHOP2.7.2 \u4e3a\u51c6\uff0c\u5176\u4ed6\u7248\u672c\uff0c\u8bf7\u81ea\u884c\u4eff\u7167\u4fee\u6539 1\u3001\u6253\u5f00admin\/order.php\u6587\u4ef6 \u641c\u7d22&nbsp; $res = $db-&gt;query($sql); \u4e00\u5171\u80fd\u641c\u7d22\u5230\u5f88\u591a\u5904\uff0c \u6309\u524d\u540e\u987a\u5e8f\uff0c\u5728\u7b2c\u4e00\u5904\uff08\u5927\u6982\u5728320\u884c\uff09\u7684\u4e0b\u8fb9 \u589e\u52a0 $goods_nums=0; 2\u3001\u7d27\u63a5\u7740\u7ee7\u7eed\u641c\u7d22\uff08\u5927\u6982\u5728351\u884c\uff09 $goods_list[] = $row; \u5728\u5b83\u4e0b\u8fb9\u589e\u52a0\u4e00\u884c\u4ee3\u7801 $goods_nums+=$row[&#8216;goods_number&#8217;]; 3\u3001\u7d27\u63a5\u7740\u7ee7\u7eed\u641c\u7d22 \uff08\u5927\u6982\u5728367\u884c\uff09 $smarty-&gt;assign(&#8216;goods_list&#8217;, $goods_list); \u5728\u5b83\u4e0b\u8fb9\u6dfb\u52a0\u4e00\u884c\u4ee3\u7801 $smarty-&gt;assign(&#8216;goods_nums&#8217;, $goods_nums); 4\u3001\u4fee\u6539 admin\/templates\/order_info.htm \u5c06 &lt;td&gt;&lt;\/td&gt; &nbsp;&nbsp;&nbsp; &lt;td&gt;&amp;nbsp;&lt;\/td&gt; &nbsp;&nbsp;&nbsp; &lt;td&gt;&amp;nbsp;&lt;\/td&gt; \u4fee\u6539\u4e3a &lt;td&gt;&lt;\/td&gt; &nbsp;&nbsp;&nbsp; &lt;td&gt;{if $goods_nums}&lt;div align=&#8221;right&#8221;&gt;&lt;strong&gt;\u5546\u54c1\u603b\u6570\uff1a&lt;\/strong&gt;&lt;\/div&gt;{\/if}&lt;\/td&gt; &nbsp; &nbsp; &lt;td&gt;{if $goods_nums}&lt;div align=&#8221;right&#8221;&gt;{$goods_nums}&lt;\/div&gt;{\/if}&lt;\/td&gt; &nbsp; &nbsp;<\/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-60492","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60492","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=60492"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60492\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}