{"id":60970,"date":"2025-04-26T08:30:27","date_gmt":"2025-04-26T00:30:27","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60970\/"},"modified":"2025-04-26T08:30:27","modified_gmt":"2025-04-26T00:30:27","slug":"zen-cart%e8%87%aa%e5%ae%9a%e4%b9%89%e8%bf%90%e8%b4%b9%e6%a8%a1%e5%9d%97hk-post","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60970\/","title":{"rendered":"Zen-cart\u81ea\u5b9a\u4e49\u8fd0\u8d39\u6a21\u5757HK POST"},"content":{"rendered":"<p> \u9999\u6e2f\u90ae\u653f\u822a\u7a7a\u5c0f\u5305\u7684\u8ba1\u8d39\u65b9\u5f0f\u662f\uff1a\u6302\u53f7\u8d39+\u6bcf\u516c\u65a4\u7684\u8d39\u7528\u3002\u6bd4\u598213+100\/KG, \u5982\u679c\u662f100\u514b\uff0c\u90a3\u4e48\u6536\u8d39\u662f13+0.1*100 = 23\u5143\u3002<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/c160110\/14523ARXY30-43E2.jpg\" class=\"aligncenter\" title=\"Zen-cart\u81ea\u5b9a\u4e49\u8fd0\u8d39\u6a21\u5757HK POST\u63d2\u56fe\" alt=\"Zen-cart\u81ea\u5b9a\u4e49\u8fd0\u8d39\u6a21\u5757HK POST\u63d2\u56fe\" \/><\/p>\n<p> Zen-cart\u4e2d\u5e76\u6ca1\u6709\u7b26\u5408\u8fd9\u4e2a\u8ba1\u7b97\u903b\u8f91\u7684\u8fd0\u8d39\u6a21\u5757\u3002\u53c2\u7167\u73b0\u5b58\u7684\u6a21\u5757\uff0c\u81ea\u5b9a\u4e49\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\uff0c\u9700\u8981\u5148\u7406\u89e3Zen-cart\u8fd0\u8d39\u6a21\u5757\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0c\u53ef\u53c2\u8003\uff1a<\/p>\n<p>    \/\/ class methods   function quote($method = &#8221;) {   &nbsp;&nbsp;&nbsp;&nbsp;global $order,$shipping_weight,$shipping_num_boxes,$db,$currencies;   &nbsp;&nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;$total_weight = $shipping_weight * $shipping_num_boxes;   &nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;if($total_weight &gt; (int)MODULE_SHIPPING_HK_POST_MAX_WEIGHT){   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;&nbsp;&nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;}   &nbsp;&nbsp;&nbsp;&nbsp;\/\/package weight   &nbsp;&nbsp;&nbsp;&nbsp;$total_weight += (int)MODULE_SHIPPING_HK_POST_PACKAGE_WEIGHT;   &nbsp;&nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/   &nbsp;&nbsp;&nbsp;&nbsp;$cost = explode(&#8216;,&#8217;,MODULE_SHIPPING_HK_POST_COST);   &nbsp;&nbsp;&nbsp;&nbsp;$first = 13; $continue = 108;   &nbsp;&nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;if(count($cost) &gt;= 2){   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first = (int)$cost[0];   &nbsp;&nbsp;&nbsp;&nbsp;$continue = round($cost[1],2);   &nbsp;&nbsp;&nbsp;&nbsp;}else{   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tmp = round($cost[0],2);   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($tmp &gt; 70){   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$continue = $tmp;   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}   &nbsp;&nbsp;&nbsp;&nbsp;}   &nbsp;&nbsp;&nbsp;&nbsp;\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/   &nbsp;   $rate = (float)$currencies-&gt;currencies[&#8216;CNY&#8217;][&#8216;value&#8217;];   &nbsp;&nbsp;&nbsp;&nbsp;if($rate &lt;= 0){   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$rate = 1;   }   &nbsp;&nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;$ttl = round(($first+$continue*ceil($total_weight\/10)\/100)\/$rate,2);   &nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;quotes = array(&#8216;id&#8217; =&gt; $this-&gt;code,   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;module&#8217; =&gt; MODULE_SHIPPING_HK_POST_TEXT_TITLE,   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;methods&#8217; =&gt; array(array(&#8216;id&#8217; =&gt; $this-&gt;code,   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;title&#8217; =&gt; MODULE_SHIPPING_HK_POST_TEXT_WAY,   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;cost&#8217; =&gt; $ttl)));   &nbsp;&nbsp;&nbsp;&nbsp;if ($this-&gt;tax_class &gt; 0) {   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;quotes[&#8216;tax&#8217;] = zen_get_tax_rate($this-&gt;tax_class, $order-&gt;delivery[&#8216;country&#8217;][&#8216;id&#8217;], $order-&gt;delivery[&#8216;zone_id&#8217;]);   &nbsp;&nbsp;&nbsp;&nbsp;}   &nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;if (zen_not_null($this-&gt;icon)) $this-&gt;quotes[&#8216;icon&#8217;] = zen_image($this-&gt;icon, $this-&gt;title);   &nbsp;   &nbsp;&nbsp;&nbsp;&nbsp;return $this-&gt;quotes;   }    <\/p>\n<p> \u9700\u8981\u5b9e\u73b0quote\u65b9\u6cd5\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u6309\u7167\u5982\u4e0a\u8fd4\u56de\u5bf9\u5e94\u5185\u5bb9\u3002\u8fd0\u8d39\u6210\u672c\u8ba1\u7b97\u903b\u8f91\u5c31\u4e00\u53e5\u4ee3\u7801\uff1a<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td>  1  <\/td>\n<td>   $ttl = round(($first+$continue*ceil($total_weight\/10)\/100)\/$rate,2);   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u6ce8\u610f\uff0c\u8fd9\u91cc\u9664\u4ee5\u4e86\u4eba\u6c11\u5e01\u7684\u6c47\u7387\u5f97\u5230\u57fa\u51c6\u8d27\u5e01\uff0c\u90a3\u662f\u56e0\u4e3a\u63d2\u4ef6\u540e\u53f0\u8bbe\u7f6e\u7684\u503c\u4e3a\u4eba\u6c11\u5e01\u4e3a\u5355\u4f4d\u3002\u63d2\u4ef6\u5176\u5b83\u4ee3\u7801\u53c2\u8003Zen-cart\u9ed8\u8ba4\u7684\u8fd0\u8d39\u6a21\u5757\u5373\u53ef\u5b8c\u6210\u3002<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/c160110\/14523ARY3X0-56253.jpg\" class=\"aligncenter\" title=\"Zen-cart\u81ea\u5b9a\u4e49\u8fd0\u8d39\u6a21\u5757HK POST\u63d2\u56fe1\" alt=\"Zen-cart\u81ea\u5b9a\u4e49\u8fd0\u8d39\u6a21\u5757HK POST\u63d2\u56fe1\" \/><\/p>\n<p> \u8fd9\u91cc\u663e\u793a\u7684\u8fd0\u8d39\u5c31\u662f\u6839\u636e\u4e0a\u9762\u7684\u903b\u8f91\u8fdb\u884c\u8ba1\u7b97\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9999\u6e2f\u90ae\u653f\u822a\u7a7a\u5c0f\u5305\u7684\u8ba1\u8d39\u65b9\u5f0f\u662f\uff1a\u6302\u53f7\u8d39+\u6bcf\u516c\u65a4\u7684\u8d39\u7528\u3002\u6bd4\u598213+100\/KG, \u5982\u679c\u662f100\u514b\uff0c\u90a3\u4e48\u6536\u8d39\u662f13+0.1*100 = 23\u5143\u3002 Zen-cart\u4e2d\u5e76\u6ca1\u6709\u7b26\u5408\u8fd9\u4e2a\u8ba1\u7b97\u903b\u8f91\u7684\u8fd0\u8d39\u6a21\u5757\u3002\u53c2\u7167\u73b0\u5b58\u7684\u6a21\u5757\uff0c\u81ea\u5b9a\u4e49\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\uff0c\u9700\u8981\u5148\u7406\u89e3Zen-cart\u8fd0\u8d39\u6a21\u5757\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0c\u53ef\u53c2\u8003\uff1a \/\/ class methods function quote($method = &#8221;) { &nbsp;&nbsp;&nbsp;&nbsp;global $order,$shipping_weight,$shipping_num_boxes,$db,$currencies; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$total_weight = $shipping_weight * $shipping_num_boxes; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;if($total_weight &gt; (int)MODULE_SHIPPING_HK_POST_MAX_WEIGHT){ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;\/\/package weight &nbsp;&nbsp;&nbsp;&nbsp;$total_weight += (int)MODULE_SHIPPING_HK_POST_PACKAGE_WEIGHT; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ &nbsp;&nbsp;&nbsp;&nbsp;$cost = explode(&#8216;,&#8217;,MODULE_SHIPPING_HK_POST_COST); &nbsp;&nbsp;&nbsp;&nbsp;$first = 13; $continue = 108; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;if(count($cost) &gt;= 2){ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first = (int)$cost[0]; &nbsp;&nbsp;&nbsp;&nbsp;$continue = round($cost[1],2); &nbsp;&nbsp;&nbsp;&nbsp;}else{ [&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-60970","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60970","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=60970"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60970\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}