{"id":3201,"date":"2019-11-17T10:42:41","date_gmt":"2019-11-17T02:42:41","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=3201"},"modified":"2020-01-04T15:31:05","modified_gmt":"2020-01-04T07:31:05","slug":"shan-chu-woocommerce-xiang-guan-chan-pin","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/news\/shan-chu-woocommerce-xiang-guan-chan-pin.html","title":{"rendered":"\u5982\u4f55\u5728WooCommerce\u9875\u9762\u4e2d\u5220\u9664\u76f8\u5173\u4ea7\u54c1"},"content":{"rendered":"<p>WooCommerce\u662fWordPress\u5e73\u53f0\u4e0a\u6d41\u884c\u7684\u7535\u5b50\u5546\u52a1\u63d2\u4ef6\uff0c\u5927\u591a\u6570\u5916\u8d38\u7f51\u7ad9\u90fd\u88c5\u4e86\u8fd9\u4e2a\u63d2\u4ef6\u3002<\/p>\n<p>WooCommerce\u4f1a\u5728\u4ea7\u54c1\u9875\u9762\u5217\u51fa\u76f8\u5173\u4ea7\u54c1\uff0c\u5e0c\u671b\u53ef\u4ee5\u589e\u52a0\u7528\u6237\u7684\u8d2d\u4e70\u7387\uff0c\u4f46\u662f\u67d0\u4e9b\u60c5\u51b5\u53ef\u80fd\u4f60\u4e0d\u5e0c\u671b\u6709\u76f8\u5173\u4ea7\u54c1\u5c55\u793a\u3002\u4f8b\u5982\u7528\u6237\u5230\u4f60\u7f51\u7ad9\u8d2d\u4e70\u773c\u955c\uff0c\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u540e\u53d1\u73b0\u4f60\u7ed9\u4ed6\u63a8\u8350\u7684\u76f8\u5173\u4ea7\u54c1\u66f4\u6f02\u4eae\uff0c\u8f6c\u800c\u53c8\u53bb\u7814\u7a76\u76f8\u5173\u773c\u955c\uff0c\u7136\u540e\u67e5\u67e5\u8d44\u6599\uff0c\u53d1\u73b0\u53ef\u80fd\u8fd8\u6709\u5176\u4ed6\u66f4\u597d\u7684\u9009\u62e9\uff0c\u90a3\u4e48\u4f60\u5c31\u9519\u5931\u4e86\u8fd9\u4e00\u4e2a\u8ba2\u5355\u3002<\/p>\n<p>\u6240\u4ee5\u672c\u6587\u6765\u4ecb\u7ecd\u4e0b\uff0c<strong>\u5982\u4f55\u5728WooCommerce\u9875\u9762\u4e2d\u5220\u9664\u76f8\u5173\u4ea7\u54c1<\/strong><\/p>\n<h2>\u5728WooCommerce\u4e2d\u5220\u9664\u76f8\u5173\u4ea7\u54c1\u7684\u65b9\u6cd5<\/h2>\n<p>\u7981\u7528\u76f8\u5173WooCommerce\u4ea7\u54c1\u6709\u4e24\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728\u4e3b\u9898\u7684functions.php\u6587\u4ef6\u4e2d\u63d2\u5165\u4e00\u4e9b\u4ee3\u7801\u884c\uff0c\u4e5f\u53ef\u4ee5\u5b89\u88c5\u514d\u8d39\u7684\u63d2\u4ef6\u3002\u8ba9\u6211\u4eec\u4ece\u7b2c\u4e00\u79cd\u65b9\u6cd5\u5f00\u59cb\u3002<\/p>\n<h3>\u901a\u8fc7\u4ee3\u7801\u5220\u9664<\/h3>\n<p>\u4f60\u53ef\u4ee5\u628a\u4e0b\u9762\u8fd9\u4e32\u4ee3\u7801\u590d\u5236\u5230\u4e3b\u9898\u51fd\u6570\u6587\u4ef6\u91cc\u9762(fuctions.php)<\/p>\n<pre>\/**\r\n* \u5220\u9664\u76f8\u5173\u4ea7\u54c1\u8f93\u51fa\r\n*\/\r\nremove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );<\/pre>\n<p>\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u600e\u4e48\u6dfb\u52a0\u4ee3\u7801\u5230\u51fd\u6570\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u8fd9\u6b3e\u63d2\u4ef6\u6765\u5e2e\u4f60\u3002<\/p>\n<p><a href=\"https:\/\/blog.naibabiji.com\/tutorial\/wordpress-code-snippets.html\">\u5b89\u5168\u6dfb\u52a0\u4ee3\u7801\u5230functions.php\u6587\u4ef6\u7684\u65b9\u6cd5\uff1aCode Snippets<\/a><\/p>\n<h3>\u901a\u8fc7\u63d2\u4ef6\u5b9e\u73b0<\/h3>\n<p>NS Remove Related Products for WooCommerce\u5c31\u662f\u4e00\u6b3e\u53ef\u4ee5\u5e2e\u4f60\u5220\u9664\u76f8\u5173\u4ea7\u54c1\u7684\u63d2\u4ef6\uff0c\u4f60\u53ea\u9700\u8981\u5b89\u88c5\u5e76\u4e14\u6fc0\u6d3b\u5373\u53ef\u3002<\/p>\n<p><a href=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/11\/ppwp-ns-remove-woo-product-features.png?_upt=17f8d00f1573923755\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"318\" class=\"aligncenter size-full wp-image-3202\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/11\/ppwp-ns-remove-woo-product-features.png?_upt=17f8d00f1573923755\" alt=\"\u7981\u7528\u76f8\u5173\u4ea7\u54c1\" \/><\/a><\/p>\n<p>NS Remove Related Products for WooCommerce\u4e0d\u4ec5\u4ec5\u662f\u8bbe\u7f6e\u76f8\u5173\u4ea7\u54c1\u662f\u5426\u5c55\u793a\uff0c\u5b83\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u5c55\u793a\u76f8\u5173\u4ea7\u54c1\u7684\u6570\u91cf\uff0c\u5982\u4f55\u83b7\u53d6\u76f8\u5173\u4ea7\u54c1\u7b49\u529f\u80fd\u3002<\/p>\n<p><a class=\"theme-demo\" href=\"https:\/\/wordpress.org\/plugins\/ns-remove-related-products-for-woocommerce\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u4eceWooCommerce\u4ea7\u54c1\u9875\u9762\u7981\u7528\u76f8\u5173\u4ea7\u54c1\u5c55\u793a\u7684\u65b9\u6cd5\u4e86\uff0c\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u7f51\u7ad9\u7684\u8bdd\uff0c\u53ef\u4ee5\u770b\u770b<a href=\"https:\/\/blog.naibabiji.com\/step\">\u5efa\u7f51\u7ad9\u7684\u6b65\u9aa4<\/a>\uff0c\u6216\u8005\u76f4\u63a5\u627e<a href=\"https:\/\/blog.naibabiji.com\/peipao\/\">\u5976\u7238\u5916\u8d38\u5efa\u7ad9<\/a>\uff0c\u5feb\u901f\u642d\u5efa\u4e00\u4e2a\u7f51\u7ad9\u3002<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;3201&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u5982\u4f55\u5728WooCommerce\u9875\u9762\u4e2d\u5220\u9664\u76f8\u5173\u4ea7\u54c1&quot;,&quot;width&quot;:&quot;138&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 138px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (2 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce\u662fWordPress\u5e73\u53f0\u4e0a\u6d41\u884c\u7684\u7535\u5b50\u5546\u52a1\u63d2\u4ef6\uff0c\u5927\u591a\u6570\u5916\u8d38\u7f51\u7ad9\u90fd\u88c5\u4e86\u8fd9\u4e2a\u63d2\u4ef6\u3002 WooCo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u5982\u4f55\u5728WooCommerce\u9875\u9762\u4e2d\u5220\u9664\u76f8\u5173\u4ea7\u54c1 - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"WooCommerce\u662fWordPress\u5e73\u53f0\u4e0a\u6d41\u884c\u7684\u7535\u5b50\u5546\u52a1\u63d2\u4ef6\uff0c\u5927\u591a\u6570\u5916\u8d38\u7f51\u7ad9\u90fd\u88c5\u4e86\u8fd9\u4e2a\u63d2\u4ef6\u3002 WooCommerce\u4f1a\u5728\u4ea7\u54c1\u9875\u9762\u5217\u51fa\u76f8\u5173\u4ea7\u54c1\uff0c\u5e0c\u671b\u53ef\u4ee5\u589e\u52a0\u7528\u6237\u7684\u8d2d\u4e70\u7387\uff0c\u4f46\u662f\u67d0\u4e9b\u60c5\u51b5\u53ef\u80fd\u4f60\u4e0d\u5e0c\u671b\u6709\u76f8\u5173\u4ea7\u54c1\u5c55\u793a\u3002\u4f8b\u5982\u7528\u6237\u5230\u4f60\u7f51\u7ad9\u8d2d\u4e70\u773c\u955c\uff0c\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u540e\u53d1\u73b0\u4f60\u7ed9\u4ed6\u63a8\u8350\u7684\u76f8\u5173\u4ea7\u54c1\u66f4\u6f02\u4eae\uff0c\u8f6c\u800c\u53c8\u53bb\u7814\u7a76\u76f8\u5173\u773c\u955c\uff0c\u7136\u540e\u67e5\u67e5\u8d44\u6599"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3201","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/3201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=3201"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/3201\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=3201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=3201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=3201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}