{"id":6114,"date":"2021-08-13T22:02:23","date_gmt":"2021-08-13T14:02:23","guid":{"rendered":"http:\/\/test.naibabiji.com\/?p=6114"},"modified":"2021-11-08T11:51:45","modified_gmt":"2021-11-08T03:51:45","slug":"catalog-mode","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/files\/wordpress-plugins\/catalog-mode.html","title":{"rendered":"\u5220\u9664\u548c\u9690\u85cfWooCommerce\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u6309\u94ae\u7684\u51e0\u79cd\u65b9\u5f0f"},"content":{"rendered":"<p><a href=\"https:\/\/blog.naibabiji.com\/\">\u5916\u8d38\u5efa\u7ad9<\/a>\u91cc\u9762\u5f88\u5927\u4e00\u90e8\u5206\u4f01\u4e1a\u90fd\u662f\u505a2B\u4e1a\u52a1\uff0c\u4e0d\u9700\u8981\u7528\u5230WooCommerce\u7684\u5728\u7ebf\u4e0b\u5355Add to cart\u548c\u4ef7\u683c\u529f\u80fd\uff0c\u4e5f\u79f0\u4e3aCatalog Mode\u3002\u6240\u4ee5\u672c\u6587\u5976\u7238\u7ed9\u5927\u5bb6\u5206\u4eab\u51e0\u79cd\u53bb\u9664Add to cart\u548c\u4ef7\u683c\u7684\u65b9\u6cd5\u3002<\/p>\n<h2>\u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528\u63d2\u4ef6<\/h2>\n<h3>YITH WooCommerce Catalog Mode<\/h3>\n<p><a href=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2020\/03\/1153d283.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6157\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2020\/03\/1153d283.png\" alt=\"\u9690\u85cfWooCommerce\u8d2d\u7269\u8f66\u529f\u80fd\" width=\"820\" height=\"601\" \/><\/a><\/p>\n<p>YITH WooCommerce Catalog Mode\u662f\u4e00\u6b3eWordPress\u63d2\u4ef6\uff0c\u4e3b\u8981\u4f5c\u7528\u5c31\u662f\u4e3aWooCommerce\u5f00\u542f\u76ee\u5f55\u6a21\u5f0f\uff0c\u9690\u85cf\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u548c\u7ed3\u8d26\u6309\u94ae\u3002<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u4e0b\u8f7d\u63d2\u4ef6\u5e76\u4e14\u5b89\u88c5\uff0c\u7136\u540e\u8fdb\u5165\u63d2\u4ef6\u8bbe\u7f6e\u5f00\u542f\u5bf9\u5e94\u7684\u9009\u9879\u5373\u53ef\u3002<\/p>\n<p><a class=\"theme-demo\" href=\"https:\/\/cn.wordpress.org\/plugins\/yith-woocommerce-catalog-mode\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n<h3>MMWD Remove Add To Cart for WooCommerce<\/h3>\n<p>\u8fd9\u6b3e\u63d2\u4ef6\u4e5f\u53ef\u4ee5\u5e2e\u6211\u4eec\u9690\u85cf\u6389\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u548c\u4ef7\u683c\u7684\u5185\u5bb9\uff0c\u5b89\u88c5\u63d2\u4ef6\u540e\uff0c\u8fdb\u5165WooCommerce\u7684\u8bbe\u7f6e\uff0c\u4ea7\u54c1\uff0cRemove Add to Cart\u6807\u7b7e\u91cc\u9762\u53ef\u4ee5\u8bbe\u7f6e\u3002<\/p>\n<p><a class=\"theme-demo\" href=\"https:\/\/wordpress.org\/plugins\/mmwd-remove-add-to-cart-for-woocommerce\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n<h2>\u65b9\u6cd5\u4e8c\uff1a\u4e3b\u9898\u8bbe\u7f6e\u91cc\u9762\u9690\u85cf<\/h2>\n<p><a href=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2020\/03\/1200I284.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6158\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2020\/03\/1200I284.png\" alt=\"\u4e3b\u9898\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u6309\u94ae\" width=\"820\" height=\"638\" \/><\/a><\/p>\n<p>\u8fd9\u91cc\u4ee5<a href=\"https:\/\/blog.naibabiji.com\/astra-theme\" target=\"_blank\" rel=\"noopener noreferrer\">Astra Pro\u4e3b\u9898<\/a>\u4e3a\u4f8b\uff0c\u5728\u4e3b\u9898\u9009\u9879\u91cc\u9762\u6fc0\u6d3bWooCommerce\u529f\u80fd\u540e\uff0c\u8fdb\u5165\u4e3b\u9898\u81ea\u5b9a\u4e49\u8bbe\u7f6e\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u5546\u5e97\u4ea7\u54c1\u7ed3\u6784\u7684\u9009\u9879\uff0c\u5173\u95ed\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u7684\u529f\u80fd\u5373\u53ef\u3002<\/p>\n<p>\u901a\u5e38\u60c5\u51b5\u4e00\u4e9b\u9ad8\u7ea7WordPress\u4e3b\u9898\u90fd\u5e26\u6709\u8fd9\u4e9b\u8bbe\u7f6e\uff0c\u4f60\u53ef\u4ee5\u4ed4\u7ec6\u627e\u627e\u8bbe\u7f6e\u9009\u9879\u3002<\/p>\n<h2>\u65b9\u6cd5\u4e09\uff1a\u4f7f\u7528\u4ee3\u7801<\/h2>\n<p>\u5982\u679c\u4f60\u7684\u4e3b\u9898\u4e0d\u652f\u6301\u9690\u85cf\uff0c\u4e5f\u4e0d\u60f3\u4f7f\u7528\u63d2\u4ef6\u9690\u85cf\uff0c\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u4e24\u79cd\u4ee3\u7801\u79fb\u9664\u8d2d\u7269\u8f66\u6309\u94ae\u3002<\/p>\n<p><strong>\u4ee3\u78011<\/strong>\uff1a\u76f4\u63a5\u8bbe\u7f6e\u4ea7\u54c1\u4e3a\u4e0d\u53ef\u8d2d\u4e70\u72b6\u6001<\/p>\n<pre>add_filter( 'woocommerce_is_purchasable', '__return_false');<\/pre>\n<p><strong>\u4ee3\u78012<\/strong>\uff1a\u79fb\u9664add to cart\u6309\u94ae<\/p>\n<pre>remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );\r\nremove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );<\/pre>\n<p>\u4ee3\u78013\uff1a\u79fb\u9664\u4ef7\u683c<\/p>\n<pre>remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );\r\nremove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );<\/pre>\n<pre>\/\/ \u53e6\u5916\u4e00\u79cd\u79fb\u9664\u4ef7\u683c\u65b9\u6cd5\r\nadd_filter( 'woocommerce_get_price_html', 'naibabiji_remove_price');\r\nfunction naibabiji_remove_price($price){ \r\nreturn ;\r\n}<\/pre>\n<p>\u4ee3\u78011\u662f\u76f4\u63a5\u628a\u4ea7\u54c1\u8bbe\u7f6e\u6210\u4e86\u4e0d\u53ef\u8d2d\u4e70\uff0c\u76f8\u6bd4\u4ee3\u78012\uff0c\u53ef\u80fd\u517c\u5bb9\u6027\u66f4\u597d\uff0c\u56e0\u4e3a\u4ee3\u78012\u76f4\u63a5\u628a\u5bf9\u5e94\u7684\u94a9\u5b50\u5220\u9664\u4e86\uff0c\u6709\u4e9b\u4e3b\u9898\u4e0a\u53ef\u80fd\u5b58\u5728\u754c\u9762\u5c55\u793a\u7684bug\u3002<\/p>\n<p>\u901a\u8fc7\u8fd93\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u5c31\u5b9e\u73b0\u4e86\u4f7f\u7528WordPress\u548cWooCommerce\u914d\u5408\u642d\u5efa\u4e00\u4e2a\u4ea7\u54c1\u5c55\u793a\u76842B\u7f51\u7ad9\uff0c\u662f\u4e0d\u662f\u5f88\u7b80\u5355\uff1f<\/p>\n<p>8\u670813\u65e5\u66f4\u65b0\uff1a<\/p>\n<h3>\u4fdd\u7559\u53d8\u4f53\u4ea7\u54c1\u4fe1\u606f\u5220\u9664\u8d2d\u7269\u8f66\u6309\u94ae\u7684\u65b9\u6cd5<\/h3>\n<p>\u540c\u6837\u662f\u4f7f\u7528\u4ee3\u7801\u7684\u65b9\u5f0f<\/p>\n<pre>add_action( 'woocommerce_single_product_summary', 'hide_add_to_cart_button_variable_product', 1, 0 );\r\nfunction hide_add_to_cart_button_variable_product() {\r\n\r\n\/\/ \u53ea\u5220\u9664\u8d2d\u7269\u8f66\u6309\u94ae\u548c\u6570\u91cf\uff0c\u4fdd\u7559variation\r\nremove_action( 'woocommerce_single_variation', 'woocommerce_single_variation_add_to_cart_button', 20 );\r\n}<\/pre>\n<p>\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5\u81ea\u5df1\u7684\u7f51\u7ad9\uff0c\u8bf7\u53c2\u8003\u5976\u7238\u5206\u4eab\u7684\uff1a<a href=\"https:\/\/blog.naibabiji.com\/step\">\u81ea\u5df1\u642d\u5efa\u7f51\u7ad9\u7684\u6b65\u9aa4<\/a>\u548c<a href=\"https:\/\/blog.naibabiji.com\/an-zhuang-wordpress\">WordPress\u5b89\u88c5\u6559\u7a0b<\/a><\/p>\n<h2>\u76f8\u5173\u5185\u5bb9<\/h2>\n<p>\u65e2\u7136\u4f60\u770b\u5230\u4e86\u79fb\u9664\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u8fd9\u4e2a\u5185\u5bb9\uff0c\u90a3\u4e48\u53ef\u80fd\u4e0b\u9762\u7684\u6587\u7ae0\u4f60\u4e5f\u4f1a\u611f\u5174\u8da3\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/blog.naibabiji.com\/woocommerce\/change-add-to-cart-button-text.html\">\u4fee\u6539WooCommerce\u9ed8\u8ba4\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u6309\u94ae\u6587\u5b57\u7684\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/blog.naibabiji.com\/news\/shan-chu-woocommerce-xiang-guan-chan-pin.html\">\u5982\u4f55\u5728WooCommerce\u9875\u9762\u4e2d\u5220\u9664\u76f8\u5173\u4ea7\u54c1<\/a><\/li>\n<\/ul>\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;6114&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;14&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;2.4&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;2.4\\\/5 - (14 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u5220\u9664\u548c\u9690\u85cfWooCommerce\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u6309\u94ae\u7684\u51e0\u79cd\u65b9\u5f0f&quot;,&quot;width&quot;:&quot;65.2&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: 65.2px;\">\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            2.4\/5 - (14 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5916\u8d38\u5efa\u7ad9\u91cc\u9762\u5f88\u5927\u4e00\u90e8\u5206\u4f01\u4e1a\u90fd\u662f\u505a2B\u4e1a\u52a1\uff0c\u4e0d\u9700\u8981\u7528\u5230WooCommerce\u7684\u5728\u7ebf\u4e0b\u5355Add to cart\u548c\u4ef7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u5220\u9664\u548c\u9690\u85cfWooCommerce\u6dfb\u52a0\u5230\u8d2d\u7269\u8f66\u6309\u94ae\u7684\u51e0\u79cd\u65b9\u5f0f - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u5916\u8d38\u5efa\u7ad9 \u91cc\u9762\u5f88\u5927\u4e00\u90e8\u5206\u4f01\u4e1a\u90fd\u662f\u505a2B\u4e1a\u52a1\uff0c\u4e0d\u9700\u8981\u7528\u5230WooCommerce\u7684\u5728\u7ebf\u4e0b\u5355Add to cart\u548c\u4ef7\u683c\u529f\u80fd\uff0c\u4e5f\u79f0\u4e3aCatalog Mode\u3002\u6240\u4ee5\u672c\u6587\u5976\u7238\u7ed9\u5927\u5bb6\u5206\u4eab\u51e0\u79cd\u53bb\u9664Add to cart\u548c\u4ef7\u683c\u7684\u65b9\u6cd5\u3002 \u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528\u63d2\u4ef6 YITH WooCommerce Catalog Mode YITH WooCom"},"footnotes":""},"categories":[405,381],"tags":[],"class_list":["post-6114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","category-wordpress-plugins"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/6114","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=6114"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/6114\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/6132"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=6114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=6114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=6114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}