{"id":59072,"date":"2025-04-23T16:35:15","date_gmt":"2025-04-23T08:35:15","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59072\/"},"modified":"2025-04-23T16:35:15","modified_gmt":"2025-04-23T08:35:15","slug":"%e5%9c%a8ecshop%e8%b4%ad%e7%89%a9%e8%bd%a6%e6%88%96%e7%bb%93%e7%ae%97%e9%a1%b5%e9%9d%a2%e6%98%be%e7%a4%ba%e5%95%86%e5%93%81%e7%9a%84%e5%93%81%e7%89%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59072\/","title":{"rendered":"\u5728Ecshop\u8d2d\u7269\u8f66\u6216\u7ed3\u7b97\u9875\u9762\u663e\u793a\u5546\u54c1\u7684\u54c1\u724c"},"content":{"rendered":"<p>1\u3001<br \/> \u5148\u6253\u5f00 includes\/lib_order.php <span>\u6587\u4ef6\uff08\u5efa\u8bae\u4f7f\u7528editplus\uff09<\/span><br \/> \u627e\u5230 \uff08\u5927\u6982\u662f\u5728873\u884c\uff09<\/p>\n<table 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\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>$arr[$key][&#8216;formated_subtotal&#8217;]&nbsp;&nbsp;&nbsp;&nbsp; = price_format($value[&#8216;subtotal&#8217;], false);<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5728\u5b83\u7684\u4e0b\u9762\u589e\u52a0\u4ee5\u4e0b\u4ee3\u7801 <br \/> &nbsp;<\/p>\n<table 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\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>$sql=&#8221;select brand_name from &#8220;.$GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;goods&#8217;).&#8221; g left join &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8220;brand&#8221;) . &#8221; b on&nbsp; g.brand_id=b.brand_id where goods_id='{$value[&#8216;goods_id&#8217;]}'&#8221;;<br \/> &nbsp; $goods_brand = $GLOBALS[&#8216;db&#8217;]-&gt;getOne($sql);<br \/> &nbsp; $arr[$key][&#8216;goods_brand&#8217;]=$goods_brand;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> 2\u3001<br \/> \u4e0b\u9762\u8fd9\u4e00\u6b65\u5343\u4e07\u8981\u8ba4\u771f\uff0c\u4e0d\u80fd\u9a6c\u864e\uff0c\u8fd8\u662f\u5728includes\/lib_order.php <span>\u6587\u4ef6\u4e2d\u67e5\u627e<\/span><br \/> \u5148\u627e\u5230 get_cart_goods()&nbsp; \u51fd\u6570\u90e8\u5206\uff0c\u7136\u540e\u518d\u627e\u5230\u6b64\u51fd\u6570\u4e2d\u7684\u4e00\u884c\u4ee3\u7801<\/p>\n<table 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\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>$goods_list[] = $row;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\uff08\u6ce8\uff1a\u6b64\u884c\u4ee3\u7801\u5728includes\/lib_order.php\u4e2d\u51fa\u73b0\u4e86\u4e24\u6b21\uff0c\u5343\u4e07\u522b\u627e\u9519\u4e86\uff09<\/p>\n<p> \u627e\u5230\u8fd9\u884c\u4ee3\u7801\u540e\uff0c\u5728\u5b83\u4e0a\u9762\u589e\u52a0\u4ee5\u4e0b\u4ee3\u7801<\/p>\n<table 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\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>$sql=&#8221;select brand_name from &#8220;.$GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;goods&#8217;).&#8221; g left join &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8220;brand&#8221;) . &#8221; b on&nbsp; g.brand_id=b.brand_id where goods_id='{$row[&#8216;goods_id&#8217;]}'&#8221;;<br \/> &nbsp; $goods_brand = $GLOBALS[&#8216;db&#8217;]-&gt;getOne($sql);<br \/> &nbsp; $row[&#8216;goods_brand&#8217;]=$goods_brand;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> 2\u3001<br \/> \u4fee\u6539 <span>\u6a21\u677f<\/span>\u6587\u4ef6 flow.dwt \u6587\u4ef6<br \/> \u627e\u5230<\/p>\n<table 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\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>&lt;!&#8211; {if $goods.is_shipping} &#8211;&gt;(&lt;span style=&#8221;color:#FF0000&#8243;&gt;{$lang.free_goods}&lt;\/span&gt;)&lt;!&#8211; {\/if} &#8211;&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5728\u4ed6\u540e\u9762\u589e\u52a0\u4ee3\u7801<br \/> {$goods.goods_brand}<\/p>\n<p> \u627e\u5230<\/p>\n<table 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\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>&lt;a href=&#8221;goods.php?id={$goods.goods_id}&#8221; target=&#8221;_blank&#8221;&gt;&lt;img src=&#8221;{$goods.goods_thumb}&#8221; border=&#8221;0&#8243; title=&#8221;{$goods.goods_name|escape:html}&#8221; \/&gt;&lt;\/a&gt;&lt;br \/&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5728\u5b83\u540e\u9762\u589e\u52a0\u4ee3\u7801<br \/> \uff08<strong><font><span>\u54c1\u724c<\/span><\/font><\/strong>:{$goods.goods_brand}\uff09<br \/> &nbsp;<\/p>\n<p>  &nbsp; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001 \u5148\u6253\u5f00 includes\/lib_order.php \u6587\u4ef6\uff08\u5efa\u8bae\u4f7f\u7528editplus\uff09 \u627e\u5230 \uff08\u5927\u6982\u662f\u5728873\u884c\uff09 $arr[$key][&#8216;formated_subtotal&#8217;]&nbsp;&nbsp;&nbsp;&nbsp; = price_format($value[&#8216;subtotal&#8217;], false); \u5728\u5b83\u7684\u4e0b\u9762\u589e\u52a0\u4ee5\u4e0b\u4ee3\u7801 &nbsp; $sql=&#8221;select brand_name from &#8220;.$GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;goods&#8217;).&#8221; g left join &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8220;brand&#8221;) . &#8221; b on&nbsp; g.brand_id=b.brand_id where goods_id='{$value[&#8216;goods_id&#8217;]}&#8217;&#8221;; &nbsp; $goods_brand = $GLOBALS[&#8216;db&#8217;]-&gt;getOne($sql); &nbsp; $arr[$key][&#8216;goods_brand&#8217;]=$goods_brand; 2\u3001 \u4e0b\u9762\u8fd9\u4e00\u6b65\u5343\u4e07\u8981\u8ba4\u771f\uff0c\u4e0d\u80fd\u9a6c\u864e\uff0c\u8fd8\u662f\u5728includes\/lib_order.php \u6587\u4ef6\u4e2d\u67e5\u627e \u5148\u627e\u5230 get_cart_goods()&nbsp; \u51fd\u6570\u90e8\u5206\uff0c\u7136\u540e\u518d\u627e\u5230\u6b64\u51fd\u6570\u4e2d\u7684\u4e00\u884c\u4ee3\u7801 $goods_list[] = $row; \uff08\u6ce8\uff1a\u6b64\u884c\u4ee3\u7801\u5728includes\/lib_order.php\u4e2d\u51fa\u73b0\u4e86\u4e24\u6b21\uff0c\u5343\u4e07\u522b\u627e\u9519\u4e86\uff09 \u627e\u5230\u8fd9\u884c\u4ee3\u7801\u540e\uff0c\u5728\u5b83\u4e0a\u9762\u589e\u52a0\u4ee5\u4e0b\u4ee3\u7801 $sql=&#8221;select brand_name from &#8220;.$GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;goods&#8217;).&#8221; g left join &#8221; . [&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-59072","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59072","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=59072"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59072\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}