Percentage Shipping Fee for WooCommerce

描述

This plugin adds a custom shipping method to WooCommerce that charges your customers a shipping fee based on a percentage of the cart subtotal.

Key Features:

  • Define a shipping percentage per zone.
  • Fully integrated with WooCommerce shipping zones.
  • Lightweight and simple to use.
  • Supports multiple zones and instances with different values.

屏幕截图

安装

  1. Upload the plugin files to the /wp-content/plugins/percentage-fee-shipping directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to WooCommerce > Settings > Shipping and select a Shipping Zone.
  4. Add the “Percentage-based Shipping” method.
  5. Set the title and percentage fee.

常见问题

Can I set different percentages for different zones?

Yes! You can add this shipping method to multiple zones and define a different percentage for each.

Does this plugin support tax calculation?

The cost is added before tax. You can configure how taxes are handled in WooCommerce settings.

Is this plugin compatible with the latest version of WooCommerce?

Yes, it is tested with WooCommerce 10.X. and WordPress 6.8.

评价

此插件暂无评价。

贡献者及开发者

「Percentage Shipping Fee for WooCommerce」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Percentage Shipping Fee for WooCommerce」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Percentage Shipping Fee for WooCommerce」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.3.2

  • Updated: Tested up to WordPress 7.0

1.3.1

  • Fix: Added safe WC()->cart checks before accessing cart subtotal to prevent fatal errors outside cart context.
  • Fix: Restored compatibility with AISP Order Tools admin minimum shipping bypass logic.
  • Fix: Added sanitize_callback for Allowed User IDs field to ensure only valid positive integers are saved.
  • Fix: Unified default shipping percentage value to 9% for consistent behavior.
  • Improve: Added clearer inline code comments for better maintainability.
  • Improve: Cleaned up and standardized shipping method class structure.

1.3.0

  • Added: Support for restricting Free Shipping by User ID. Free shipping can now be limited to specific customers via the shipping method settings.
  • Improved: Refactored the plugin structure into multiple class files for better maintainability.
  • Improved: Shipping logic to ensure correct availability based on user eligibility and cart subtotal.

1.2.1

  • Improved: Added compatibility groundwork for future integration with AISP Order Tools to bypass shipping minimum fees for administrators managing orders manually.
  • Improved: Prepared optional integration support for future AISP Order Tools compatibility.

1.2.0

  • Added: Per-zone minimum shipping cost support for the Percentage Shipping method.
  • Added: Enable/disable checkbox for minimum shipping enforcement directly in each shipping zone instance.
  • Added: Editable minimum shipping amount field per shipping zone.

1.1.0

  • Added: New “Free Shipping” method.
  • Improved: The “Percentage Shipping” method is now automatically hidden when “Free Shipping” is available.

1.0.1

  • Improved: Tested and confirmed compatibility with WooCommerce 10.2.

1.0.0

  • Initial release with percentage-based shipping cost support.