[WordPress] 外掛分享: Product Attributes Shortcode

前言介紹

  • 這款 WordPress 外掛「Product Attributes Shortcode」是 2021-05-10 上架。
  • 目前有 900 個安裝啟用數。
  • 上一次更新是 2025-01-29,距離現在已有 94 天。
  • 外掛最低要求 WordPress 6.3.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4.0 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

kestrelwp |

外掛標籤

shortcode | product term | product terms | product attribute | product attributes |

內容簡介

提供一個短代碼,用於顯示產品屬性的連結清單,例如從品牌屬性中顯示所有品牌連結。

特徵

顯示特定產品屬性的所有項目列表
選擇這些連結是否過濾產品或轉到項目存檔
隨著產品過濾,詞項列表不會減少
各種短碼屬性用於修改顯示內容

用法

使用下列短代碼,用您的屬性名代替 x:

[wcpas_product_attributes attribute="x"]

如果您的屬性名中有空格,則在短碼中用連字符替換這些空格。 如果您的屬性名中有其他字符,請查看下面的相關FAQ。

短碼使用某些預設屬性,如果需要,可以設置這些屬性:

archive_links - 1啟用封存連結,例如/brand/sega/,0禁用,例如/shop/?filter_brand=sega,預設值為0
hide_empty - 1隱藏空項目,0禁用,預設值為1
max_price - 使用最大價格數字以包括最大價格篩選器的連結,需要archive_links="0",預設值為空
min_price - 使用最小價格數字以包括最小價格篩選器的連結,需要archive_links="0",預設值為空
orderby - 任何orderby參數,預設值為name
order - asc 或 desc,預設值為 asc
show_counts - 1啟用每個詞項旁邊的計數,0禁用,預設值為0

使用可選短碼屬性的示例短碼:

[wcpas_product_attributes attribute="brand" archive_links="0" min_price="50.00" show_counts="1"]

原文外掛簡介

Provides a shortcode to display a linked list of terms from a product attribute, such as all brand links from a brands attribute.
This extension is intended to be used where you want to display all terms from a product attribute, e.g. to display a list of all brands in the footer of your website. It is not intended to be used to display a list of terms associated with a specific product.
Features

Displays a list of all terms from a specific product attribute
Choose if these links filter products or go to term archives
List of terms does not reduce as products are filtered
Various shortcode attributes to modify the display/functionality
Elements include classes and IDs for custom CSS styling

Usage
Use the following shortcode replacing the x with your attribute name:
[wcpas_product_attributes attribute="x"]

If your attribute has spaces in the name then replace these with hyphens in the shortcode, if you have other characters in your attribute name see the related FAQ below.
There are various other shortcode attributes which can be used, if these are omitted the defaults are used, the available shortcode attributes are:

archive_links – 1 to enable archive links e.g. /brand/sega/, 0 to disable e.g. /shop/?filter_brand=sega, default is 0
categorize – first_character to categorize the terms list by first character, default is empty
current_attribute_link – 1 to still display a link if the current page, 0 to disable, default is 1
hide_empty – 1 to hide empty terms, 0 to disable, default is 1
links_target – Use a HTML link target e.g. _blank to open links in a new window, default is empty
min_price – Use a minimum price number for links to include a minimum price filter, requires archive_links="0", default is empty
max_price – Use a maximum price number for links to include a maximum price filter, requires archive_links="0", default is empty
order – asc or desc, default is asc
orderby – Any orderby parameter, default is name
show_counts – 1 to enable display of term counts, 0 to disable, default is 0
show_descriptions – 1 to enable display of term descriptions, 0 to disable, default is 0

Example shortcode using multiple shortcode attributes:
[wcpas_product_attributes attribute="brand" archive_links="0" categorize="first_character" current_attribute_link="0" hide_empty="0" links_target="_blank" min_price="50.00" max_price="500.00" order="desc" orderby="id" show_counts="1" show_descriptions="1"]

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Product Attributes Shortcode」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.1.0 | 1.2.0 | 1.3.0 | 1.4.0 | 1.5.0 | 1.6.0 | 1.7.0 | 1.8.0 | 1.9.0 | 1.9.1 | 1.9.2 | 1.9.3 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | trunk |

延伸相關外掛(你可能也想知道)

  • Swatchly – WooCommerce Variation Swatches for Products (product attributes: Image swatch, Color swatches, Label swatches) 》您是否對 WooCommerce 目前呈現產品屬性的方式感到沮喪?這個外掛允許您將 WooCommerce 產品變體的選擇選項轉換為更加用戶友好的樣式。例如顏色樣式、按鈕樣...。
  • WooCommerce Show Attributes 》這是一個針對 WooCommerce 的外掛,它會在單一產品頁面上方的「加入購物車」按鈕位置顯示您的自訂產品屬性,而不是在「附加資訊」標籤內。此外,您的產品屬性...。
  • Product Specifications for Woocommerce 》使用Product Specifications外掛程式,您可以輕鬆地為產品建立規格表格。您可以建立多個表格,以便在不同類型的產品中使用。, Product Specifications非常輕...。
  • Text Attributes for WooCommerce 》這個外掛提供了在 WooCommerce 3.3 版本中所刪除的產品屬性類型選項。使用這個外掛,你可以使用 select/text/number/textarea 類型。請注意,這個外掛需要 Wo...。
  • WooCommerce Load Group Attributes Product 》創建一個新的預設屬性, 新增屬性, 在新增產品頁面載入已新增的群組。, 購買 Zhaket。
  • Product Variation Swatches for WooCommerce – Enhance Your Store Product Attributes with Elegant Color, Image, and Label Swatches 》roduct and select the “Attributes” tab. Choose the attributes that you have created and save the changes. That's it! Now you will see t...。
  • C4D Woo Variation Images 》C4D WooCommerce Variation Images是一款易於使用的WooCommerce產品變化圖像插件。這意味著您可以使用此強大的WooCommerce彩色或圖像變化圖像插件,在圖像、...。
  • Attribute Dropdowns 》此外掛在商店頁面上顯示包含 WooCommerce 產品屬性的多個下拉選單作為搜索框。, 在選擇屬性值後,用戶可單擊搜索按鈕以查看所選屬性的產品。, 下拉選單不相互...。
  • Edit and Manage Product for WooCommerce 》```html,
      ,
    • 使用這個外掛,您可以輕鬆地從用戶友好的介面直接編輯產品標題、描述、價格等產品細節。
    • ,
    • 批量產...。
    • Variation Swatches for WooCommerce – Lite 》Variation Swatches 是 WooCommerce Plugin 的擴充功能,能夠讓你的顧客輕鬆地選擇產品變體。它擁有以下一些令人驚豔的功能:, 變異屬性可以是不同類型的,例...。
    • Product Attribute Plus 》總結:Product Attribute Plus 是一個免費的 WooCommerce 外掛,擴展了產品屬性選項,可新增顏色、標籤和圖像選擇框到標準下拉選單旁。, , 1. 什麼是 Product...。

文章
Filter
Apply Filters
Mastodon