{"id":60732,"date":"2025-04-26T10:43:09","date_gmt":"2025-04-26T02:43:09","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60732\/"},"modified":"2025-04-26T10:43:09","modified_gmt":"2025-04-26T02:43:09","slug":"zencart%e5%9c%a8configuration%e8%8f%9c%e5%8d%95%e4%b8%8b%e6%96%b0%e5%bb%ba%e9%80%89%e9%a1%b9%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60732\/","title":{"rendered":"zencart\u5728configuration\u83dc\u5355\u4e0b\u65b0\u5efa\u9009\u9879\u65b9\u6cd5"},"content":{"rendered":"<p> 1.\u5728admin\\includes\\boxes\\extra_boxes\u6587\u4ef6\u5939\u4e2d\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u547d\u540d\u4e3amy_configuration_dhtml.php<\/p>\n<p> \u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\uff1a<\/p>\n<p> $za_contents[] = array(&#8216;text&#8217; =&gt; BOX_CONFIGURATION_MY_BOX_MANAGER, &#8216;link&#8217; =&gt; zen_href_link(FILENAME_CONFIGURATION, &#8221;, &#8216;NONSSL&#8217;));<\/p>\n<p> 2.\u5728\/admin\/includes\/extra_datafiles\/\u52a0\u5165\u4e00\u4e2a\u6587\u4ef6\uff0c\u547d\u540d\u4e3amy_configuration_box.php<\/p>\n<p> \u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\uff1a<\/p>\n<p> define(&#8216;BOX_CONFIGURATION_MY_BOX_MANAGER&#8217;,&#8217;My Box&#8217;);<\/p>\n<p> 3.\u5728SQL\u5b89\u88c5\u5de5\u5177\u4e2d\u6267\u884cSQL\u8bed\u53e5\uff1a<\/p>\n<p> INSERT INTO configuration_group VALUES (NULL, &#8216;My Box Manage&#8217;, &#8216;\u5b9a\u4e49\u4e00\u4e9b\u7528\u5230\u7684\u5e38\u91cf&#8217;, NULL, &#8216;1&#8217;);<\/p>\n<p> UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();<\/p>\n<p> INSERT INTO admin_pages VALUES (&#8216;my-box-manage&#8217;,&#8217;BOX_CONFIGURATION_MY_BOX_MANAGER&#8217;,&#8217;FILENAME_CONFIGURATION&#8217;,<br \/> &#8216;gID=18346&#8242;,&#8217;configuration&#8217;, &#8216;Y&#8217;, &#8216;0&#8217;);\/\/\u8be5\u8bed\u53e5\u76f8\u5f53\u4e8e\u6ce8\u518c\u9875\u9762\u7684\u529f\u80fd<\/p>\n<p> UPDATE `admin_pages` SET `page_params` = CONCAT (&#8216;gID=&#8217;,(SELECT `configuration_group_id` FROM `configuration_group` WHERE<br \/> `configuration_group_title` = &#8216;My Box Manage&#8217;)) WHERE `page_key` = &#8216;my-box-manage&#8217;;<\/p>\n<p> \u4e0a\u9762\u7684gID=\u8fd9\u4e2a\u503c\u662fconfiguration_group\u8868\u4e2dMy Box Manage\u5bf9\u5e94\u7684id\u6570\u503c\uff0c\u6240\u4ee5\u4e5f\u53ef\u4ee5\u81ea\u884c\u67e5\u770b\u540e\u76f4\u63a5\u5728\u6570\u636e\u5e93\u4fee\u6539\u3002<\/p>\n<p> \u800c\u540e\u5373\u53ef\u5728\u540e\u53f0\u5546\u5e97\u7ba1\u7406\u9875\u9762\u770b\u5230My Box\u9009\u9879\u4e86\u3002<\/p>\n<p> 4.\u7ed9My Box\u9009\u9879\u5361\u589e\u52a0\u81ea\u5b9a\u4e49\u914d\u7f6e\u9879<\/p>\n<p> INSERT INTO configuration VALUES (NULL,&#8217;\u5f00\u542f\u67d0\u529f\u80fd\u6309\u94ae&#8217;,&#8217;GLOBALSNSTUIGUANG_CONFIG_STATUS&#8217;,&#8217;false&#8217;,&#8217;\u662f\u5426\u5f00\u542f<br \/> (\u9ed8\u8ba4:false)&#8217;,(SELECT `configuration_group_id` FROM `configuration_group` WHERE<br \/> `configuration_group_title` = &#8216;My Box Manage&#8217;),&#8217;19&#8217;,NULL, now(),NULL,&#8217;zen_cfg_select_option(array(&#8220;true&#8221;, &#8220;false&#8221;),&#8217;);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5728admin\\includes\\boxes\\extra_boxes\u6587\u4ef6\u5939\u4e2d\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u547d\u540d\u4e3amy_configuration_dhtml.php \u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\uff1a $za_contents[] = array(&#8216;text&#8217; =&gt; BOX_CONFIGURATION_MY_BOX_MANAGER, &#8216;link&#8217; =&gt; zen_href_link(FILENAME_CONFIGURATION, &#8221;, &#8216;NONSSL&#8217;)); 2.\u5728\/admin\/includes\/extra_datafiles\/\u52a0\u5165\u4e00\u4e2a\u6587\u4ef6\uff0c\u547d\u540d\u4e3amy_configuration_box.php \u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\uff1a define(&#8216;BOX_CONFIGURATION_MY_BOX_MANAGER&#8217;,&#8217;My Box&#8217;); 3.\u5728SQL\u5b89\u88c5\u5de5\u5177\u4e2d\u6267\u884cSQL\u8bed\u53e5\uff1a INSERT INTO configuration_group VALUES (NULL, &#8216;My Box Manage&#8217;, &#8216;\u5b9a\u4e49\u4e00\u4e9b\u7528\u5230\u7684\u5e38\u91cf&#8217;, NULL, &#8216;1&#8217;); UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id(); INSERT INTO admin_pages VALUES (&#8216;my-box-manage&#8217;,&#8217;BOX_CONFIGURATION_MY_BOX_MANAGER&#8217;,&#8217;FILENAME_CONFIGURATION&#8217;, &#8216;gID=18346&#8242;,&#8217;configuration&#8217;, &#8216;Y&#8217;, &#8216;0&#8217;);\/\/\u8be5\u8bed\u53e5\u76f8\u5f53\u4e8e\u6ce8\u518c\u9875\u9762\u7684\u529f\u80fd UPDATE `admin_pages` SET `page_params` = CONCAT (&#8216;gID=&#8217;,(SELECT `configuration_group_id` FROM [&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-60732","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60732","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=60732"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60732\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}