{"id":60308,"date":"2025-04-24T11:46:46","date_gmt":"2025-04-24T03:46:46","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60308\/"},"modified":"2025-04-24T11:46:46","modified_gmt":"2025-04-24T03:46:46","slug":"%e8%ae%a9ecshop%e6%89%b9%e9%87%8f%e6%89%93%e5%8d%b0%e5%bf%ab%e9%80%92%e5%8d%95%e4%bf%ae%e6%94%b9%e6%96%b9%e6%b3%95-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60308\/","title":{"rendered":"\u8ba9ecshop\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355\u4fee\u6539\u65b9\u6cd5"},"content":{"rendered":"<p> \u5728ecshop\u7f51\u5e97\u7cfb\u7edf\u5f53\u4e2d\uff0c\u589e\u52a0\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355\u529f\u80fd\uff0c\u5927\u5927\u65b9\u4fbf\u4e86\u7528\u6237\u53d1\u8d27\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u597d\u6a21\u677f\u63d0\u4f9b\u7684\u5f00\u53d1\u65b9\u6cd5<\/p>\n<p> \u6548\u679c\u56fe<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/150111\/1-1501111RPUG.png\" style=\"width: 516px;height: 161px\" class=\"aligncenter\" title=\"\u8ba9ecshop\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355\u4fee\u6539\u65b9\u6cd5\u63d2\u56fe\" alt=\"\u8ba9ecshop\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355\u4fee\u6539\u65b9\u6cd5\u63d2\u56fe\" \/><\/p>\n<p>  1.admin\\templates\\order_list.htm\uff0c\u5728   &nbsp;   &lt;input name=&#8221;print&#8221; type=&#8221;submit&#8221; id=&#8221;btnSubmit4&#8243; value=&#8221;{$lang.print_order}&#8221; class=&#8221;button&#8221; disabled=&#8221;true&#8221; onclick=&#8221;this.form.target = &#8216;_blank'&#8221; \/&gt; &nbsp;   \u540e\uff0c\u6dfb\u52a0   &nbsp;   &lt;input name=&#8221;print_shopping&#8221; type=&#8221;submit&#8221; id=&#8221;btnSubmit6&#8243; value=&#8221;\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355&#8221; class=&#8221;button&#8221; disabled=&#8221;true&#8221; onclick=&#8221;this.form.target = &#8216;_blank'&#8221; \/&gt; &nbsp;   &nbsp;   2.admin\\order.php\uff0c\u5728   &nbsp;   \/* \u53bb\u53d1\u8d27 *\/ &nbsp;   elseif (isset($_POST[&#8216;to_delivery&#8217;])) &nbsp;   \u524d\uff0c\u6dfb\u52a0   &nbsp;   \/\/\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355 &nbsp;   elseif (isset($_POST[&#8216;print_shopping&#8217;])){ &nbsp;   &nbsp; &nbsp; $region_array = array(); &nbsp;   &nbsp; &nbsp; $region_id = !empty($_CFG[&#8216;shop_country&#8217;]) ? $_CFG[&#8216;shop_country&#8217;] . &#8216;,&#8217; : &#8221;; &nbsp;   &nbsp; &nbsp; $region_id .= !empty($_CFG[&#8216;shop_province&#8217;]) ? $_CFG[&#8216;shop_province&#8217;] . &#8216;,&#8217; : &#8221;; &nbsp;   &nbsp; &nbsp; $region_id .= !empty($_CFG[&#8216;shop_city&#8217;]) ? $_CFG[&#8216;shop_city&#8217;] . &#8216;,&#8217; : &#8221;; &nbsp;   &nbsp; &nbsp; $region_id = substr($region_id, 0, -1); &nbsp;   &nbsp; &nbsp; $region = $db-&gt;getAll(&#8220;SELECT region_id, region_name FROM &#8221; . $ecs-&gt;table(&#8220;region&#8221;) . &#8221; WHERE region_id IN ($region_id)&#8221;); &nbsp;   &nbsp; &nbsp; &nbsp;&nbsp;   &nbsp; &nbsp; if (!empty($region)) &nbsp;   &nbsp; &nbsp; { &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; foreach($region as $region_data) &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $region_array[$region_data[&#8216;region_id&#8217;]] = $region_data[&#8216;region_name&#8217;]; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;shop_name&#8217;, $_CFG[&#8216;shop_name&#8217;]); &nbsp;   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;province&#8217;, $region_array[$_CFG[&#8216;shop_province&#8217;]]); &nbsp;   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;city&#8217;, $region_array[$_CFG[&#8216;shop_city&#8217;]]); &nbsp;   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;shop_address&#8217;, $_CFG[&#8216;shop_address&#8217;]); &nbsp;   &nbsp; &nbsp; $smarty-&gt;assign(&#8216;service_phone&#8217;,$_CFG[&#8216;service_phone&#8217;]); &nbsp;   &nbsp; &nbsp; &nbsp;&nbsp;   &nbsp; &nbsp; \/\/\u4ee5\u4e0a\u662f\u7cfb\u7edf\u53c2\u6570 &nbsp;   &nbsp; &nbsp; $order_sn_list = array(); &nbsp;   &nbsp; &nbsp; $order_sn_list = explode(&#8216;,&#8217;, $_POST[&#8216;order_id&#8217;]); &nbsp;   &nbsp; &nbsp; foreach ($order_sn_list as $order_sn) &nbsp;   &nbsp; &nbsp; { &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; \/* \u53d6\u5f97\u8ba2\u5355\u4fe1\u606f *\/ &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; $order = order_info(0, $order_sn); &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; $smarty -&gt; assign(&#8216;order&#8217;,$order); &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; $shipping = $db-&gt;getOne(&#8220;SELECT * FROM &#8221; . $ecs-&gt;table(&#8220;shipping&#8221;) . &#8221; WHERE shipping_id=&#8221; . $order[&#8216;shipping_id&#8217;]); &nbsp;   &nbsp;&nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; if (empty($shipping[&#8216;shipping_print&#8217;])) &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $smarty-&gt;fetch(&#8220;str:&#8221; . $shipping[&#8216;shipping_print&#8217;]); &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; else &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $shipping_code = $db-&gt;getOne(&#8220;SELECT shipping_code FROM &#8221; . $ecs-&gt;table(&#8216;shipping&#8217;) . &#8221; WHERE shipping_id=&#8221; . $order[&#8216;shipping_id&#8217;]); &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($shipping_code){ &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include_once(ROOT_PATH . &#8216;includes\/modules\/shipping\/&#8217; . $shipping_code . &#8216;.php&#8217;); &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!empty($_LANG[&#8216;shipping_print&#8217;])) &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $smarty-&gt;fetch(&#8220;str:$_LANG[shipping_print]&#8221;); &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $_LANG[&#8216;no_print_shipping&#8217;]; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; } &nbsp;   &nbsp; &nbsp; exit; &nbsp;   } &nbsp;   3.\u5728languages\\zh_cn\\shipping\u4e2d\u5bf9\u5e94\u7684php\u6587\u4ef6\u91cc   $_LANG[&#8216;shipping_print&#8217;] &nbsp; &nbsp; &nbsp; &nbsp; =\u2018\u2019;   \u8fd9\u4e00\u53e5\uff0c\u5c06\u2018\u2019\u4e2d\u7684\u5185\u5bb9\u6837\u5f0f\u4fee\u6539\u8fc7\u6765\u5c31\u597d\u4e86\u3002\u81f3\u4e8e\u53d6\u9875\u9762\u6837\u5f0f\uff0c\u53ea\u8981\u5728\u5bf9\u5e94\u9875\u9762Ctrl+S\u4e00\u4e0b\u5c31\u597d\u4e86\u3002<br \/>\n<br \/> &nbsp;  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728ecshop\u7f51\u5e97\u7cfb\u7edf\u5f53\u4e2d\uff0c\u589e\u52a0\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355\u529f\u80fd\uff0c\u5927\u5927\u65b9\u4fbf\u4e86\u7528\u6237\u53d1\u8d27\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u597d\u6a21\u677f\u63d0\u4f9b\u7684\u5f00\u53d1\u65b9\u6cd5 \u6548\u679c\u56fe 1.admin\\templates\\order_list.htm\uff0c\u5728 &nbsp; &lt;input name=&#8221;print&#8221; type=&#8221;submit&#8221; id=&#8221;btnSubmit4&#8243; value=&#8221;{$lang.print_order}&#8221; class=&#8221;button&#8221; disabled=&#8221;true&#8221; onclick=&#8221;this.form.target = &#8216;_blank&#8217;&#8221; \/&gt; &nbsp; \u540e\uff0c\u6dfb\u52a0 &nbsp; &lt;input name=&#8221;print_shopping&#8221; type=&#8221;submit&#8221; id=&#8221;btnSubmit6&#8243; value=&#8221;\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355&#8221; class=&#8221;button&#8221; disabled=&#8221;true&#8221; onclick=&#8221;this.form.target = &#8216;_blank&#8217;&#8221; \/&gt; &nbsp; &nbsp; 2.admin\\order.php\uff0c\u5728 &nbsp; \/* \u53bb\u53d1\u8d27 *\/ &nbsp; elseif (isset($_POST[&#8216;to_delivery&#8217;])) &nbsp; \u524d\uff0c\u6dfb\u52a0 &nbsp; \/\/\u6279\u91cf\u6253\u5370\u5feb\u9012\u5355 &nbsp; elseif (isset($_POST[&#8216;print_shopping&#8217;])){ &nbsp; &nbsp; &nbsp; $region_array = array(); &nbsp; &nbsp; &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-60308","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60308","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=60308"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60308\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}