Linux 软件免费装
Banner图

HaywoodTech Conditional Shipping for WooCommerce

开发者 haywoodtech
更新时间 2026年10月10日 18:04
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

shipping woocommerce free shipping conditional shipping table rate shipping

下载

1.0.0 1.1.0

详情介绍:

Shipping rules you can read, test and trust. HaywoodTech Conditional Shipping replaces a maze of shipping settings with rules that read like sentences, such as Up to 2 kg → £3.95 · Stop here, and a cart simulator that shows what any cart will pay, and why, before you save. Every price comes from one rules engine. The cart, the checkout and the simulator all ask it the same question, so the price you test is the price your customers pay. 📖 Documentation: the full guide, from setup to every setting, is at haywoodtech.in/conditional-shipping. What makes it different Charge by Combine conditions with AND and OR in the same rule. Set the price with How rules work Rules run from top to bottom. Every rule that matches adds its cost, until one marked Stop here matches. That's how a remote-area surcharge sits on top of a base rate, and how weight bands stop at the first band that fits. If no rule matches, the method isn't offered. A gap in your rules never means free shipping by accident. Example: the UK template The UK template sets up five rules. You type the amounts:
  1. Free shipping from £50
  2. Northern Ireland, Highlands and islands → add £10
  3. Up to 2 kg → £3.95 · Stop here
  4. Up to 10 kg → £6.95 · Stop here
  5. Up to 30 kg → £12.95 · Stop here
A £20 order weighing 5 kg to Belfast pays £10 + £6.95 = £16.95, and the cart tells the customer Add £30.00 more for free shipping. Heavier parcels get no rate. See why a cart got its price Free-shipping notice When a rule offers free shipping from an order value, the cart shows customers how much more they need: Add £30.00 more for free shipping. It works in the classic cart and the Cart block. Works with

安装:

  1. Install and activate WooCommerce, then HaywoodTech Conditional Shipping.
  2. Go to WooCommerce › Settings › Shipping, open a shipping zone and add HaywoodTech Conditional Shipping.
  3. Click Edit on the method. Start from a region template, or add your first rule.
  4. Add a test cart in the simulator and check what it pays.
  5. Click Save changes.
The free-shipping notice and the debug panel are under WooCommerce › Settings › Shipping › Shipping options. Each step, and every setting, is explained in the documentation.

屏幕截图:

  • A rule opened for editing: conditions, actions and Stop here.
  • Starting from a region template.
  • The cart simulator explaining which rules priced a test cart.
  • The debug panel on the cart page.
  • "Add X more for free shipping" in the Cart block.
  • How an order's shipping cost was worked out, under its shipping line.

升级注意事项:

1.1.0 Adds extension points for add-on plugins. How your shipping is priced doesn't change. 1.0.0 First release.

常见问题:

Does it work with the cart and checkout blocks?

Yes. The blocks and the classic cart and checkout get the same rates, and the free-shipping notice appears in both carts.

What happens when no rule matches a cart?

The method isn't offered, so a gap in your rules never means free shipping by accident. You can change that in the method's rule settings to offer it free instead.

Can I offer Standard and Express in the same zone?

Yes. Add HaywoodTech Conditional Shipping to the zone once for each option. Each has its own name and rules, and they share the same test carts.

Does it work in my country, currency and units?

Yes. Rules remember the weight unit they were written in, amounts are in your store's currency, and postcode rules follow your country's format. Nothing assumes a country.

How do I find out why a cart got a certain price?

Turn on the debug panel under WooCommerce › Settings › Shipping › Shipping options, then open the cart while logged in as a shop manager. Or add the cart to the simulator on the method's settings page. For an order, open How this cost was worked out under its shipping line: it shows what every rule did when the order was placed, even if the rules have changed since.

Does it work with currency switchers?

Rule amounts are in your store's base currency, and most currency switchers convert shipping rates themselves. If yours also converts cart totals, use the hwtcs_cart_context filter to convert them back before the rules are checked, and hwtcs_free_shipping_notice for the notice.

Can I edit the rules as JSON?

Yes. The rule builder has a JSON view, which is also what the page falls back to if the builder can't load. Rules with errors are never saved, from either view.

Does HaywoodTech Conditional Shipping send data anywhere?

No. It doesn't contact any external service. Rules, test carts and settings stay in your WordPress database.

Where is the source code for the JavaScript?

The compiled files in assets/build are built from assets/src, which ships with the plugin. package.json and webpack.config.js show how: npm ci, then npm run build, with @wordpress/scripts.

更新日志:

1.1.0 1.0.0