2
我正在使用WooCommerce和Paid Memberships Pro free plugin。WooCommerce - 爲免費用戶計劃添加運費
在網站上我們有2個計劃(自由計劃和支付計劃):
- 免費用戶可以購買每月1項,
- 付費用戶可以購買4項各月。
現在我不知道如何簡單地計算運費結帳頁面上有類似的代碼:
if (pmpro_hasMembershipLevel('2')) { // Paid plan
//free shipping (0$)
} else {
//add shipping 4$ to checkout
}
沒有運輸類,沒有一個地區區域是影響航運價格。
我試圖設置運輸選項,但我無法擺脫它。
我該如何做到這一點?
謝謝。
你是真棒! – Amino