
內容簡介
在 WooCommerce 中使用產品價格按公式計算外掛,讓你可以設定自動計算價格的公式,並支援標準數學運算符號。例如:x*1.5+p1/p2。
此外,計算公式中還可以使用以下這些 shortcode:
- [math_round]:四捨五入 shortcode。
- [math_ceil]:向上捨入 (ceil)。
- [math_floor]:向下捨入 (floor)。
- [math_min]:最小值。
- [math_max]:最大值。
- [product_meta]:產品的 meta (任何)。
- [product_weight]:產品的重量。
- [product_height]:產品的高度。
- [product_width]:產品的寬度。
- [product_length]:產品的長度。
- [product_stock]:產品的庫存。
- [product_total_sales]:產品的銷售總數。
- [product_id]:產品的 ID。
- [product_attr]:產品的屬性。
- [product_date]:產品的發布日期。
- [option]:網站選項。
- [timestamp]:目前時間。
- [to_timestamp]:將文本日期時間描述轉換為時間戳記。
- [if_customer_location]:根據客戶的國家 (IP 定位) 定價。
- [if_user_role]:根據客戶的用戶角色指定價格。
- [if_user_id]:根據客戶的用戶 ID 指定價格。
- [if_time]:根據目前時間指定價格。
- [if_date]:根據目前日期指定價格。
商業版 提供以下額外的 shortcode:
- [if_value]:比較任何兩個值。
- [if_product_id]:按產品的 ID 定價。
- [if_product_meta]:按產品的 meta 定價。
- [if_product_category]:按產品的類別定價。
- [if_product_tag]:按產品的標籤定價。
- [if_product_taxonomy]:按產品的分類(任何)定價。
- [if_regular_price]:將公式應用於常規產品價格。
- [if_sale_price]:將公式應用於優惠產品價格。
- [if_current_filter]:僅為所選過濾器應用公式。
產品價格按公式計算外掛對於所有 WooCommerce 網站都非常有幫助,以下是一些使用本外掛的小型清單:
- 電子商務產品網站
- 時尚產品網站
- 旅遊業務網站
- 美容產品相關網站
- 餐廳網站
- 聖誕節打折網站
產品價格按公式計算外掛的優點:
- 無需編程技能
- 易於設置或配置
- 乾淨的程式碼、佈局和設計
- 支援和更新
喜歡產品價格按公式計算外掛嗎?請分享給您身邊的人知曉。
外掛標籤
開發者團隊
② 後台搜尋「Product Price by Formula for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Product Price by Formula for WooCommerce plugin lets you set formulas for automatic WooCommerce product price calculation. Its setup with standard mathematical operations.
e.g.:
x*1.5+p1/p2
In addition in formula calculations you can use these shortcodes:
[math_round] – Rounding shortcode.
[math_ceil] – Rounding up (ceil).
[math_floor] – Rounding down (floor).
[math_min] – Min value.
[math_max] – Max value.
[product_meta] – Product’s meta (any).
[product_weight] – Product’s weight.
[product_height] – Product’s height.
[product_width] – Product’s width.
[product_length] – Product’s length.
[product_stock] – Product’s stock.
[product_total_sales] – Product’s total sales number.
[product_id] – Product’s ID.
[product_attr] – Product’s attribute.
[product_date] – Product’s publish date.
[option] – Site option.
[timestamp] – Current time.
[to_timestamp] – Converts textual datetime description to timestamp.
[if_customer_location] – Price by customer’s country (location by IP).
[if_user_role] – Price by customer’s user role.
[if_user_id] – Price by customer’s user ID.
[if_time] – Price by current time.
[if_date] – Price by current date.
Pro version has these additional shortcodes available:
[if_value] – Compares any two values.
[if_product_id] – Price by product’s ID.
[if_product_meta] – Price by product’s meta.
[if_product_category] – Price by product’s category.
[if_product_tag] – Price by product’s tag.
[if_product_taxonomy] – Price by product’s taxonomy (any).
[if_regular_price] – Apply formula to regular product price.
[if_sale_price] – Apply formula to sale product price.
[if_current_filter] – Apply formula for selected filter only.
Where is Product Price by Formula for WooCommerce Plugin Useful?
The Product Price by Formula for WooCommerce plugin is helpful for all WooCommerce websites. Below is one small list of websites where you can start using the Product Price by Formula for WooCommerce plugin:
E-commerce Product Website
Fashion Product Website
Traveling Business Website
Beauty Product-Related Website
Restaurant Website
Holiday Sale Offer
What Makes Product Price by Formula for WooCommerce Plugin Outstanding?
The Product Price by Formula for WooCommerce plugin is designed to offer an outstanding experience with the following features:
No Coding Skill Required
Easy to Setup or Configure
Clean code, layout, and design
Support and Updates
Like Product Price by Formula for WooCommerce Plugin?
Don’t forget to rate us on WordPress 🙂
Pro Features
Pro version overcomes your limitations with a lite version of Product Price by Formula for WooCommerce Features.
1. Enable for All Products
Enables price calculation by the formula for all products by checking the checkbox.
Disable for Product IDs: If you have checked the “Enable for all products” option, you can optionally add product exceptions here. Set it as a comma-separated list of product IDs.
Disable for Product Category IDs: If you have checked the “Enable for all products” option, you can optionally add product category exceptions here. You can set it as a comma-separated list of product category IDs.
2. Use the Same Formula
You can enable the same formula for all products.
Buy Product Price by Formula Pro for WooCommerce
Product Price by Formula Pro for WooCommerce
Like Product Price by Formula for WooCommerce Plugin?
Don’t forget to rate us on WordPress 🙂
Technical Support
We’re active for any support issues and feature suggestions. So, I hope you will love it. If you have any more questions, visit our support on the Plugin’s Forum.
