[WordPress] 外掛分享: SMNTCS Show Sale Price Date for WooCommerce

首頁 › 外掛目錄 › SMNTCS Show Sale Price Date for WooCommerce
WordPress 外掛 SMNTCS Show Sale Price Date for WooCommerce 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
34 天前
最後更新
—
問題解決
WordPress 5.3+ PHP 7.4+ v2.0 上架:2020-03-20

內容簡介

SMNTCS Show Sale Price Date for WooCommerce 外掛可讓顧客了解促銷活動的持續時間。當產品有設定的促銷結束日期時,該日期會顯示在產品頁面的促銷價格旁邊,幫助顧客掌握優惠時間。

【主要功能】
• 顯示促銷結束日期
• 適用於變數產品的最新結束日期
• 自訂標籤與日期格式

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

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

原文外掛簡介

SMNTCS Show Sale Price Date for WooCommerce tells your customers how long a sale lasts. When a product has a scheduled sale with an end date, the date appears next to the sale price on the product page, for example “(Discounted until 31 December 2026)”.
For variable products the latest end date of all variations on sale is shown. Products whose sale has no end date keep their normal price display.
You can change the label in the Customizer under WooCommerce, then Show Sale Price Date.
Filters
Add these lines to your theme’s functions.php file or a small plugin.
Change the date format to any PHP date format:
add_filter( 'sale_date_format', function () { return 'j F Y'; } );

Change the label in code instead of the Customizer:
add_filter( 'sale_date_label', function () { return 'Valid until'; } );

Contribute

Contributions are always welcome. Simply head over to GitHub and create an issue or open a pull request.

延伸相關外掛

文章
Filter
Mastodon