{"id":60273,"date":"2025-04-24T09:55:48","date_gmt":"2025-04-24T01:55:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60273\/"},"modified":"2025-04-24T09:55:48","modified_gmt":"2025-04-24T01:55:48","slug":"ecshop%e8%ae%a2%e5%8d%95%e4%b8%ad%e5%8f%aa%e8%a6%81%e6%9c%89%e4%b8%80%e4%b8%aa%e6%98%af%e5%8c%85%e9%82%ae%e5%95%86%e5%93%81%ef%bc%8c%e5%b0%b1%e6%95%b4%e4%b8%aa%e8%ae%a2%e5%8d%95%e9%83%bd%e5%8c%85-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60273\/","title":{"rendered":"ecshop\u8ba2\u5355\u4e2d\u53ea\u8981\u6709\u4e00\u4e2a\u662f\u5305\u90ae\u5546\u54c1\uff0c\u5c31\u6574\u4e2a\u8ba2\u5355\u90fd\u5305\u90ae"},"content":{"rendered":"<p>includes\/lib_order.php\u641c\u7d22\u201c\u67e5\u770b\u8d2d\u7269\u8f66\u4e2d\u662f\u5426\u5168\u4e3a\u514d\u8fd0\u8d39\u5546\u54c1\uff0c\u82e5\u662f\u5219\u628a\u8fd0\u8d39\u8d4b\u4e3a\u96f6\u201d\uff0c\u5c06   &nbsp;   $sql = &#8216;SELECT count(*) FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;cart&#8217;) . &#8221; WHERE &nbsp;`session_id` = &#8216;&#8221; . SESS_ID. &#8220;&#8216; AND `extension_code` != &#8216;package_buy&#8217; AND `is_shipping` = 0&#8243;; &nbsp;   \u4fee\u6539\u4e3a   &nbsp;   $sql = &#8216;SELECT count(*) FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;cart&#8217;) . &#8221; WHERE &nbsp;`session_id` = &#8216;&#8221; . SESS_ID. &#8220;&#8216; AND `extension_code` != &#8216;package_buy&#8217; AND `is_shipping` = 1&#8221;;&nbsp;   &nbsp;   \u518d\u628a   &nbsp;   $total[&#8216;shipping_fee&#8217;] = ($shipping_count == 0 AND $weight_price[&#8216;free_shipping&#8217;] == 1) ?0 : &nbsp;shipping_fee($shipping_info[&#8216;shipping_code&#8217;],$shipping_info[&#8216;configure&#8217;], $weight_price[&#8216;weight&#8217;], $total[&#8216;goods_price&#8217;], $weight_price[&#8216;number&#8217;]); &nbsp;   &nbsp;   \u4fee\u6539\u4e3a   &nbsp;   $total[&#8216;shipping_fee&#8217;] = ($shipping_count &gt;= 1 AND $weight_price[&#8216;free_shipping&#8217;] == 1) ?0 : &nbsp;shipping_fee($shipping_info[&#8216;shipping_code&#8217;],$shipping_info[&#8216;configure&#8217;], $weight_price[&#8216;weight&#8217;], $total[&#8216;goods_price&#8217;], $weight_price[&#8216;number&#8217;]); &nbsp;   &nbsp;   \u5373\u53ef\u4ee5\u5b9e\u73b0\u8d2d\u7269\u8f66\u4e2d\u53ea\u8981\u6709\u4e00\u4e2a\u5546\u54c1\u662f\u514d\u90ae\u8d39\u7684\u5219\u6574\u4e2a\u8d2d\u7269\u8f66\u4e2d\u90fd\u514d\u90ae\u3002  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>includes\/lib_order.php\u641c\u7d22\u201c\u67e5\u770b\u8d2d\u7269\u8f66\u4e2d\u662f\u5426\u5168\u4e3a\u514d\u8fd0\u8d39\u5546\u54c1\uff0c\u82e5\u662f\u5219\u628a\u8fd0\u8d39\u8d4b\u4e3a\u96f6\u201d\uff0c\u5c06 &nbsp; $sql = &#8216;SELECT count(*) FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;cart&#8217;) . &#8221; WHERE &nbsp;`session_id` = &#8216;&#8221; . SESS_ID. &#8220;&#8216; AND `extension_code` != &#8216;package_buy&#8217; AND `is_shipping` = 0&#8243;; &nbsp; \u4fee\u6539\u4e3a &nbsp; $sql = &#8216;SELECT count(*) FROM &#8216; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;cart&#8217;) . &#8221; WHERE &nbsp;`session_id` = &#8216;&#8221; . SESS_ID. &#8220;&#8216; AND `extension_code` != &#8216;package_buy&#8217; AND `is_shipping` = 1&#8221;;&nbsp; [&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-60273","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60273","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=60273"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60273\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}