[WordPress] 外掛分享: WooCommerce Direct Variation Link

首頁外掛目錄 › WooCommerce Direct Variation Link
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
400+
安裝啟用
★★★★
4.6/5 分(10 則評價)
4007 天前
最後更新
問題解決
WordPress 3.5+ v1.0.3 上架:2013-12-05

內容簡介

使用 get 變數直接連結至 WooCommerce 商品變體,例如:yoursite.com/your-single-product/?size=small&color=blue。當您想要寄送電子郵件給顧客,並想讓他們直接連結至特定變體時,這項功能相當實用,能省去他們自行輸入的繁瑣步驟。

使用方式/範例:

將「‘?[variation_name]=[variation_value]‘」加到商品連結的結尾,就能讓變體自動顯示在使用者的螢幕上。

mysite.com/product/happy-ninja/?color=blue
mysite.com/product/happy-ninja/?color=blue&size=small(相關變體需要以「&」分隔)
mysite.com/product/happy-ninja/?color=blue+green(變體值為「Blue Green」,中間的空格用「+」替代)

特點:

不需要任何設定,安裝即可使用
支援無限數量的變體
良好的失敗回復,當設定值不存在時,會顯示預設值
當網址中未指定商品時,預設選擇的變體會正常工作
100% 的不區分大小寫性
與您的任何變體設定兼容,例如:自訂圖片、價格等

外掛官方文件與支援頁面

外掛標籤

開發者團隊

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

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

原文外掛簡介

Link directly to a specific WooCommerce product variation using get variables – yoursite.com/your-single-product/?size=small&color=blue. This is useful if you want to send an email to customers and send them directly to a specific variation without them having to enter it in themselves.
Usage/Examples:
Attach: ‘?[variation_name]=[variation_value]‘ to the end of your product link to have the variations automatically appear on the user’s screen.

mysite.com/product/happy-ninja/?color=blue
mysite.com/product/happy-ninja/?color=blue&size=small (additional variations should be separated by ‘&’)
mysite.com/product/happy-ninja/?color=blue+green (where the variation value is “Blue Green” with the space replaced by a ‘+’)

Features:

No configuration needed, just install and start using
Supports an infinite number of variations
Fails gracefully, if the option or value doesn’t exist, the default value will appear instead
Default selected variations work if no product is specified in url
100% case insensitive
Works with any variation settings you have ie. custom images, prices etc.

Plugin’s Official Documentation and Support Page

延伸相關外掛

文章
Filter
Mastodon