內容簡介
這個外掛可以根據一般條件(訂單屬性範圍)來決定運費。運費可能會根據以下因素而有所不同:
訂單總金額
訂單總重量
訂單中的商品數量或種類數量
商品的體積或最小/最大範圍
配送地址的郵政編碼(高級版還支持英國、加拿大和荷蘭的字母數字郵政編碼)
優惠券代碼(僅限高級版)
外掛有兩個不同的版本,本免費版本支持所有屬性的固定範圍,而付費版本則允許所有條件和運費規則包含任意數學表達式(如 OR 運算符、乘法、加法、減法、取整函數等)。詳細差異請參閱文檔。
每個規則都被描述為一行文本,具有簡單的結構(分號分隔規則的各個部分)。例如:
Name=免費送貨; 100<=Amount; 0
Name=國內小型包裹; Articles<5; Amount<100; Shipping=1.50
Name=國內標準包裹; Amount<100; Shipping=3.50
這組規則描述了三種運費:100歐元或更多的訂單免費送貨,否則少於五件商品的訂單需支付1.5歐元運費,其他訂單需支付3.50歐元運費。
限制和常見誤解
該外掛並非計算每個產品的運費(例如無法設置商品 A 的運費為3歐元,商品 B 的運費為5歐元,並且當您訂購兩樣商品時需支付8歐元運費)。
該外掛僅限於基於類別的運費支援,您只能查看訂單中某個類別的產品是否成立,但無法了解來自某個類別的產品數量(例如所有來自類別 X 的產品運費為3歐元,所有來自類別 Y 的產品運費為5歐元)。
該外掛不會總計所有規則的結果,而是使用它找到的第一個匹配規則。
該外掛不會使用所有規則的最低結果,而是使用它找到的第一個匹配規則(特別地,如果您想在特定條件下提供免費送貨,通常需要將免費送貨的規則放在最前面而非最後面,因為最後一個規則只有在沒有其他規則匹配時才會使用)。
有關 WooCommerce 的運費規則外掛的完整文檔,請參閱:
http://open-tools.net/documentation/advanced-shipping-by-rules-for-woocommerce.html
外掛標籤
開發者團隊
② 後台搜尋「Shipping by Rules for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Determine shipping costs according to general conditions (bounds on the order properties). Shipping costs can depend on e.g.:
Total amount of the order
Total weight of the order
Number of articles or different products in the order
Volume or minimal and maximal extensions of the products
Postal code of the delivery address (the Advanced version also supports alphanumeric postal codes from the UK, Canana and Netherlands)
Coupon Code (Advanced version only)
The plugin exists in two different versions, this free version, which supports fixed bounds for all properties, and a paid version, which allows all conditions and shipping rules to contain arbitrary mathematical expressions (like an OR operator, multiplication, addition, subtraction, functions like rounding etc.). See the documentation for all the differences.
Each rule is described as one line of text with an easy structure (semicolons separate the parts of the rule). For example:
Name=Free Shipping; 100<=Amount; 0
Name=Domestic Small; Articles<5; Amount<100; Shipping=1.50
Name=Domestic Standard; Amount<100; Shipping=3.50
This set of rules describes three shipping costs: Orders of 100€ and more are free, otherwise orders with less than five articles have shipping costs of 1.5€, all others 3.50€.
Limitations and common misconceptions
The plugin is not designed to calculte shipping costs on a per-product level (e.g. it is not possible that Article A has shipping costs of 3€, Article B 5€ and if you order both you pay 8€ shipping)
The plugin allows only limited support for category-based shipping. You can only find out if an article from a particular category is in the order, but NOT how many articles from a given category (e.g. it is not possible to have all articles from Category X ship for 3€ and all articles from Category Y ship for 5€)
The plugin does NOT sum the results of all rules, but uses the FIRST matching rule it finds.
The plugin does NOT use the lowest result of all rules, but it uses the FIRST matching rule it finds. (In particular, if you want to provide free shipping under certain conditions, you usually need to place the rule for free shipping FIRST rather than last, because the last rule will only be used if none of the other rules matches).
For the full documentation of the Shipping by Rules plugin for WooCommerce see:
http://open-tools.net/documentation/advanced-shipping-by-rules-for-woocommerce.html
