[WordPress] 外掛分享: Sale price as order discount for WooCommerce

首頁外掛目錄 › Sale price as order discount for WooCommerce
100+
安裝啟用
★★★★★
5/5 分(2 則評價)
125 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.1.12 上架:2021-12-15

內容簡介

當你在WooCommerce中為產品設定特價,或者產品價格被第三方外掛修改時,WooCommerce並沒有預設將此特價或折扣儲存於訂單數據裡。因此,一旦訂單提交完畢,客戶在收到電子郵件或發票時,無法看到他們所獲得的折扣,而管理員在訂單詳細資料中也看不到這些折扣。
這是因為WooCommerce只將優惠券折扣視為折扣,而價格更改(促銷價格或程式修改的價格)則只被視為產品的實際價格。此外掛解決這個問題,當訂單被創建(透過後台或購物車)時,立即由產品數據複製「正常價格」,並將此價格設定為項目的「折扣前價格」(保留實際支付價格不變)。這樣做的結果是,WooCommerce將以與優惠券折扣相同的方式顯示。

外掛標籤

開發者團隊

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

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

原文外掛簡介

When you set a sale price for a product in WooCommerce, or when the price of a product is modified by 3rd party plugins, WooCommerce does not store this price (or discount) in the order data by default. As a result, once the order is placed, the customer doesn’t see the discount they got in the email or invoice they receive, and the admin doesn’t see this in the order details either.
This is because WooCommerce only considers coupon discounts as discounts, whereas a change in price (a sale price or a programmatically modified price) is simply regarded as the actual price of the product.
This plugin addresses that issue by copying the ‘regular price’ from the product data as soon as the order is created (either in the backend or via the checkout). This price is then set as the item’s “pre-discount” price (leaving the actual price paid untouched). The result is that WooCommerce will show this the same way it shows coupon discounts.

延伸相關外掛

文章
Filter
Mastodon