Gatemi Conditional Shipping FAQ and Troubleshooting

My rule does not hide anything

Check, on WooCommerce → Shipping Rules:

  1. The rule is ticked Active.
  2. Restricts is right — a payment id such as cod under Shipping methods matches nothing.
  3. The ids in Methods are ids, not titles. "Express delivery" is a title; flat_rate:5 is an id. See Getting started for how to find them.
  4. The condition really matches. Subtotal before discounts ignores coupons; Total weight uses your shop's weight unit and only counts products that have a weight.
  5. A country is a two-letter code: GB, not UK or United Kingdom.

I saved a rule but the checkout still shows the method

WooCommerce caches each cart's shipping options in the shopper's session. Saving this screen tells WooCommerce its shipping settings changed, so every cart works its options out again the next time the cart or checkout is loaded. If a page you already had open still shows the old options, reload it. Payment methods are not cached this way and follow a saved rule at once.

My "show only" rule is ignored

It would have left no method at all, so it was skipped for that checkout. That is the safeguard against a mistyped id emptying the checkout. Check the ids in Methods against the real ones.

Cash on delivery disappeared and the checkout says no payment methods are available

A hide rule removed every payment method, which is allowed. Add a Tell the shopper sentence to that rule — it then replaces WooCommerce's message, for example "Cash on delivery is only available in the UK. Please contact us to arrange payment."

Does it work with the Cart and Checkout blocks?

Yes. Both lists are filtered through WooCommerce's own woocommerce_package_rates and woocommerce_available_payment_gateways, which the blocks and the Store API use too. The plugin declares Cart & Checkout Blocks compatibility. The Tell the shopper sentence is shown through WooCommerce's classic "no payment methods" message; on the Checkout block WooCommerce shows its own notice instead.

Is it compatible with HPOS?

Yes, and declared. The plugin never reads or writes an order.

Can a rule depend on the postcode, a category or a coupon?

Not in this plugin. It judges shipping country, subtotal, total weight, number of items and shipping class, one per rule. Gatemi Shipping for WooCommerce adds those conditions, several per rule — see Gatemi Shipping.

What happens to more than five rules?

Rules past the fifth — written in Gatemi Shipping — are not shown on the screen but stay in the table and still apply. A card at the top of the screen says how many there are.

A rule says "Written in Gatemi Shipping" and I cannot edit it

It uses something this screen has no field for — several conditions, AND/OR groups, or a condition such as postcode. It is still enforced, exactly as written. Saving the screen leaves it alone. If this plugin cannot judge one of its conditions, it treats it as matching, so the restriction stays in force.

Moving to Gatemi Shipping

Install and activate Gatemi Shipping for WooCommerce. It reads the same table, so every rule is already on its Restrictions screen. Gatemi Conditional Shipping stands down while it is active; you can then deactivate and delete the free plugin without losing anything.

Shipping-class conditions carry over too: you type a class's slug or name (bulky) here, and the plugin stores the class's numeric id — the same value Gatemi Shipping's rule builder stores when you pick a class from its list. A product with no class (0) reads the same in both. (A rule saved by an earlier version still holds slugs; this plugin still matches it, and saving the screen once rewrites it as ids for Gatemi Shipping.)

Does it conflict with other shipping plugins?

It runs last, at priority 100, and only ever removes options, so it works with carrier and table-rate plugins that add their own rates. Use a wildcard (fedex*) for plugins that invent ids per service.

Does it slow the checkout down?

The rules are read from the table once per request and kept in memory. Every condition is read from the cart already in memory, so there are no extra database queries per product.

What does uninstalling remove?

Nothing. The rules are yours, and the table belongs equally to Gatemi Shipping. Deleting it would wipe that plugin's records too. Deactivating the plugin simply stops the filters. To remove the rules, empty every slot and save before you uninstall, or drop the table {prefix}gmship_restrictions yourself if no Gatemi plugin uses it.

Shopping Cart
Scroll to Top