{"id":60861,"date":"2025-04-26T08:36:54","date_gmt":"2025-04-26T00:36:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60861\/"},"modified":"2025-04-26T08:36:54","modified_gmt":"2025-04-26T00:36:54","slug":"%e5%bd%bb%e5%ba%95%e5%be%81%e6%9c%8dzencart%e7%9a%84%e9%bb%98%e8%ae%a4page%e9%a1%b5%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60861\/","title":{"rendered":"\u5f7b\u5e95\u5f81\u670dzencart\u7684\u9ed8\u8ba4page\u9875\u9762"},"content":{"rendered":"<p> zencart\u5b89\u88c5\u540e\u9ed8\u8ba4\u4f1a\u6709page_2\u3001page_3\u3001page_4\u8fd93\u4e2a\u6ca1\u6709\u5565\u7528\u5904\u7684\u9875\u9762\uff0c\u73b0\u5728\u6211\u4eec\u62ff\u5176\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u4fee\u6539\u6210about us\u9875\u9762\uff0c\u901a\u8fc7\u8fd9\u6837\u7684\u4fee\u6539\u4f60\u5c31\u4f1a\u77e5\u9053\u81ea\u5df1\u6dfb\u52a0\u9875\u9762\u9700\u8981\u600e\u4e48\u5904\u7406\u4e86\u3002<\/p>\n<p> \u6211\u4eec\u4ee5\u9ed8\u8ba4\u7684classic\u6a21\u7248\u4e3a\u4f8b\u6765\u4ecb\u7ecd\u4e0b\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<p> 1\u3001\u6253\u5f00\/includes\/filenames.php\uff0c\u6328\u7740contact_us\uff08\u975e\u5fc5\u987b\u6328\u7740\uff09\u6dfb\u52a0\u4e0b\u9762\u4e24\u53e5\u540e\u4fdd\u5b58\uff1a<\/p>\n<pre>\r\ndefine('FILENAME_DEFINE_ABOUT_US', 'define_about_us'); \r\ndefine('FILENAME_ABOUT_US', 'about_us');\r\n<\/pre>\n<p> 2\u3001\u6253\u5f00\/includes\/modules\/pages\uff0c\u8be5\u6587\u4ef6\u5939\u4e0b\u6709page_2\u3001page_3\u3001page_4\u8fd93\u4e2a\u6587\u4ef6\u5939\uff0c\u5047\u8bbe\u6211\u4eec\u8981\u62ffpage 2\u5f00\u5200\uff0c\u5c31\u5c06page_2\u7684\u6587\u4ef6\u5939\u540d\u79f0\u6539\u4e3aabout_us\uff0c\u6539\u5b8c\u540e\u6253\u5f00about_us\uff0c\u6253\u5f00\u91cc\u9762\u7684header_php.php\uff0c\u4fee\u6539\u91cc\u9762\u7684&nbsp;FILENAME_DEFINE_PAGE_2&nbsp;\u4e3aFILENAME_DEFINE_ABOUT_US&nbsp;\u5e76\u4fdd\u5b58\uff1b<\/p>\n<p> 3\u3001\u6253\u5f00\/includes\/languages\/english.php\uff0c\u4fee\u6539\u91cc\u9762\u7684define(&#8216;BOX_INFORMATION_PAGE_2&#8217;, &#8216;Page 2&#8217;);&nbsp;\u4e3adefine(&#8216;BOX_INFORMATION_ABOUT_US&#8217;, &#8216;About Us&#8217;);&nbsp;\u5e76\u4fdd\u5b58\uff1b<\/p>\n<p> 4\u3001\u6253\u5f00\/includes\/languages\/english\/\uff0c\u5c06\u91cc\u9762\u7684&nbsp;page_2.php&nbsp;\u66f4\u540d\u4e3a&nbsp;about_us.php&nbsp;\uff0c\u6253\u5f00about_us.php\uff0c\u4fee\u6539\u91cc\u9762\u7684&nbsp;Page 2&nbsp;\u4e3a&nbsp;About Us&nbsp;\u5e76\u4fdd\u5b58\uff1b<\/p>\n<p> 5\u3001\u6253\u5f00\/includes\/languages\/english\/html_includes\/classic\/\uff0c\u5c06\u91cc\u9762\u7684define_page_2.php&nbsp;\u66f4\u540d\u4e3a&nbsp;define_about_us.php\uff0c\u4e0a\u9762\u76ee\u5f55classic\u4e3a\u9ed8\u8ba4\u6a21\u7248\u540d\uff0c\u6700\u597d\u5c06\/includes\/languages\/english\/html_includes\u4e0b\u7684define_page_2.php\u4e00\u5e76\u66f4\u540d\u4e3adefine_about_us.php\u3002<\/p>\n<p> 6\u3001\u6253\u5f00\/includes\/templates\/template_default\/templates\/\uff0c\u5c06\u91cc\u9762\u7684tpl_page_2_default.php&nbsp;\u66f4\u540d\u4e3a&nbsp;tpl_about_us_default.php\uff0c\u7136\u540e\u6253\u5f00tpl_about_us_default.php\uff0c\u4fee\u6539&nbsp;DEFINE_PAGE_2_STATUS&nbsp;\u4e3a&nbsp;DEFINE_ABOUT_US_STATUS,\u5e76\u4fdd\u5b58\u3002<\/p>\n<p> \u5230\u8fd9\u4e00\u6b65\u57fa\u672c\u4e0a\u5df2\u7ecf\u5927\u529f\u544a\u6210\uff0c\u4f46\u662f\u6253\u5f00 yourdomain.com\/index.php?main_page=about_us \u9664\u4e86\u663e\u793aabout us\u7684\u6807\u9898\u5916\u5e76\u4e0d\u663e\u793a\u5185\u5bb9\uff0c\u95ee\u9898\u51fa\u5728\u7b2c6\u6b65 tpl_about_us_default.php \u6587\u4ef6\u91cc\u768415\u884c\u4e00\u4e2a\u5224\u65ad\uff1a<\/p>\n<pre>\r\n&lt;?php if (DEFINE_ABOUT_US_STATUS &gt;= 1 and DEFINE_ABOUT_US_STATUS &lt;= 2) { ?&gt;\r\n<\/pre>\n<p> \u5982\u679c\u6211\u4eec\u4e0d\u4fee\u6539DEFINE_PAGE_2_STATUS&nbsp;\u4e3a&nbsp;DEFINE_ABOUT_US_STATUS\u6216\u8bb8\u4e0d\u5f71\u54cd\u8fd9\u4e2a\u5224\u65ad\uff0c\u4f46\u662f\u4e0d\u6539\u4e2a\u4eba\u89c9\u5f97\u4e0d\u723d\uff0c\u7814\u7a76\u4e86\u4e00\u4e0b\u6709\u4e24\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1a<\/p>\n<p> 1\u3001\u76f4\u63a5\u5220\u9664\u8fd9\u4e2a\u5224\u65ad\uff0c\u5220\u638915\u884c\u4e0a\u9762\u7684\u90a3\u53e5\uff0c\u5220\u5b8c\u8bb0\u5f97\u8981\u628a24\u884c\u7684&lt;span&gt;&lt;&lt;\/span&gt;?php } &lt;span&gt;?&gt;&lt;\/span&gt;\u4e5f\u5220\u4e86\uff0c\u4e0d\u7136\u4f1a\u51fa\u9519\uff0c\u5220\u6389\u4e00\u4e86\u767e\u4e86\u3002<br \/> 2\u3001\u6253\u5f00\u6570\u636e\u5e93\uff0c\u641c\u7d22&nbsp;Define Page 2&nbsp;\u5728\u8868&nbsp;configuration&nbsp;\u4e2d\u627e\u5230Define Page 2\u5bf9\u5e94\u7684configuration_id\uff0c\u6bd4\u5982\u6211\u7684\u662f522\uff0c\u8fd9\u4e2a\u5343\u4e07\u4e0d\u80fd\u641e\u9519\uff0c\u7136\u540e\u8fd0\u884c\u4e0b\u9762\u7684sql\uff08\u8bb0\u5f97\u4fee\u6539\u6700\u540e\u7684\u90a3\u4e2aid\u4e3a\u4f60\u7684id\uff09\uff1a<\/p>\n<pre>\r\nUPDATE  `\u4f60\u7684\u6570\u636e\u5e93\u540d`.`configuration` SET  `configuration_title` =  'Define About Us',\r\n`configuration_key` =  'DEFINE_ABOUT_US_STATUS',\r\n`configuration_description` =  'Enable the Defined About us Link\/Text?&lt;br \/&gt;0= Link ON, Define Text OFF&lt;br \/&gt;1= Link ON, Define Text ON&lt;br \/&gt;2= Link OFF, Define Text ON&lt;br \/&gt;3= Link OFF, Define Text OFF' WHERE `configuration`.`configuration_id` =522;\r\n<\/pre>\n<p> \u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u901a\u8fc7\u540e\u53f0 \u3010\u5546\u5e97\u8bbe\u7f6e\u3011 -&gt; \u3010\u5b9a\u4e49\u9875\u9762\u3011 \u6765\u63a7\u5236\u662f\u5426\u663e\u793aabout\u9875\u9762\u7684\u5185\u5bb9\u4e86\u3002\u4fee\u6539\u9875\u9762\u5185\u5bb9\u5728\u540e\u53f0 \u3010\u5de5\u5177\u3011 -&gt; \u3010\u9875\u9762\u7f16\u8f91\u3011\uff0c\u627e\u5230\u5bf9\u5e94\u7684about us\u7f16\u8f91\u5c31\u597d\u4e86\u3002<\/p>\n<p> \u540c\u6837\u7684\u6b65\u9aa4\u6765\u589e\u52a0\u548c\u4fee\u6539\u6587\u4ef6\uff0c\u5c31\u53ef\u4ee5\u6dfb\u52a0\u81ea\u5df1\u7684\u9875\u9762\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>zencart\u5b89\u88c5\u540e\u9ed8\u8ba4\u4f1a\u6709page_2\u3001page_3\u3001page_4\u8fd93\u4e2a\u6ca1\u6709\u5565\u7528\u5904\u7684\u9875\u9762\uff0c\u73b0\u5728\u6211\u4eec\u62ff\u5176\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u4fee\u6539\u6210about us\u9875\u9762\uff0c\u901a\u8fc7\u8fd9\u6837\u7684\u4fee\u6539\u4f60\u5c31\u4f1a\u77e5\u9053\u81ea\u5df1\u6dfb\u52a0\u9875\u9762\u9700\u8981\u600e\u4e48\u5904\u7406\u4e86\u3002 \u6211\u4eec\u4ee5\u9ed8\u8ba4\u7684classic\u6a21\u7248\u4e3a\u4f8b\u6765\u4ecb\u7ecd\u4e0b\u5177\u4f53\u6b65\u9aa4\uff1a 1\u3001\u6253\u5f00\/includes\/filenames.php\uff0c\u6328\u7740contact_us\uff08\u975e\u5fc5\u987b\u6328\u7740\uff09\u6dfb\u52a0\u4e0b\u9762\u4e24\u53e5\u540e\u4fdd\u5b58\uff1a define(&#8216;FILENAME_DEFINE_ABOUT_US&#8217;, &#8216;define_about_us&#8217;); define(&#8216;FILENAME_ABOUT_US&#8217;, &#8216;about_us&#8217;); 2\u3001\u6253\u5f00\/includes\/modules\/pages\uff0c\u8be5\u6587\u4ef6\u5939\u4e0b\u6709page_2\u3001page_3\u3001page_4\u8fd93\u4e2a\u6587\u4ef6\u5939\uff0c\u5047\u8bbe\u6211\u4eec\u8981\u62ffpage 2\u5f00\u5200\uff0c\u5c31\u5c06page_2\u7684\u6587\u4ef6\u5939\u540d\u79f0\u6539\u4e3aabout_us\uff0c\u6539\u5b8c\u540e\u6253\u5f00about_us\uff0c\u6253\u5f00\u91cc\u9762\u7684header_php.php\uff0c\u4fee\u6539\u91cc\u9762\u7684&nbsp;FILENAME_DEFINE_PAGE_2&nbsp;\u4e3aFILENAME_DEFINE_ABOUT_US&nbsp;\u5e76\u4fdd\u5b58\uff1b 3\u3001\u6253\u5f00\/includes\/languages\/english.php\uff0c\u4fee\u6539\u91cc\u9762\u7684define(&#8216;BOX_INFORMATION_PAGE_2&#8217;, &#8216;Page 2&#8217;);&nbsp;\u4e3adefine(&#8216;BOX_INFORMATION_ABOUT_US&#8217;, &#8216;About Us&#8217;);&nbsp;\u5e76\u4fdd\u5b58\uff1b 4\u3001\u6253\u5f00\/includes\/languages\/english\/\uff0c\u5c06\u91cc\u9762\u7684&nbsp;page_2.php&nbsp;\u66f4\u540d\u4e3a&nbsp;about_us.php&nbsp;\uff0c\u6253\u5f00about_us.php\uff0c\u4fee\u6539\u91cc\u9762\u7684&nbsp;Page 2&nbsp;\u4e3a&nbsp;About Us&nbsp;\u5e76\u4fdd\u5b58\uff1b 5\u3001\u6253\u5f00\/includes\/languages\/english\/html_includes\/classic\/\uff0c\u5c06\u91cc\u9762\u7684define_page_2.php&nbsp;\u66f4\u540d\u4e3a&nbsp;define_about_us.php\uff0c\u4e0a\u9762\u76ee\u5f55classic\u4e3a\u9ed8\u8ba4\u6a21\u7248\u540d\uff0c\u6700\u597d\u5c06\/includes\/languages\/english\/html_includes\u4e0b\u7684define_page_2.php\u4e00\u5e76\u66f4\u540d\u4e3adefine_about_us.php\u3002 6\u3001\u6253\u5f00\/includes\/templates\/template_default\/templates\/\uff0c\u5c06\u91cc\u9762\u7684tpl_page_2_default.php&nbsp;\u66f4\u540d\u4e3a&nbsp;tpl_about_us_default.php\uff0c\u7136\u540e\u6253\u5f00tpl_about_us_default.php\uff0c\u4fee\u6539&nbsp;DEFINE_PAGE_2_STATUS&nbsp;\u4e3a&nbsp;DEFINE_ABOUT_US_STATUS,\u5e76\u4fdd\u5b58\u3002 \u5230\u8fd9\u4e00\u6b65\u57fa\u672c\u4e0a\u5df2\u7ecf\u5927\u529f\u544a\u6210\uff0c\u4f46\u662f\u6253\u5f00 yourdomain.com\/index.php?main_page=about_us \u9664\u4e86\u663e\u793aabout us\u7684\u6807\u9898\u5916\u5e76\u4e0d\u663e\u793a\u5185\u5bb9\uff0c\u95ee\u9898\u51fa\u5728\u7b2c6\u6b65 tpl_about_us_default.php \u6587\u4ef6\u91cc\u768415\u884c\u4e00\u4e2a\u5224\u65ad\uff1a &lt;?php if (DEFINE_ABOUT_US_STATUS &gt;= 1 and DEFINE_ABOUT_US_STATUS &lt;= 2) { ?&gt; \u5982\u679c\u6211\u4eec\u4e0d\u4fee\u6539DEFINE_PAGE_2_STATUS&nbsp;\u4e3a&nbsp;DEFINE_ABOUT_US_STATUS\u6216\u8bb8\u4e0d\u5f71\u54cd\u8fd9\u4e2a\u5224\u65ad\uff0c\u4f46\u662f\u4e0d\u6539\u4e2a\u4eba\u89c9\u5f97\u4e0d\u723d\uff0c\u7814\u7a76\u4e86\u4e00\u4e0b\u6709\u4e24\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1a 1\u3001\u76f4\u63a5\u5220\u9664\u8fd9\u4e2a\u5224\u65ad\uff0c\u5220\u638915\u884c\u4e0a\u9762\u7684\u90a3\u53e5\uff0c\u5220\u5b8c\u8bb0\u5f97\u8981\u628a24\u884c\u7684&lt;span&gt;&lt;&lt;\/span&gt;?php } &lt;span&gt;?&gt;&lt;\/span&gt;\u4e5f\u5220\u4e86\uff0c\u4e0d\u7136\u4f1a\u51fa\u9519\uff0c\u5220\u6389\u4e00\u4e86\u767e\u4e86\u3002 2\u3001\u6253\u5f00\u6570\u636e\u5e93\uff0c\u641c\u7d22&nbsp;Define Page 2&nbsp;\u5728\u8868&nbsp;configuration&nbsp;\u4e2d\u627e\u5230Define Page 2\u5bf9\u5e94\u7684configuration_id\uff0c\u6bd4\u5982\u6211\u7684\u662f522\uff0c\u8fd9\u4e2a\u5343\u4e07\u4e0d\u80fd\u641e\u9519\uff0c\u7136\u540e\u8fd0\u884c\u4e0b\u9762\u7684sql\uff08\u8bb0\u5f97\u4fee\u6539\u6700\u540e\u7684\u90a3\u4e2aid\u4e3a\u4f60\u7684id\uff09\uff1a UPDATE `\u4f60\u7684\u6570\u636e\u5e93\u540d`.`configuration` SET `configuration_title` = &#8216;Define About Us&#8217;, `configuration_key` [&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-60861","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60861","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=60861"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60861\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}