[WordPress] 外掛分享: Gravity Forms / WooCommerce Recently Viewed Products

首頁外掛目錄 › Gravity Forms / WooCommerce Recently Viewed Products
10+
安裝啟用
☆☆☆☆
1/5 分(1 則評價)
4344 天前
最後更新
問題解決
WordPress 3.8+ v1.1 上架:2014-05-11

內容簡介

此外掛會自動將 WooCommerce 中最近瀏覽的商品加入您的表單提交,讓您了解訪客在發送查詢前對哪些商品感興趣。

只需安裝並啟用此外掛。若您的網站上已設置 WooCommerce 和 Gravity Forms,您將在表單輸入畫面中看到您的訪問者最近瀏覽的商品。如需將此資料也加入您的電子郵件中,請使用 {recently_viewed_products} 合併標籤。

請注意:此外掛不會在您的網站上添加任何額外的追蹤功能。如果您安裝了 WooCommerce,它會自動為每個訪客追蹤最近瀏覽的商品,並將其儲存在 cookie 中,此外掛使用該 cookie 增加到每筆表單提交中。使用此外掛時,請確保您的隱私政策清楚說明您如何使用訪客的點擊流資訊。

開發人員專屬

此外掛非常具有擴充性,可以輕鬆實現不同的電子商務後端或完全不同的追蹤機制。要修改追蹤,請創建 GF_Recently_Viewed_Products 的子類別並覆蓋 _get_current_recently_viewed_products 方法,或使用以下篩選器:

用於 WooCommerce:

wc_gf_recently_viewed_product_ids (array) 文章 ID 清單
wc_gf_recently_viewed_products_query (array) get_posts 查詢 (用於更改文章類型)
wc_gf_recently_viewed_products (array) 文章清單

未使用 WooCommerce:(請確認自行初始化 GF_Recently_Viewed_Products 類別)

gform_recently_viewed_product_ids (array) 文章 ID 清單
gform_recently_viewed_products_query (array) get_posts 查詢 (用於更改文章類型)
gform_recently_viewed_products (array) 文章清單

如果您擴展此外掛,

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Gravity Forms / WooCommerce Recently Viewed Products」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin automatically adds Recently Viewed Products from WooCommerce to your form submissions, giving you insight into what products your visitors were interested in before sending their enquiry.
Simply install the plugin and activate it. If both WooCommerce and Gravity Forms are set up on your website, you will start seeing the recently viewed products of your visitors in your form entry screen. To also add the data to your emails, use the {recently_viewed_products} merge tag.
Please note: This plugin does not add any extra tracking to your website. If you have WooCommerce installed, it will automatically track recently viewed products for each visitor in a cookie which this plugin uses to add to each form submission. When you use this plugin, make sure your privacy policy is clear on how you are using your visitors’ click stream information.
For developers
This plugin is very extensible and makes it easy to implement different ecommerce backends or alternative tracking mechanisms altogether. To modify the tracking, either make a child class of GF_Recently_Viewed_Products and override the _get_current_recently_viewed_products method, or use the following filters:
For use with WooCommerce:

wc_gf_recently_viewed_product_ids (array) List of post ids
wc_gf_recently_viewed_products_query (array) Query for get_posts (use to change the post type)
wc_gf_recently_viewed_products (array) List of posts

Without WooCommerce: (make sure to init the GF_Recently_Viewed_Products class yourself)

gform_recently_viewed_product_ids (array) List of post ids
gform_recently_viewed_products_query (array) Query for get_posts (use to change the post type)
gform_recently_viewed_products (array) List of posts

If you extend this plugin to

延伸相關外掛

文章
Filter
Apply Filters
Mastodon