{"id":60698,"date":"2025-04-26T09:03:01","date_gmt":"2025-04-26T01:03:01","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60698\/"},"modified":"2025-04-26T09:03:01","modified_gmt":"2025-04-26T01:03:01","slug":"%e4%bf%ae%e6%94%b9%e8%ae%a9zencart%e4%ba%a7%e5%93%81%e8%af%a6%e7%bb%86%e9%a1%b5%e5%ae%9e%e7%8e%b0%e5%a4%9a%e5%9b%be","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60698\/","title":{"rendered":"\u4fee\u6539\u8ba9zencart\u4ea7\u54c1\u8be6\u7ec6\u9875\u5b9e\u73b0\u591a\u56fe"},"content":{"rendered":"<p>zencart\u4ea7\u54c1\u5b9e\u73b0\u591a\u56fe\u7684\u6559\u7a0b\u5f88\u591a\uff0c\u90fd\u662f\u901a\u8fc7\u5229\u7528Image Handler2\u63d2\u4ef6\u6765\u5b9e\u73b0\u3002\u4f46\u53ea\u6709\u5728\u9ed8\u8ba4\u6a21\u677f\u4e0b\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\uff0c\u590d\u5236\u8fc7\u7684\u6a21\u677f\u6709\u7684\u65f6\u5019\u4e0d\u80fd\u5b9e\u73b0\uff0c\u4e3b\u8981\u95ee\u9898\u51fa\u73b0\u5728\u4ee5\u4e0b2\u4e2aphp\u6587\u4ef6\u4e2d\uff1a   &nbsp;   \u6b21\u6587\u4ef6\u5728\u4f60\u7684\u6a21\u677f\/templates\/tpl_product_info_display.php   &nbsp;   \u9996\u5148\u8ddf\u6a21\u677f\u6587\u4ef6\u505a\u5bf9\u6bd4\uff0c\u770b\u770b\u662f\u5426\u5b58\u4e0b\u4e0b\u9762\u7684\u4ee3\u7801\uff0c\u5982\u4e0d\u5b58\u5728\u8bf7\u52a0\u5728\u4ee5\u4e0b\u4ee3\u7801\u4e0b\u9762   &nbsp;   &lt;!\u2013bof Quantity Discounts table \u2013&gt;   &nbsp;   &lt;?php   &nbsp;   if ($products_discount_type != 0) { ?&gt;   &nbsp;   &lt;?php   &nbsp;   \/**   &nbsp;   * display the products quantity discount   &nbsp;   *\/   &nbsp;   require($template-&gt;get_template_dir(\u2018\/tpl_modules_products_quantity_discounts.php\u2019,DIR_WS_TEMPLATE, $current_page_base,\u2019templates\u2019). \u2018\/tpl_modules_products_quantity_discounts.php\u2019); ?&gt;   &nbsp;   &lt;?php   &nbsp;   }   &nbsp;   ?&gt;   &nbsp;   &lt;!\u2013eof Quantity Discounts table \u2013&gt;   &nbsp;   \u8ddf\u5728\u540e\u9762\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a   &nbsp;   &lt;!\u2013bof Additional Product Images \u2013&gt;   &nbsp;   &lt;?php   &nbsp;   \/**   &nbsp;   * display the products additional images   &nbsp;   *\/   &nbsp;   require($template-&gt;get_template_dir(\u2018\/tpl_modules_additional_images.php\u2019,DIR_WS_TEMPLATE, $current_page_base,\u2019templates\u2019). \u2018\/tpl_modules_additional_images.php\u2019); ?&gt;   &nbsp;   &lt;!\u2013eof Additional Product Images \u2013&gt;   &nbsp;   \u5982\u679c\u8fd8\u4e0d\u80fd\u663e\u793a\uff0c\u4ece\u9ed8\u8ba4\u6a21\u677f\u4e2d\u590d\u5236tpl_modules_additional_images.php\u6587\u4ef6 \uff0c\u66ff\u6362\u4f60\u7684\u6a21\u677f\/templates\/tpl_modules_additional_images.php\u6587\u4ef6\uff0c\u5373\u53ef\u663e\u793a\u3002   &nbsp;   \u4e0b\u9762\u662f\u8f6c\u8f7d\u522b\u4eba\u7684\u4e0a\u4f20\u6559\u7a0b\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u770b\u4e0b\uff1a   &nbsp;   Zencart\u5e94\u8be5\u662f\u5927\u591a\u6570\u4eba\u5728\u505a\u5916\u8d38\u7ad9\u65f6\u7684\u9996\u9009\uff0c\u6a21\u677f\u8d44\u6e90\u4e30\u5bcc\uff0c\u63d2\u4ef6\u529f\u80fd\u9f50\u5168\u3002\u53ea\u662f\u5bf9\u4e8e\u5f88\u591a\u4ece\u4e8b\u975e\u6280\u672f\u7c7b\u7684\u7f51\u7ad9\u63a8\u5e7f\u4eba\u5458\u6765\u8bf4\uff0czencart\u4e0d\u90a3 \u4e48\u597d\u638c\u63a7\u548c\u4fee\u6539\u3002\u5c31\u50cf\u6211\u6765\u8bf4\uff0c\u6bcf\u6b21\u9047\u5230\u4e2a\u95ee\u9898\u5c31\u5f97\u4e0d\u505c\u7684Google\u627e\u7b54\u6848\uff0c\u975e\u5e38\u8d39\u65f6\u8017\u529b\u3002\u6240\u4ee5\u6253\u7b97\u628a\u5e73\u65f6\u9047\u5230\u7684\u4e9b\u95ee\u9898\u548c\u89e3\u7b54\u529e\u6cd5\u90fd\u5199\u51fa\u6765\uff0c\u65b9\u4fbf\u81ea\u5df1\u540c\u65f6 \u4e5f\u5e0c\u671b\u80fd\u5e2e\u5230\u5927\u5bb6\u3002\u4eca\u5929\u8fd9\u91cc\u5199\u7684\u65f6\u5982\u4f55\u5728Zencart\u91cc\u7ed9\u4e00\u4e2a\u4ea7\u54c1\u6dfb\u52a0\u591a\u4e2a\u56fe\u7247\u3002   &nbsp;   Zencart\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4ea7\u54c1\u56fe\u7247\u53ea\u4f1a\u663e\u793a\u4e00\u4e2a\uff0c\u8fd9\u5bf9\u5f88\u591a\u9700\u8981\u5c55\u793a\u4ea7\u54c1\u7ec6\u8282\u9700\u8981\u7684\u7f51\u7ad9\u6765\u8bf4\u6bd4\u8f83\u5934\u75bc\u3002\u8fd9\u91cc\u6709\u4e24\u4e2a\u529e\u6cd5\u53ef\u4ee5\u89e3\u51b3Zencart\u4ea7\u54c1\u591a\u56fe \u7684\u95ee\u9898\u3002   &nbsp;   \u65b9\u6cd5\u4e00\uff1a\u7528FTP\u4e0a\u4f20\u6570\u636e \u64cd\u4f5c\u8fc7\u7a0b\uff1a   &nbsp;   \u7b2c\u4e00\u6b65\uff1a\u4e0b\u8f7d\u597dftp\u8f6f\u4ef6\uff0c\u5b89\u88c5\u4f7f\u7528\uff0c\u94fe\u63a5\u597d\u9700\u8981\u64cd\u4f5c\u7684\u7ad9\u70b9   &nbsp;   \u7b2c\u4e8c\u6b65\uff1a\u5148\u6309\u7167\u6b63\u5e38\u65b9\u5f0f\uff0c\u5728\u628a\u4ea7\u54c1\u56fe\u7247\u4f20\u4e0a\u53bb\uff0c\u7136\u540e\u518d\u51c6\u5907\u7ec6\u8282 \u56fe\u7247\uff0c\u6ce8\u610f\u547d\u540d\u65b9\u5f0f   &nbsp;   \u6bd4\u5982\uff1a\u4ea7\u54c1\u540d\u79f0\u662f &nbsp; BT104-1.jpg   &nbsp;   \u90a3\u4e48\u5176\u76f8\u5bf9\u5e94\u7684\u7ec6\u8282\u56fe\u5219\u9700\u8981\u547d\u540d\u4e3a   &nbsp;   BT104-1_01.jpg &nbsp; &nbsp;BT104-1_02.jpg &nbsp; &nbsp;BT104-1 _03.jpg &nbsp; &nbsp;BT104-1_04 .jpg   &nbsp;   \u5355\u4e2a\u4ea7\u54c1\uff0c\u6709\u51e0\u5f20\u7ec6\u8282\u56fe\uff0c\u5c31\u547d\u540d\u51e0\u5f20   &nbsp;   \u7b2c\u4e09\u6b65\uff1a\u628a\u51c6\u5907\u597d\u7684\u56fe\u7247\uff0c\u6253\u5305\u4f20\u5230FTP\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u518d\u5230\u7a7a\u95f4\u540e\u53f0\uff0c\u628a\u56fe\u7247\u538b\u7f29\u5305\u89e3\u538b\u5373\u53ef\uff08\u6ce8\u610f\uff1azencart\u53ea\u652f\u6301zip\u683c\u5f0f\u7684\u538b\u7f29\u5305\u89e3\u538b\uff09   &nbsp;   \u5982\u4e0a\uff0c\u6240\u6709\u7684\u4ea7\u54c1\u7ec6\u8282\u56fe\uff0c\u5c31\u4f1a\u81ea\u52a8\u51fa\u73b0\u5728\u5bf9\u5e94\u4ea7\u54c1\u7684\u8be6\u7ec6 \u4ecb\u7ecd\u9875\u9762\u91cc\u9762\u4e86\uff0c\u5927\u529f\u544a\u6210\u3002   &nbsp;   \u65b9\u6cd5\u4e8c\uff1aImage Handler\u63d2\u4ef6   &nbsp;   \u8fd9\u4e2a\u4e5f\u662f\u6211\u6240\u7528\u7684\u65b9\u6cd5\uff0c\u6bd4\u8f83\u7b80\u5355\u5b9e\u7528\u3002\u4e0b\u8f7d\u63d2\u4ef6\u540e\u6309Readme\u6587\u4ef6\u4e00\u6b65\u6b65\u64cd\u4f5c\uff0c\u5b89\u88c5\u5e94\u8be5\u6ca1\u4ec0\u4e48\u96be\u5ea6\u3002   &nbsp;   \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8fdb\u5165Zencart\u540e\u53f0\uff0c\u4f9d\u6b21\u8fdb\u5165Tools -&gt; Image Handler2\u3002   &nbsp;   \u9009\u62e9\u5206\u7c7b\u548c\u4f60\u6240\u8981\u6dfb\u52a0\u56fe\u7247\u7684\u4ea7\u54c1\uff0c\u7136\u540e\u5728\u53f3\u4e0b\u4fa7\u70b9\u51fb\u6dfb\u52a0\uff1a   &nbsp;   image suffix\u7559\u7a7a\u5373\u53ef\uff0c\u7136\u540e\u9009\u62e9\u672c\u5730\u56fe\u7247\u6587\u4ef6\u8fdb\u884c\u4e0a\u4f20\u4fdd\u5b58\uff0c\u8fd9\u65f6\u7ed9Zencart\u91cc\u540c\u4e00\u4ea7\u54c1\u6dfb\u52a0\u591a\u4e2a\u56fe\u7247\u5c31\u57fa\u672c\u5b9e\u73b0\u4e86\uff0c\u63a5\u4e0b\u6765\u662f\u600e\u4e48\u628a\u8fd9\u4e9b\u56fe\u7247\u7ed9\u663e\u793a\u51fa \u6765\u3002   &nbsp;   \u9996\u5148\u5728Zencart\u540e\u53f0\u5e97\u5bb6configuration -&gt; images   &nbsp;   \u627e\u5230\u201cProduct Info \u2013 Number of Additional Images per Row\u201d\u8fd9\u9879\uff0c\u586b\u4e0a\u4f60\u6240\u5e0c\u671b\u7684\u663e\u793a\u6570\u76ee\u3002   &nbsp;   \u7b2c\u4e8c\u6b65\u662f\u4fee\u6539\u6a21\u677f\u3002\u5982\u679c\u4e0d\u662fZencart\u7684\u9ed8\u8ba4\u6a21\u677f\uff0c\u53ef\u80fdadditional images\u8fd9\u90e8\u5206\u4f1a\u6ca1\u6709\u3002\u6240\u4ee5\u5bf9\u6bd4\u4f60\u7684\u4ea7\u54c1\u5c55\u793a\u6a21\u677f\u548cZencart\u9ed8\u8ba4\u7684\u4ea7\u54c1\u5c55\u793a\u6a21\u677f\uff0c\u627e\u5230additional images\u8fd9\u90e8\u5206\uff0c\u6dfb\u52a0\u5230\u76f8\u5e94\u7684\u4f4d\u7f6e\uff0c\u8fd9\u6837\u4f60\u6240\u6dfb\u52a0\u7684\u4ea7\u54c1\u7ec6\u8282\u56fe\u7247\u5373\u53ef\u5c55\u793a\u51fa\u6765\u3002   &nbsp;   \u4ea7\u54c1\u5c55\u793a\u6a21\u677f\u4f4d\u4e8e\u201cincludestemplatestemplate_defaulttemplates\u201d\u4e0b\uff0c\u6587\u4ef6\u540d\u4e3a \u201ctpl_product_info_display.php\u201d   &nbsp;   additional images\u663e\u793a\u7684\u4ee3\u7801\u4e3a   &nbsp;   &lt;!\u2013bof Additional Product Images \u2013&gt;   &nbsp;   &lt;?php   &nbsp;   \/**   &nbsp;   * display the products additional images   &nbsp;   *\/   &nbsp;   require($template-&gt;get_template_dir(\u2018\/tpl_modules_additional_images.php\u2019,DIR_WS_TEMPLATE, $current_page_base,\u2019templates\u2019). \u2018\/tpl_modules_additional_images.php\u2019); ?&gt;   &nbsp;   &lt;!\u2013eof Additional Product Images \u2013&gt;   &nbsp;   \u8fd9\u6837\u5728\u81ea\u5df1zencart\u6a21\u7248\u60f3\u8981\u5c55\u793a\u591a\u56fe\u7684\u4f4d\u7f6e\u6dfb\u52a0\u8fd9\u6bb5\u4ee3\u7801\u5373\u53ef\u3002   &nbsp; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>zencart\u4ea7\u54c1\u5b9e\u73b0\u591a\u56fe\u7684\u6559\u7a0b\u5f88\u591a\uff0c\u90fd\u662f\u901a\u8fc7\u5229\u7528Image Handler2\u63d2\u4ef6\u6765\u5b9e\u73b0\u3002\u4f46\u53ea\u6709\u5728\u9ed8\u8ba4\u6a21\u677f\u4e0b\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\uff0c\u590d\u5236\u8fc7\u7684\u6a21\u677f\u6709\u7684\u65f6\u5019\u4e0d\u80fd\u5b9e\u73b0\uff0c\u4e3b\u8981\u95ee\u9898\u51fa\u73b0\u5728\u4ee5\u4e0b2\u4e2aphp\u6587\u4ef6\u4e2d\uff1a &nbsp; \u6b21\u6587\u4ef6\u5728\u4f60\u7684\u6a21\u677f\/templates\/tpl_product_info_display.php &nbsp; \u9996\u5148\u8ddf\u6a21\u677f\u6587\u4ef6\u505a\u5bf9\u6bd4\uff0c\u770b\u770b\u662f\u5426\u5b58\u4e0b\u4e0b\u9762\u7684\u4ee3\u7801\uff0c\u5982\u4e0d\u5b58\u5728\u8bf7\u52a0\u5728\u4ee5\u4e0b\u4ee3\u7801\u4e0b\u9762 &nbsp; &lt;!\u2013bof Quantity Discounts table \u2013&gt; &nbsp; &lt;?php &nbsp; if ($products_discount_type != 0) { ?&gt; &nbsp; &lt;?php &nbsp; \/** &nbsp; * display the products quantity discount &nbsp; *\/ &nbsp; require($template-&gt;get_template_dir(\u2018\/tpl_modules_products_quantity_discounts.php\u2019,DIR_WS_TEMPLATE, $current_page_base,\u2019templates\u2019). \u2018\/tpl_modules_products_quantity_discounts.php\u2019); ?&gt; &nbsp; &lt;?php &nbsp; } &nbsp; ?&gt; &nbsp; &lt;!\u2013eof Quantity Discounts table \u2013&gt; &nbsp; \u8ddf\u5728\u540e\u9762\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a &nbsp; &lt;!\u2013bof [&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-60698","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60698","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=60698"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60698\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}