{"id":32508,"date":"2024-11-25T09:26:56","date_gmt":"2024-11-25T01:26:56","guid":{"rendered":"https:\/\/fwq.ai\/blog\/32508\/"},"modified":"2024-11-25T09:26:56","modified_gmt":"2024-11-25T01:26:56","slug":"%e7%94%a8%e4%ba%8e%e6%98%be%e7%a4%ba-woocommerce-%e7%b1%bb%e5%88%ab%e3%80%81%e5%ad%90%e7%b1%bb%e5%88%ab%e5%92%8c%e4%ba%a7%e5%93%81%e7%9a%84%e5%8d%95%e7%8b%ac%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/32508\/","title":{"rendered":"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868"},"content":{"rendered":"<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838663800.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe\" \/><\/p>\n<p>WooCommerce \u4e3a\u60a8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5173\u4e8e\u53ef\u4ee5\u5728\u5b58\u6863\u9875\u9762\u4e0a\u663e\u793a\u7684\u5185\u5bb9\u7684\u9009\u9879\uff1a<\/p>\n<ul>\n<li>\u4ea7\u54c1<\/li>\n<li>\u7c7b\u522b\uff08\u5728\u4e3b\u5546\u5e97\u9875\u9762\u4e0a\uff09\u6216\u5b50\u7c7b\u522b\uff08\u5728\u7c7b\u522b\u9875\u9762\u4e0a\uff09<\/li>\n<li>\u4ea7\u54c1\u548c\u7c7b\u522b<\/li>\n<\/ul>\n<p>\u5f53\u6211\u5efa\u7acb\u5546\u5e97\u65f6\uff0c\u6211\u901a\u5e38\u9009\u62e9\u7b2c\u4e09\u4e2a\u9009\u9879\uff1a\u4ea7\u54c1\u548c\u7c7b\u522b\/\u5b50\u7c7b\u522b\u3002\u8fd9\u610f\u5473\u7740\u6211\u5546\u5e97\u7684\u8bbf\u95ee\u8005\u53ef\u4ee5\u76f4\u63a5\u4ece\u4e3b\u9875\u9009\u62e9\u4ea7\u54c1\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u4ea7\u54c1\u7c7b\u522b\u6863\u6848\u6765\u4f18\u5316\u641c\u7d22\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u6709\u4e00\u4e2a\u7f3a\u70b9\uff1a\u5b83\u5c06\u7c7b\u522b\/\u5b50\u7c7b\u522b\u4e00\u8d77\u663e\u793a\uff0c\u4e24\u8005\u4e4b\u95f4\u6ca1\u6709\u5206\u79bb\u3002\u8fd9\u610f\u5473\u7740\uff0c\u5982\u679c\u60a8\u7684\u4ea7\u54c1\u56fe\u7247\u4e0e\u4ea7\u54c1\u56fe\u7247\u7684\u5c3a\u5bf8\u4e0d\u540c\uff0c\u5219\u5e03\u5c40\u53ef\u80fd\u770b\u8d77\u6765\u6709\u70b9\u6df7\u4e71\u3002\u5373\u4f7f\u60a8\u7684\u56fe\u50cf\u5927\u5c0f\u76f8\u540c\uff0c\u5982\u679c\u5b58\u6863\u9875\u9762\u4e2d\u7684\u67d0\u4e00\u884c\u540c\u65f6\u5305\u542b\u7c7b\u522b\u548c\u4ea7\u54c1\uff0c\u5219\u7f3a\u5c11\u7c7b\u522b\u7684\u201c\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u201d\u6309\u94ae\u4f1a\u4f7f\u8be5\u884c\u770b\u8d77\u6765\u4e0d\u6574\u6d01\uff0c\u56e0\u4e3a\u5e76\u975e\u6240\u6709\u5143\u7d20\u90fd\u5177\u6709\u5c3a\u5bf8\u76f8\u540c\u3002<\/p>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u5c06\u5411\u60a8\u5c55\u793a\u5982\u4f55\u5728\u663e\u793a\u4ea7\u54c1\u4e4b\u524d\u5728\u5355\u72ec\u7684\u5217\u8868\u4e2d\u663e\u793a\u7c7b\u522b\u3002<\/p>\n<p>\u4e3a\u6b64\uff0c\u6211\u4eec\u5c06\u9075\u5faa\u56db\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u786e\u5b9a WooCommerce \u7528\u4e8e\u5728\u5b58\u6863\u9875\u9762\u4e0a\u8f93\u51fa\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u7684\u4ee3\u7801\u3002<\/li>\n<li>\u4e3a\u6211\u4eec\u7684\u4ee3\u7801\u521b\u5efa\u4e00\u4e2a\u63d2\u4ef6\u3002<\/li>\n<li>\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5c06\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\u653e\u5728\u4ea7\u54c1\u5217\u8868\u4e4b\u524d\u3002<\/li>\n<li>\u8bbe\u7f6e\u8f93\u51fa\u6837\u5f0f\u3002<\/li>\n<\/ol>\n<p>\u4f46\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u5b89\u88c5 WooCommerce\uff0c\u5e76\u6dfb\u52a0\u4e00\u4e9b\u4ea7\u54c1\u5e76\u8bbe\u7f6e\u4ea7\u54c1\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u3002<\/p>\n<h2>\u60a8\u9700\u8981\u4ec0\u4e48<\/h2>\n<p>\u8981\u7ee7\u7eed\u64cd\u4f5c\uff0c\u60a8\u9700\u8981\uff1a<\/p>\n<ul>\n<li>WordPress \u7684\u5f00\u53d1\u5b89\u88c5<\/li>\n<li>\u4ee3\u7801\u7f16\u8f91\u5668<\/li>\n<li>\u5df2\u5b89\u88c5\u5e76\u6fc0\u6d3b WooCommerce<\/li>\n<li>\u5df2\u6dfb\u52a0\u4ea7\u54c1 &#8211; \u6211\u5df2\u5bfc\u5165 WooCommerce \u9644\u5e26\u7684\u865a\u62df\u4ea7\u54c1\u6570\u636e\uff1b\u6709\u5173\u5982\u4f55\u6267\u884c\u6b64\u64cd\u4f5c\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u672c\u6307\u5357 <\/li>\n<li>\u5df2\u6fc0\u6d3b WooCommerce \u517c\u5bb9\u4e3b\u9898 &#8211; \u6211\u6b63\u5728\u4f7f\u7528 Storefront <\/li>\n<\/ul>\n<h2>\u5f00\u59cb\u4e4b\u524d\uff1a\u9ed8\u8ba4\u9009\u9879<\/h2>\n<p>\u8ba9\u6211\u4eec\u770b\u770b WooCommerce \u9ed8\u8ba4\u4e3a\u6211\u4eec\u63d0\u4f9b\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u6211\u9996\u5148\u5411\u6211\u7684\u4ea7\u54c1\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u6dfb\u52a0\u4e00\u4e9b\u56fe\u50cf\uff0c\u56e0\u4e3a WooCommerce \u865a\u62df\u6570\u636e\u4e0d\u5305\u542b\u8fd9\u4e9b\u56fe\u50cf\u3002\u6211\u53ea\u662f\u4f7f\u7528\u4e86\u6bcf\u4e2a\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\u4e2d\u7684\u4e00\u79cd\u4ea7\u54c1\u7684\u56fe\u50cf\uff0c\u5982\u5c4f\u5e55\u622a\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838638361.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe1\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe1\" \/><\/p>\n<p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u770b\u770b WooCommerce \u5982\u4f55\u5728\u5b58\u6863\u9875\u9762\u4e0a\u663e\u793a\u4ea7\u54c1\u7c7b\u522b\u548c\u4ea7\u54c1\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5c1a\u672a\u6253\u5f00\u5b9a\u5236\u5668\uff0c\u9009\u62e9 <strong>WooCommerce<\/strong> \u6807\u7b7e\uff0c\u7136\u540e\u70b9\u51fb<strong>\u4ea7\u54c1\u76ee\u5f55<\/strong>\u3002 <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838628849.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe2\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe2\" \/><\/p>\n<p>\u5728<strong>\u5546\u5e97\u9875\u9762\u663e\u793a<\/strong>\u4e0b\uff0c\u9009\u62e9<strong>\u663e\u793a\u7c7b\u522b\u548c\u4ea7\u54c1<\/strong>\uff0c\u7136\u540e\u5728<strong>\u7c7b\u522b\u663e\u793a<\/strong>\u4e0b\u9009\u62e9<strong>\u663e\u793a\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1<\/strong>\u5f3a&gt;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838688880.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe3\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe3\" \/><\/p>\n<p>\u70b9\u51fb<strong>\u53d1\u5e03<\/strong>\u4fdd\u5b58\u60a8\u7684\u66f4\u6539\u5e76\u8bbf\u95ee\u60a8\u7f51\u7ad9\u7684\u5546\u5e97\u9875\u9762\u3002\u6211\u7684\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838730675.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe4\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe4\" \/><\/p>\n<p>\u56e0\u4e3a\u6211\u6709\u56db\u4e2a\u7c7b\u522b\u548c\u4e00\u4e2a\u7531\u4e09\u4e2a\u5e76\u6392\u56fe\u50cf\u7ec4\u6210\u7684\u7f51\u683c\uff0c\u6240\u4ee5\u524d\u4e24\u4e2a\u4ea7\u54c1\u4f1a\u4e0e\u5176\u4e2d\u4e00\u4e2a\u7c7b\u522b\u5e76\u6392\u663e\u793a\u3002<\/p>\n<p>\u6211\u60f3\u8ba9\u6211\u7684\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u66f4\u52a0\u7a81\u51fa\uff0c\u5e76\u7b80\u5355\u5730\u5c06\u5b83\u4eec\u4e0e\u4ea7\u54c1\u5217\u8868\u5206\u5f00\u663e\u793a\u3002\u90a3\u4e48\u8ba9\u6211\u4eec\u8fd9\u6837\u505a\u5427\u3002<\/p>\n<h2>\u8bc6\u522b WooCommerce \u7528\u4e8e\u8f93\u51fa\u6863\u6848\u4e2d\u7684\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u4ee3\u7801<\/h2>\n<p>\u7b2c\u4e00\u6b65\u662f\u786e\u5b9a WooCommerce \u5982\u4f55\u8f93\u51fa\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u3002\u90a3\u4e48\u8ba9\u6211\u4eec\u6df1\u5165\u7814\u7a76 WooCommerce \u6e90\u4ee3\u7801\u6765\u67e5\u627e\u76f8\u5173\u51fd\u6570\u3002<\/p>\n<p>WooCommerce \u7528\u4e8e\u663e\u793a\u5b58\u6863\u9875\u9762\u7684\u6587\u4ef6\u662f <strong>archive-product.php<\/strong>\uff0c\u4f4d\u4e8e templates \u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n<p>\u5728\u8be5\u6587\u4ef6\u4e2d\uff0c\u60a8\u53ef\u4ee5\u627e\u5230\u6b64\u4ee3\u7801\uff0c\u5b83\u8f93\u51fa\u7c7b\u522b\u548c\u4ea7\u54c1\uff1a<\/p>\n<pre>&lt;?php \/**\n     * woocommerce_before_shop_loop hook\n     *\n     * @hooked woocommerce_result_count - 20\n     * @hooked woocommerce_catalog_ordering - 30\n    *\/\n    do_action( 'woocommerce_before_shop_loop' );\n?&gt;&lt;?php woocommerce_product_loop_start(); ?&gt;&lt;?php woocommerce_product_subcategories(); ?&gt;&lt;?php while ( have_posts() ) : the_post(); ?&gt;&lt;?php wc_get_template_part( 'content', 'product' ); ?&gt;&lt;?php endwhile; \/\/ end of the loop. ?&gt;&lt;?php woocommerce_product_loop_end(); ?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u56e0\u6b64\uff0c\u6709\u4e00\u4e2a woocommerce_product_subcategories() \u51fd\u6570\uff0c\u8be5\u51fd\u6570\u5728\u8fd0\u884c\u8f93\u51fa\u4ea7\u54c1\u7684\u5faa\u73af\u4e4b\u524d\u8f93\u51fa\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\u3002 <\/p>\n<p>\u8be5\u51fd\u6570\u662f\u53ef\u63d2\u5165\u7684\uff0c\u8fd9\u610f\u5473\u7740\u6211\u4eec\u53ef\u4ee5\u5728\u4e3b\u9898\u4e2d\u8986\u76d6\u5b83\u3002\u4e0d\u5e78\u7684\u662f\uff0c\u8fd9\u5e76\u4e0d\u5b8c\u5168\u6709\u6548\uff0c\u56e0\u4e3a WooCommerce \u5177\u6709\u7528\u4e8e\u6e05\u9664\u9879\u76ee\u7684\u5185\u7f6e\u6837\u5f0f\uff0c\u8be5\u6837\u5f0f\u5c06\u51fa\u73b0\u5728\u9ed8\u8ba4\u663e\u793a\u7684\u884c\u7684\u5f00\u5934\u3002 <\/p>\n<p>\u56e0\u6b64\uff0c\u6211\u4eec\u5c06\u5173\u95ed\u5b58\u6863\u9875\u9762\u4e0a\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u7684\u663e\u793a\uff0c\u4ee5\u4fbf\u4ec5\u663e\u793a\u4ea7\u54c1\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u8f93\u51fa\u4ea7\u54c1\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\u7684\u65b0\u51fd\u6570\uff0c\u5e76\u5c06\u5176\u6302\u94a9\u5230 woocommerce_before_shop_loop \u64cd\u4f5c\uff0c\u786e\u4fdd\u6211\u4eec\u4f7f\u7528\u9ad8\u4f18\u5148\u7ea7\uff0c\u4ee5\u4fbf\u5b83\u5728\u5df2\u7ecf\u6302\u94a9\u5230\u8be5\u64cd\u4f5c\u7684\u51fd\u6570\u4e4b\u540e\u89e6\u53d1\u3002 p&gt; <\/p>\n<p><em>\u6ce8\u610f\uff1a\u7531\u4e8e WooCommerce \u5411\u6bcf\u4e2a\u7b2c\u4e09\u4e2a\u4ea7\u54c1\u5217\u8868\u6dfb\u52a0\u4e86\u6e05\u9664\u5185\u5bb9\uff0c\u56e0\u6b64\u6211\u4eec\u65e0\u6cd5\u4f7f\u7528 woocommerce_product_subcategories()<em> \u51fd\u6570\u6216\u5176\u7f16\u8f91\u7248\u672c\u6765\u663e\u793a\u7c7b\u522b\u3002\u8fd9\u662f\u56e0\u4e3a\u5373\u4f7f\u6211\u4eec\u4f7f\u7528\u6b64\u529f\u80fd\u5355\u72ec\u663e\u793a\u7c7b\u522b\uff0c\u5b83\u4e5f\u4f1a\u6e05\u9664\u5217\u51fa\u7684\u7b2c\u4e09\u3001\u7b2c\u516d\uff08\u7b49\u7b49\uff09\u7c7b\u522b\u6216\u4ea7\u54c1\u3002\u6211\u4eec\u53ef\u4ee5\u5c1d\u8bd5\u8986\u76d6\u5b83\uff0c\u4f46\u7f16\u5199\u6211\u4eec\u81ea\u5df1\u7684\u51fd\u6570\u66f4\u7b80\u5355\u3002<\/em><\/em><\/p>\n<p>\u6240\u4ee5\u8ba9\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u63d2\u4ef6\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<h2>\u521b\u5efa\u63d2\u4ef6<\/h2>\n<p>\u5728\u60a8\u7684<strong>wp-content\/plugins<\/strong>\u76ee\u5f55\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u5939\u5e76\u4e3a\u5176\u6307\u5b9a\u4e00\u4e2a\u552f\u4e00\u7684\u540d\u79f0\u3002\u6211\u5c06\u6211\u7684\u547d\u540d\u4e3a<strong>tutsplus-separate-products-categories-in-archives<\/strong>\u3002\u5728\u5176\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\uff0c\u540c\u6837\u5177\u6709\u552f\u4e00\u7684\u540d\u79f0\u3002\u6211\u4f7f\u7528\u76f8\u540c\u7684\u540d\u79f0\uff1a<strong>tutsplus-separate-products-categories-in-archives.php<\/strong>\u3002<\/p>\n<p>\u6253\u5f00\u60a8\u7684\u6587\u4ef6\u5e76\u5411\u5176\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;?php \/**\n* Plugin Name: Tutsplus display WooCommerce products and categories\/subcategories separately in archive pages\n* Plugin URI: https:\/\/code.tutsplus.com\/tutorials\/woocommerce-display-product-categories-subcategories-and-products-in-two-separate-lists--cms-25479\n* Description: Display products and categories \/ subcategories as two separate lists in product archive pages\n* Version: 1.0\n* Author: Rachel McCollin\n* Author URI: https:\/\/rachelmccollin.co.uk\n*\n*\n*\/\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u60a8\u53ef\u80fd\u60f3\u8981\u7f16\u8f91\u4f5c\u8005\u8be6\u7ec6\u4fe1\u606f\uff0c\u56e0\u4e3a\u8fd9\u662f\u60a8\u6b63\u5728\u7f16\u5199\u7684\u63d2\u4ef6\u3002\u4fdd\u5b58\u60a8\u7684\u6587\u4ef6\u5e76\u901a\u8fc7 WordPress \u7ba1\u7406\u5458\u6fc0\u6d3b\u63d2\u4ef6\u3002<\/p>\n<h2>\u7f16\u5199\u6211\u4eec\u7684\u51fd\u6570<\/h2>\n<p>\u73b0\u5728\u8ba9\u6211\u4eec\u7f16\u5199\u51fd\u6570\u3002\u4f46\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u8bf7\u5173\u95ed\u7ba1\u7406\u5c4f\u5e55\u4e0a\u7684\u7c7b\u522b\u5217\u8868\u3002\u6253\u5f00\u5b9a\u5236\u5668\uff0c\u5355\u51fb <strong>WooCommerce<\/strong> \u9009\u9879\uff0c\u7136\u540e\u5355\u51fb<strong>\u4ea7\u54c1\u76ee\u5f55<\/strong>\u3002\u5bf9\u4e8e\u6bcf\u4e2a<strong>\u5546\u5e97\u9875\u9762\u663e\u793a<\/strong>\u548c<strong>\u9ed8\u8ba4\u7c7b\u522b\u663e\u793a<\/strong>\u9009\u9879\uff0c\u9009\u62e9<strong>\u663e\u793a\u4ea7\u54c1<\/strong>\u3002\u70b9\u51fb<strong>\u53d1\u5e03<\/strong>\u4fdd\u5b58\u60a8\u7684\u66f4\u6539\u3002<\/p>\n<p>\u60a8\u7684\u5546\u5e97\u9875\u9762\u73b0\u5728\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838742586.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe5\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe5\" \/><\/p>\n<p>\u5728\u60a8\u7684\u63d2\u4ef6\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre>function tutsplus_product_subcategories( $args = array() ) {\n\n}\n\nadd_action( 'woocommerce_before_shop_loop', 'tutsplus_product_subcategories', 50 );\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u73b0\u5728\uff0c\u5728\u51fd\u6570\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>$parentid = get_queried_object_id();\n\n$args = array(\n    'parent' =&amp;gt; $parentid\n);\n\n$terms = get_terms( 'product_cat', $args );\n\nif ( $terms ) {\n    echo '<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n  &#8216;; foreach ( $terms as $term ) { echo &#8216; <\/p>\n<li>&#8216;; woocommerce_subcategory_thumbnail( $term ); echo &#8216;<br \/>\n<h2>&#8216;; echo &#8221;; echo &#8216;<\/h2>\n<p>&#8216;; echo &#8216;<\/li>\n<p>&#8216;; } echo &#8216;\n<\/ul>\n<p>&#8216;; } <\/p>\n<p>\u8ba9\u6211\u4eec\u770b\u4e00\u4e0b\u8be5\u51fd\u6570\u7684\u4f5c\u7528\uff1a<\/p>\n<ul>\n<li>\u5b83\u6807\u8bc6\u5f53\u524d\u67e5\u8be2\u7684\u5bf9\u8c61\u5e76\u5c06\u5176 ID \u5b9a\u4e49\u4e3a $parentid\u3002<\/li>\n<li>\u5b83\u4f7f\u7528 get_terms() \u6765\u8bc6\u522b\u4ee5\u5f53\u524d\u67e5\u8be2\u9879\u4f5c\u4e3a\u5176\u7236\u9879\u7684\u672f\u8bed\u3002\u5982\u679c\u8fd9\u662f\u5546\u5e97\u4e3b\u9875\u9762\uff0c\u5219\u4f1a\u8fd4\u56de\u9876\u7ea7\u7c7b\u522b\uff1b\u5982\u679c\u8fd9\u662f\u4e00\u4e2a\u7c7b\u522b\u5b58\u6863\uff0c\u5b83\u5c06\u8fd4\u56de\u5b50\u7c7b\u522b\u3002<\/li>\n<li>\u7136\u540e\uff0c\u5b83\u4f1a\u68c0\u67e5\u662f\u5426\u5b58\u5728\u4efb\u4f55\u672f\u8bed\uff0c\u7136\u540e\u6253\u5f00 for every \u5faa\u73af\u548c ul \u5143\u7d20\u3002<\/li>\n<li>\u5bf9\u4e8e\u6bcf\u4e2a\u672f\u8bed\uff0c\u5b83\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a li \u5143\u7d20\uff0c\u7136\u540e\u4f7f\u7528 woocommerce_subcategory_thumbnail() \u8f93\u51fa\u7c7b\u522b\u56fe\u50cf\uff0c\u540e\u8ddf\u5176\u5b58\u6863\u94fe\u63a5\u4e2d\u7684\u7c7b\u522b\u540d\u79f0\u3002<\/li>\n<\/ul>\n<p>\u73b0\u5728\u4fdd\u5b58\u60a8\u7684\u6587\u4ef6\u5e76\u5237\u65b0\u4e3b\u5546\u5e97\u9875\u9762\u3002\u6211\u7684\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838737486.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe6\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe6\" \/><\/p>\n<p>\u7c7b\u522b\u5df2\u663e\u793a\uff0c\u4f46\u9700\u8981\u4e00\u4e9b\u6837\u5f0f\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u8fd9\u6837\u505a\u3002<\/p>\n<h2>\u8bbe\u7f6e\u7c7b\u522b\u5217\u8868\u7684\u6837\u5f0f<\/h2>\n<p>\u4e3a\u4e86\u6dfb\u52a0\u6837\u5f0f\uff0c\u6211\u4eec\u7684\u63d2\u4ef6\u4e2d\u9700\u8981\u4e00\u4e2a\u6837\u5f0f\u8868\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u6392\u961f\u3002<\/p>\n<p>\u5728\u60a8\u7684\u63d2\u4ef6\u6587\u4ef6\u5939\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a <strong>css<\/strong> \u7684\u6587\u4ef6\u5939\uff0c\u5e76\u5728\u5176\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a <strong>style.css<\/strong> \u7684\u6587\u4ef6\u3002<\/p>\n<p>\u73b0\u5728\uff0c\u5728\u60a8\u7684\u63d2\u4ef6\u6587\u4ef6\u4e2d\uff0c\u5c06\u5176\u6dfb\u52a0\u5230\u60a8\u5df2\u521b\u5efa\u7684\u51fd\u6570\u4e0a\u65b9\uff1a<\/p>\n<pre>function tutsplus_product_cats_css() {\n    \/* register the stylesheet *\/\n    wp_register_style( 'tutsplus_product_cats_css', plugins_url( 'css\/style.css', __FILE__ ) );\n    \/* enqueue the stylesheet *\/\n    wp_enqueue_style( 'tutsplus_product_cats_css' );\n}\n\nadd_action( 'wp_enqueue_scripts', 'tutsplus_product_cats_css' );\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u4f1a\u6b63\u786e\u5730\u5c06\u60a8\u521a\u521a\u521b\u5efa\u7684\u6837\u5f0f\u8868\u6392\u5165\u961f\u5217\u3002<\/p>\n<p>\u73b0\u5728\u6253\u5f00\u6837\u5f0f\u8868\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\u3002 WooCommerce \u4f7f\u7528\u79fb\u52a8\u4f18\u5148\u6837\u5f0f\uff0c\u56e0\u6b64\u6211\u4eec\u4e5f\u5c06\u4f7f\u7528\u5b83\u3002<\/p>\n<pre>ul.product-cats {\n    margin-left: 0;\n}\n\nul.product-cats li {\n    list-style: none;\n    margin-left: 0;\n    margin-bottom: 4.236em;\n    text-align: center;\n    position: relative;\n}\n\nul.product-cats li img {\n    margin: 0 auto; \n}\n\n@media screen and (min-width:768px) {\n\n    ul.product-cats li {\n        width: 29.4117647059%;\n        float: left;\n        margin-right: 5.8823529412%;\n    }\n\n    ul.product-cats li:nth-of-type(3) {\n        margin-right: 0;\n    }\n\n}\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6211\u5df2\u4ece WooCommerce \u4f7f\u7528\u7684\u6837\u5f0f\u4e2d\u590d\u5236\u4e86\u51c6\u786e\u200b\u200b\u7684\u5bbd\u5ea6\u548c\u8fb9\u8ddd\u3002<\/p>\n<p>\u73b0\u5728\u518d\u6b21\u68c0\u67e5\u60a8\u7684\u4e3b\u5546\u5e97\u9875\u9762\u3002\u8fd9\u662f\u6211\u7684\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838710133.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe7\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe7\" \/><\/p>\n<p>\u8fd9\u662f<strong>\u670d\u88c5<\/strong>\u7c7b\u522b\u5b58\u6863\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838717950.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe8\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe8\" \/><\/p>\n<p>\u8fd9\u662f\u5b83\u5728\u8f83\u5c0f\u5c4f\u5e55\u4e0a\u7684\u5916\u89c2\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838876858.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe9\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe9\" \/><\/p>\n<h2>\u6458\u8981<\/h2>\n<p>\u4ea7\u54c1\u7c7b\u522b\u662f WooCommerce \u7684\u4e00\u5927\u529f\u80fd\uff0c\u4f46\u5b83\u4eec\u7684\u663e\u793a\u65b9\u5f0f\u5e76\u4e0d\u603b\u662f\u7406\u60f3\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u5b66\u4e60\u4e86\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u63d2\u4ef6\uff0c\u8be5\u63d2\u4ef6\u53ef\u4ee5\u4e0e\u4ea7\u54c1\u5217\u8868\u5206\u5f00\u8f93\u51fa\u4ea7\u54c1\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\uff0c\u7136\u540e\u8bbe\u7f6e\u7c7b\u522b\u5217\u8868\u7684\u6837\u5f0f\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u6b64\u4ee3\u7801\u5728\u9875\u9762\u5176\u4ed6\u4f4d\u7f6e\uff08\u4f8b\u5982\uff0c\u4ea7\u54c1\u4e0b\u65b9\uff09\u8f93\u51fa\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\u5217\u8868\uff0c\u65b9\u6cd5\u662f\u5c06\u51fd\u6570\u6302\u94a9\u5230 WooCommerce \u6a21\u677f\u6587\u4ef6\u4e2d\u7684\u4e0d\u540c\u64cd\u4f5c\u6302\u94a9\u3002<\/p>\n<p>\u5982\u679c\u60a8\u76ee\u524d\u6b63\u5728\u7ecf\u8425\u4e00\u5bb6\u60f3\u8981\u6269\u5c55\u7684\u5546\u5e97\uff0c\u6216\u8005\u60a8\u6b63\u5728\u5bfb\u627e\u4e00\u4e9b\u4e0e WooCommerce \u76f8\u5173\u7684\u5176\u4ed6\u63d2\u4ef6\u6765\u7814\u7a76\uff0c\u8bf7\u968f\u65f6\u67e5\u770b CodeCanyon \u4e0a\u63d0\u4f9b\u4e86\u54ea\u4e9b\u63d2\u4ef6\u3002<\/p>\n<h4>CodeCanyon 2021 \u5e74\u6700\u4f73 WooCommerce \u63d2\u4ef6<\/h4>\n<p>CodeCanyon \u63d0\u4f9b\u5e02\u573a\u4e0a\u6700\u7075\u6d3b\u3001\u529f\u80fd\u6700\u4e30\u5bcc\u7684 WooCommerce WordPress \u63d2\u4ef6\uff0c\u5e76\u5c06\u4e3a\u60a8\u7684\u5728\u7ebf\u5546\u5e97\u6dfb\u52a0\u7528\u6237\u4e60\u60ef\u7684\u53e6\u4e00\u4e2a\u529f\u80fd\u7ef4\u5ea6\u3002<\/p>\n<p>\u65e0\u8bba\u60a8\u9700\u8981\u5b9e\u73b0\u81ea\u5b9a\u4e49\u5b57\u6bb5\u548c\u4e0a\u4f20\u3001\u663e\u793a\u591a\u79cd\u8d27\u5e01\u8fd8\u662f\u63d0\u4f9b\u4f1a\u5458\u8d44\u683c\uff0cCodeCanyon \u4e0a\u63d0\u4f9b\u7684\u5404\u79cd WooCommerce \u63d2\u4ef6\u90fd\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5b8c\u6210\u8fd9\u4e9b\u4efb\u52a1\u3002 <\/p>\n<p>\u9664\u4e86\u6240\u6709\u53ef\u7528\u7684\u9ad8\u8d28\u91cf WooCommerce \u63d2\u4ef6\u5916\uff0cCodeCanyon \u4e0a\u8fd8\u6709\u6570\u5343\u4e2a\u5176\u4ed6\u9ad8\u8d28\u91cf WordPress \u63d2\u4ef6\u53ef\u4ee5\u5e2e\u52a9\u589e\u5f3a\u60a8\u7684\u7f51\u7ad9\u3002\u6d4f\u89c8\u4e00\u4e0b\u5e7f\u6cdb\u7684\u63d2\u4ef6\u5e93\uff0c\u60a8\u4f1a\u53d1\u73b0\u6240\u6709\u7c7b\u578b\u7684\u63d2\u4ef6\uff0c\u5305\u62ec\u8bba\u575b\u3001\u5a92\u4f53\u548c SEO \u63d2\u4ef6\u3002<\/p>\n<p>\u7acb\u5373\u5229\u7528 CodeCanyon \u4e0a\u5e9e\u5927\u7684\u9ad8\u8d28\u91cf WordPress \u63d2\u4ef6\u5e93\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169364838841844.jpg\" class=\"aligncenter\" title=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe10\" alt=\"\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u63d2\u56fe10\" \/><\/p>\n<p>\u5982\u679c\u60a8\u9700\u8981\u4e00\u4e9b\u5e2e\u52a9\u6765\u9009\u62e9\u9002\u5408\u60a8\u7684 WooCommerce \u63d2\u4ef6\uff0c\u8bf7\u67e5\u770b Envato Tuts+ \u4e0a\u7684\u5176\u4ed6\u5e16\u5b50\uff1a<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7528\u4e8e\u663e\u793a WooCommerce \u7c7b\u522b\u3001\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u5355\u72ec\u5217\u8868\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce \u4e3a\u60a8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5173\u4e8e\u53ef\u4ee5\u5728\u5b58\u6863\u9875\u9762\u4e0a\u663e\u793a\u7684\u5185\u5bb9\u7684\u9009\u9879\uff1a \u4ea7\u54c1 \u7c7b\u522b\uff08\u5728\u4e3b\u5546\u5e97\u9875\u9762\u4e0a\uff09\u6216\u5b50\u7c7b\u522b\uff08\u5728\u7c7b\u522b\u9875\u9762\u4e0a\uff09 \u4ea7\u54c1\u548c\u7c7b\u522b \u5f53\u6211\u5efa\u7acb\u5546\u5e97\u65f6\uff0c\u6211\u901a\u5e38\u9009\u62e9\u7b2c\u4e09\u4e2a\u9009\u9879\uff1a\u4ea7\u54c1\u548c\u7c7b\u522b\/\u5b50\u7c7b\u522b\u3002\u8fd9\u610f\u5473\u7740\u6211\u5546\u5e97\u7684\u8bbf\u95ee\u8005\u53ef\u4ee5\u76f4\u63a5\u4ece\u4e3b\u9875\u9009\u62e9\u4ea7\u54c1\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u4ea7\u54c1\u7c7b\u522b\u6863\u6848\u6765\u4f18\u5316\u641c\u7d22\u3002 \u4f46\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u6709\u4e00\u4e2a\u7f3a\u70b9\uff1a\u5b83\u5c06\u7c7b\u522b\/\u5b50\u7c7b\u522b\u4e00\u8d77\u663e\u793a\uff0c\u4e24\u8005\u4e4b\u95f4\u6ca1\u6709\u5206\u79bb\u3002\u8fd9\u610f\u5473\u7740\uff0c\u5982\u679c\u60a8\u7684\u4ea7\u54c1\u56fe\u7247\u4e0e\u4ea7\u54c1\u56fe\u7247\u7684\u5c3a\u5bf8\u4e0d\u540c\uff0c\u5219\u5e03\u5c40\u53ef\u80fd\u770b\u8d77\u6765\u6709\u70b9\u6df7\u4e71\u3002\u5373\u4f7f\u60a8\u7684\u56fe\u50cf\u5927\u5c0f\u76f8\u540c\uff0c\u5982\u679c\u5b58\u6863\u9875\u9762\u4e2d\u7684\u67d0\u4e00\u884c\u540c\u65f6\u5305\u542b\u7c7b\u522b\u548c\u4ea7\u54c1\uff0c\u5219\u7f3a\u5c11\u7c7b\u522b\u7684\u201c\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u201d\u6309\u94ae\u4f1a\u4f7f\u8be5\u884c\u770b\u8d77\u6765\u4e0d\u6574\u6d01\uff0c\u56e0\u4e3a\u5e76\u975e\u6240\u6709\u5143\u7d20\u90fd\u5177\u6709\u5c3a\u5bf8\u76f8\u540c\u3002 \u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u5c06\u5411\u60a8\u5c55\u793a\u5982\u4f55\u5728\u663e\u793a\u4ea7\u54c1\u4e4b\u524d\u5728\u5355\u72ec\u7684\u5217\u8868\u4e2d\u663e\u793a\u7c7b\u522b\u3002 \u4e3a\u6b64\uff0c\u6211\u4eec\u5c06\u9075\u5faa\u56db\u4e2a\u6b65\u9aa4\uff1a \u786e\u5b9a WooCommerce \u7528\u4e8e\u5728\u5b58\u6863\u9875\u9762\u4e0a\u8f93\u51fa\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u7684\u4ee3\u7801\u3002 \u4e3a\u6211\u4eec\u7684\u4ee3\u7801\u521b\u5efa\u4e00\u4e2a\u63d2\u4ef6\u3002 \u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5c06\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\u653e\u5728\u4ea7\u54c1\u5217\u8868\u4e4b\u524d\u3002 \u8bbe\u7f6e\u8f93\u51fa\u6837\u5f0f\u3002 \u4f46\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u5b89\u88c5 WooCommerce\uff0c\u5e76\u6dfb\u52a0\u4e00\u4e9b\u4ea7\u54c1\u5e76\u8bbe\u7f6e\u4ea7\u54c1\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u3002 \u60a8\u9700\u8981\u4ec0\u4e48 \u8981\u7ee7\u7eed\u64cd\u4f5c\uff0c\u60a8\u9700\u8981\uff1a WordPress \u7684\u5f00\u53d1\u5b89\u88c5 \u4ee3\u7801\u7f16\u8f91\u5668 \u5df2\u5b89\u88c5\u5e76\u6fc0\u6d3b WooCommerce \u5df2\u6dfb\u52a0\u4ea7\u54c1 &#8211; \u6211\u5df2\u5bfc\u5165 WooCommerce \u9644\u5e26\u7684\u865a\u62df\u4ea7\u54c1\u6570\u636e\uff1b\u6709\u5173\u5982\u4f55\u6267\u884c\u6b64\u64cd\u4f5c\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u672c\u6307\u5357 \u5df2\u6fc0\u6d3b WooCommerce \u517c\u5bb9\u4e3b\u9898 &#8211; \u6211\u6b63\u5728\u4f7f\u7528 Storefront \u5f00\u59cb\u4e4b\u524d\uff1a\u9ed8\u8ba4\u9009\u9879 \u8ba9\u6211\u4eec\u770b\u770b WooCommerce \u9ed8\u8ba4\u4e3a\u6211\u4eec\u63d0\u4f9b\u7684\u5185\u5bb9\u3002 \u6211\u9996\u5148\u5411\u6211\u7684\u4ea7\u54c1\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u6dfb\u52a0\u4e00\u4e9b\u56fe\u50cf\uff0c\u56e0\u4e3a WooCommerce \u865a\u62df\u6570\u636e\u4e0d\u5305\u542b\u8fd9\u4e9b\u56fe\u50cf\u3002\u6211\u53ea\u662f\u4f7f\u7528\u4e86\u6bcf\u4e2a\u7c7b\u522b\u6216\u5b50\u7c7b\u522b\u4e2d\u7684\u4e00\u79cd\u4ea7\u54c1\u7684\u56fe\u50cf\uff0c\u5982\u5c4f\u5e55\u622a\u56fe\u6240\u793a\uff1a \u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u770b\u770b WooCommerce \u5982\u4f55\u5728\u5b58\u6863\u9875\u9762\u4e0a\u663e\u793a\u4ea7\u54c1\u7c7b\u522b\u548c\u4ea7\u54c1\u3002 \u5982\u679c\u60a8\u5c1a\u672a\u6253\u5f00\u5b9a\u5236\u5668\uff0c\u9009\u62e9 WooCommerce \u6807\u7b7e\uff0c\u7136\u540e\u70b9\u51fb\u4ea7\u54c1\u76ee\u5f55\u3002 \u5728\u5546\u5e97\u9875\u9762\u663e\u793a\u4e0b\uff0c\u9009\u62e9\u663e\u793a\u7c7b\u522b\u548c\u4ea7\u54c1\uff0c\u7136\u540e\u5728\u7c7b\u522b\u663e\u793a\u4e0b\u9009\u62e9\u663e\u793a\u5b50\u7c7b\u522b\u548c\u4ea7\u54c1\u5f3a&gt;. \u70b9\u51fb\u53d1\u5e03\u4fdd\u5b58\u60a8\u7684\u66f4\u6539\u5e76\u8bbf\u95ee\u60a8\u7f51\u7ad9\u7684\u5546\u5e97\u9875\u9762\u3002\u6211\u7684\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a \u56e0\u4e3a\u6211\u6709\u56db\u4e2a\u7c7b\u522b\u548c\u4e00\u4e2a\u7531\u4e09\u4e2a\u5e76\u6392\u56fe\u50cf\u7ec4\u6210\u7684\u7f51\u683c\uff0c\u6240\u4ee5\u524d\u4e24\u4e2a\u4ea7\u54c1\u4f1a\u4e0e\u5176\u4e2d\u4e00\u4e2a\u7c7b\u522b\u5e76\u6392\u663e\u793a\u3002 \u6211\u60f3\u8ba9\u6211\u7684\u7c7b\u522b\u548c\u5b50\u7c7b\u522b\u66f4\u52a0\u7a81\u51fa\uff0c\u5e76\u7b80\u5355\u5730\u5c06\u5b83\u4eec\u4e0e\u4ea7\u54c1\u5217\u8868\u5206\u5f00\u663e\u793a\u3002\u90a3\u4e48\u8ba9\u6211\u4eec\u8fd9\u6837\u505a\u5427\u3002 \u8bc6\u522b WooCommerce \u7528\u4e8e\u8f93\u51fa\u6863\u6848\u4e2d\u7684\u7c7b\u522b\u548c\u4ea7\u54c1\u7684\u4ee3\u7801 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-32508","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32508","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=32508"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32508\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=32508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=32508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=32508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}