[WordPress] 外掛分享: Default Attributes for WooCommerce

首頁外掛目錄 › Default Attributes for WooCommerce
WordPress 外掛 Default Attributes for WooCommerce 的封面圖片
400+
安裝啟用
★★★★★
5/5 分(4 則評價)
86 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.0+ v1.2.1 上架:2020-09-03

內容簡介

這款 WooCommerce 外掛會在可變產品只有一個選項有庫存時自動設定該項目為預設選項。

使用說明 | 聯絡我們

以 T-shirt 為例,這款可變產品有顏色 (白色/藍色/黑色) 和尺寸 (S/M/XL) 兩種屬性:
如果只有黑色 T-shirt 有庫存,預設顏色為黑色,預設尺寸為無;
如果只有 S 尺寸的 T-shirt 有庫存,預設顏色為無,預設尺寸為 S;
如果只有白色和 XL 尺寸的 T-shirt 有庫存,預設顏色為白色,預設尺寸為 XL。

作用方式

在顯示產品變化選項給客戶之前,外掛會檢查每個屬性,如果只有一個項目有庫存,它會被設定為預設選項。

功能

庫存:當只有一個項目有庫存時,設定該項目為預設選項。
逐屬性:在所有具有相同屬性的產品中設定特定項目為預設選項 (透過「編輯屬性」頁面設定)
頂部:對每個屬性設定第一個項目為預設選項。
無庫存:禁用無庫存變化選項。
加入購物車按鈕:在目錄頁面上顯示可變產品的屬性名稱,而不是「選擇選項」。
選擇選項:在單一產品頁面上,如果設定了預設屬性,則移除「選擇選項」文字。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Default Attributes for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.
Documentation | Contact
Variable product of T-shirt with color attribute (White/Blue/Black) and size attribute (S/M/XL):
If only Black T-shirts are in-stock: default color (Black), default size (none).
If only Small T-shirts are in-stock: default color (none), default size (Small).
If only White and XL T-shirts are in-stock: default color (White), default size (XL).
How It Works

Before product variations is displayed to the customer, the plugin will check each attribute, and if there is only 1 in-stock option it will be set as the default.

Features

Stock: Set option as default when it’s the only 1 in-stock.
Per Attribute: Set specific option as default in all products with that attribute (from the Edit Attribute screen)
Top: Set as default the first option of each attribute.
Out of stock: Disable out of stock variations.
Add to Cart button: In archive pages display for variable products the attribute name instead of: “Select options”.
Select options: In single product pages remove the select options text if default attribute is set.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon