[WordPress] 外掛分享: Class Based Shipping for WooCommerce — Define shipping methods per shipping class

首頁外掛目錄 › Class Based Shipping for WooCommerce — Define shipping methods per shipping class
20+
安裝啟用
尚無評分
1355 天前
最後更新
問題解決
WordPress 5.5+ PHP 7.0+ v1.1 上架:2022-07-25

內容簡介

這個免費的外掛可以讓您輕鬆地為每個運送類別自定義運送方式,因此您可以根據產品類別提供不同的運送選項。

它如何運作?

簡單地創建或編輯現有的運送類別,然後在運送類別的說明欄位中設置可用的運送方式(見下面語法)。當購物車中有一個或多個項目符合自訂的運送方式類別時,外掛程式將將默認的運送方式更改為指定的運送方式。

自訂語法

要為 WooCommerce 運送類別自定義可用的運送方式,只需在運送類別的說明欄位中使用以下外掛程式語法:CLASS_BASED_SHIPPING(shipping_method_1_id, shipping_method_2_id [, etc])

例如,您可能希望有一個運送類別,供可以在當地取貨或使用固定運費方式運送的產品使用:CLASS_BASED_SHIPPING(flat_rate, local_pickup)

運送類別的說明欄位還可以包括其他文本,只要不干擾上面外掛程式標籤的語法即可。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Class Based Shipping for WooCommerce — Define shipping methods per shipping class」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This free plugin allows you to customize with ease the shipping methods available for each shipping class, so that you can offer different shipping options per product class.
How does it work?
Simply create or edit an existing shipping class, and set the available shipping methods in the Description field of the shipping class (see below syntax). The plugin will then the default shipping methods to the ones specified when one or more items in the cart match the customized shipping methods class.
Custom syntax
To customize the available shipping methods for a WooCommerce shipping class, simply use the following plugin syntax inside the description field of the shipping class: CLASS_BASED_SHIPPING(shipping_method_1_id, shipping_method_2_id [, etc])
For example, one may wish to have a shipping class for products which can be picked up locally or shipped using a flat rate method: CLASS_BASED_SHIPPING(flat_rate, local_pickup)
The class description field may also include additional text, as long as it does not interfere with the syntax of the plugin tag above.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon