HDWebmobile Conditional Shipping Rules

HDWebmobile conditional-shipping-rules banner

HDWebmobile Conditional Shipping Rules

Hide shipping methods or change their cost based on cart total, weight, categories, coupons, customer role, country and more.

Overview

WooCommerce shipping zones decide which methods exist for an address. HDWebmobile Conditional Shipping Rules decides which of those methods a customer actually sees, and what they cost, based on what is in the cart and who is buying. A rule has conditions and an action: when every condition you set matches the cart, the action runs.

Some examples:

  • Hide free shipping when the cart weighs more than 20 kg
  • Show only local pickup when the cart contains furniture
  • Add 15% to express shipping for international orders
  • Remove free shipping when a discount coupon is used
  • Never charge more than 25.00 for standard shipping

Key Features

  • Conditions: cart subtotal, total weight, number of items, product categories, shipping classes, coupons used, customer role (including guests), shipping country and day of the week.
  • Actions: hide methods, show only chosen methods, add a fixed amount or a percentage, set a fixed cost, or keep the cost between a minimum and maximum (free methods stay free).
  • Target one method in one zone, or every method of a type such as “Any Free shipping method”.
  • Rules run top to bottom; reorder, disable or edit them at any time. Shipping tax is recalculated when a cost changes.
  • Works with the block-based Cart and Checkout and with the classic checkout.

Security by Design

  • Only users who can manage WooCommerce can change rules, and every change is protected by a nonce.
  • Every value is validated on save: numbers are range-checked, and every category, shipping class, coupon, role, country and shipping method must exist on your site. Nothing you type is ever run as code.
  • Rules are checked on the server against the cart WooCommerce built; nothing the browser sends can change which rules apply.

How to Use

  1. Go to WooCommerce > HDWebmobile > Shipping Rules and click Add rule.
  2. Fill in only the conditions you need; empty conditions are ignored.
  3. Choose the action and tick the shipping methods it applies to.
  4. Use the arrows to set the order, and the Enabled/Disabled button to switch a rule off without deleting it.

Limitations

  • Rules adjust existing shipping methods; they do not create new ones. Set up your zones and methods under WooCommerce > Settings > Shipping first.
  • If your rules hide every method for a cart, the customer sees WooCommerce’s normal “no shipping options” message.
  • Up to 100 rules.

Quick Setup

  1. Install the plugin and activate it. WooCommerce must already be installed and active.
  2. Open WooCommerce > HDWebmobile > Shipping Rules and add your first rule.

Latest Version

Current stable version in readme: 1.0.1 (Declares compatibility with the WooCommerce Cart and Checkout blocks).

See our other WordPress plugins for more WooCommerce and site-utility tools.

Need it set up on your store?

Our plugins are free and fully featured. If you’d rather not configure it yourself, we install, set up and test it on your store from €79, and we can build custom changes on top.

Ready to start your project?

Share your brief and we’ll propose the right approach — a full site, a landing page, or a custom plugin.