內容簡介
預設情況下,如果分類沒有設置縮略圖,WooCommerce 將僅顯示該分類的縮略圖。
此外掛讓 WooCommerce 尋找當前分類中的商品縮略圖並顯示。
啟用插件後,插件將使用基本設置進行配置。您的 WooCommerce 商店中任何沒有設置縮略圖的分類將開始顯示該分類內任何可用的商品縮略圖。
有許多選項可以在「WooCommerce > 設置 > 產品 > 自動分類縮略圖」中找到。
縮略圖大小設置插件在顯示縮略圖時應使用的圖像大小。預設為「shop_thumbail」,但對於某些主題,「shop_catalog」可能是更好的選擇。
進入子分類使插件在查找商品縮略圖時也會搜尋子分類,對於分類結構比較深的網站很有用。
隨機縮略圖讓插件在每次加載頁面時從找到的縮略圖中隨機選擇一個商品縮略圖–否則它始終使用找到的第一個商品縮略圖。
使用 Transients 告訴插件將它選擇的縮略圖作為 WordPress 中的一個瞬時值保存,因此在瞬時值仍然有效時它就不需要再次進行選擇。這可極大地提高擁有許多分類的網站的性能,因此默認情況下啟用。
瞬時值過期時間是網站選擇該分類的另一個縮略圖的過期時間。預設情況下,它設置為1天。
自訂瞬時值過期時間可以用於定義自己的瞬時值過期時間(以秒為單位),如果沒有適合的選項可用。
排除縮略圖 ID 接受 WordPress 媒體庫中附件 ID 的逗號分隔列表。該插件將從總是使用這些 ID 中的任何縮略圖選擇不使用任何縮略圖的分類。
許可證
根據GNU 通用公共許可證 v2.0許可
外掛標籤
開發者團隊
② 後台搜尋「GazChap's WooCommerce Auto Category Product Thumbnails」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
By default, WooCommerce will only show thumbnails for categories if the category has a thumbnail set.
This plugin changes this behaviour so that WooCommerce will hunt for a product thumbnail in the category being displayed, and use that instead.
Upon activation, the plugin will configure itself with the basic settings. Any categories that you have on your WooCommerce store that do not have a thumbnail set will then start displaying any available product thumbnails inside the category.
There are a number of options, these can be found in WooCommerce -> Settings -> Products -> Auto Category Thumbnails.
Thumbnail Size sets the image size that the plugin should use when displaying the thumbnails. Defaults to shop_thumbail, but shop_catalog may be a better option for some themes.
Go into Child Categories makes the plugin look in child categories too, useful if you have products buried in quite a deep category structure.
Random Thumbnail tells the plugin to pick a random product thumbnail from those it finds every time the page loads – otherwise it always uses the first one it finds.
Use Transients tells the plugin to save the thumbnail it picks for a category as a transient in WordPress, so that it won’t have to do it again while the transient is still active. This can hugely increase performance on sites with many categories, so is enabled by default.
Transient Expiry is the length of time each transient is active for before the site picks another thumbnail for the category. By default it is set to 1 day.
Custom Transient Expiry can be used to define your own transient expiry period (in seconds) if none of the pre-defined options are suitable.
Exclude Thumbnail IDs accepts a comma-separated list of attachment IDs from the WordPress Media Library. The plugin will never use any thumbnail with one of these IDs for a category.
License
Licensed under the GNU General Public License v2.0
