{"id":199001,"date":"2025-05-03T09:43:32","date_gmt":"2025-05-03T01:43:32","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199001\/"},"modified":"2025-05-03T09:43:32","modified_gmt":"2025-05-03T01:43:32","slug":"%e8%bd%bb%e6%9d%be%e5%ae%9e%e7%8e%b0ecshop%e5%95%86%e5%9f%8e%e5%a4%9a%e8%af%ad%e8%a8%80%e5%88%87%e6%8d%a2","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199001\/","title":{"rendered":"\u8f7b\u677e\u5b9e\u73b0Ecshop\u5546\u57ce\u591a\u8bed\u8a00\u5207\u6362"},"content":{"rendered":"<p>\u5f88\u591a\u4eba\u90fd\u60f3\u8ba9\u81ea\u5df1\u7684ECSHOP\u5546\u57ce\u5b9e\u73b0\u591a\u8bed\u8a00\u652f\u6301\uff08\u80fd\u591f\u65b9\u4fbf\u7684\u5728\u9996\u9875\u5207\u6362\u591a\u8bed\u8a00\uff09\u3002<br \/> \u5176\u5b9e\u5b9e\u73b0\u8d77\u6765\u4e5f\u633a\u7b80\u5355\u7684\u3002<\/p>\n<p> \u6548\u679c\u56fe\u5982\u4e0b\uff1a<br \/> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/c101102\/12XDXJ0L10-24591.jpg\" class=\"aligncenter\"><\/p>\n<p> \u4e0b\u9762\u5c31\u8bf4\u4e00\u4e0b\u4fee\u6539\u65b9\u6cd5\u3002<\/p>\n<p> 1\uff09\u3001<br \/> \u9996\u5148\u6253\u5f00 includds\/init.php&nbsp; \u6587\u4ef6\uff0c<br \/> \u627e\u5230 <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" 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>require(ROOT_PATH . &#8216;languages\/&#8217; . $_CFG[&#8216;lang&#8217;] . &#8216;\/common.php&#8217;);<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u4e0e <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" 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>$smarty-&gt;assign(&#8216;lang&#8217;, $_LANG);<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5148\u5c06\u8fd9\u4e24\u884c\u4ee3\u7801\u5220\u6389\u3002<\/p>\n<p> 2\uff09\u3001\u627e\u5230 <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" 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>if ((DEBUG_MODE &amp; 1) == 1)<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5728\u5b83\u4e0a\u8fb9\u589e\u52a0<br \/>\n <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" 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>\n<p><font>if(!empty($_REQUEST[&#8216;lang&#8217;])){<br \/> &nbsp;$_SESSION[&#8216;lang&#8217;]=$_REQUEST[&#8216;lang&#8217;];<br \/> }<br \/> if (!empty($_SESSION[&#8216;lang&#8217;]))<br \/> {<br \/> switch($_SESSION[&#8216;lang&#8217;]){<br \/> &nbsp; case &#8216;zh_cn&#8217;:<br \/> &nbsp;&nbsp; $_CFG[&#8216;lang&#8217;]=&#8221;zh_cn&#8221;;<br \/> &nbsp; break;<br \/> &nbsp; case &#8216;zh_tw&#8217;:<br \/> &nbsp;&nbsp; $_CFG[&#8216;lang&#8217;]=&#8221;zh_tw&#8221;;<br \/> &nbsp; break;<br \/> &nbsp; case &#8216;en_us&#8217;:<br \/> &nbsp;&nbsp; $_CFG[&#8216;lang&#8217;]=&#8221;en_us&#8221;;<br \/> &nbsp; break;<br \/> }<\/font><\/p>\n<p><font>}<br \/> require(ROOT_PATH . &#8216;languages\/&#8217; . $_CFG[&#8216;lang&#8217;] . &#8216;\/common.php&#8217;);<br \/> $smarty-&gt;assign(&#8216;lang&#8217;, $_LANG);<\/font><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> 3\uff09\u3001\u4fee\u6539\u3000\/themes\/default\/library\/page_header.lbi&nbsp;\u6587\u4ef6<\/p>\n<p> \u5728 <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" 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;div class=&#8221;topNavR&#8221;&gt;&lt;\/div&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u4e0a\u8fb9\u6dfb\u52a0<br \/>\n <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" 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>&nbsp;| &lt;a href=&#8221;?lang=zh_cn&#8221;&gt;\u7b80\u4f53&lt;\/a&gt; | <br \/> &lt;a href=&#8221;?lang=zh_tw&#8221;&gt;\u7e41\u4f53&lt;\/a&gt; | <br \/> &lt;a href=&#8221;?lang=en_us&#8221;&gt;\u82f1\u6587&lt;\/a&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> &nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f88\u591a\u4eba\u90fd\u60f3\u8ba9\u81ea\u5df1\u7684ECSHOP\u5546&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199001","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199001"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199001\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}