{"id":419383,"date":"2026-12-05T07:31:51","date_gmt":"2026-12-05T07:31:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/hdwebmobile-conditional-shipping-rules\/"},"modified":"2026-12-05T07:31:32","modified_gmt":"2026-12-05T07:31:32","slug":"hdwebmobile-conditional-shipping-rules","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/hdwebmobile-conditional-shipping-rules\/","author":9757813,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.2","requires":"6.9","requires_php":"7.4","requires_plugins":null,"header_name":"HDWebmobile Conditional Shipping Rules","header_author":"htrxuan - Han Tran","header_description":"Hide shipping methods or change their cost based on cart total, weight, categories, customer role, country and more.","last_updated":"2026-12-05 07:31:32","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/htrxuan\/20","header_plugin_uri":"https:\/\/hdwebmobile.com\/plugins\/hdwebmobile-conditional-shipping-rules\/","header_author_uri":"https:\/\/hdwebmobile.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":85,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"htrxuan","date":"2026-12-05 07:31:32","revision":3845755}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3845753,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3845753,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3845753,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3845753,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3845753,"resolution":"1","location":"assets","locale":"","width":1600,"height":1000},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3845753,"resolution":"2","location":"assets","locale":"","width":1600,"height":1000},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3845753,"resolution":"3","location":"assets","locale":"","width":1600,"height":1000},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3845753,"resolution":"4","location":"assets","locale":"","width":1600,"height":1000}},"screenshots":{"1":"The rules list: conditions and actions at a glance, with enable\/disable and reordering.","2":"Editing a rule: the conditions (cart subtotal, weight, items, categories, coupons, role, country, weekday).","3":"Editing a rule: the action and the shipping methods it applies to.","4":"Checkout: free shipping is hidden because the cart is under the threshold set by a rule."}},"plugin_section":[],"plugin_tags":[146193,139540,3546,5030,286],"plugin_category":[45],"plugin_contributors":[254181],"plugin_business_model":[],"class_list":["post-419383","plugin","type-plugin","status-publish","hentry","plugin_tags-conditional-shipping","plugin_tags-hide-shipping-methods","plugin_tags-shipping","plugin_tags-shipping-rules","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-htrxuan","plugin_committers-htrxuan"],"banners":{"banner":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/banner-772x250.png?rev=3845753","banner_2x":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/banner-1544x500.png?rev=3845753","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/icon-128x128.png?rev=3845753","icon_2x":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/icon-256x256.png?rev=3845753","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/screenshot-1.png?rev=3845753","caption":"The rules list: conditions and actions at a glance, with enable\/disable and reordering."},{"src":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/screenshot-2.png?rev=3845753","caption":"Editing a rule: the conditions (cart subtotal, weight, items, categories, coupons, role, country, weekday)."},{"src":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/screenshot-3.png?rev=3845753","caption":"Editing a rule: the action and the shipping methods it applies to."},{"src":"https:\/\/ps.w.org\/hdwebmobile-conditional-shipping-rules\/assets\/screenshot-4.png?rev=3845753","caption":"Checkout: free shipping is hidden because the cart is under the threshold set by a rule."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>A rule has conditions and an action. When every condition you set matches the cart, the action runs. Some examples:<\/p>\n\n<ul>\n<li>Hide free shipping when the cart weighs more than 20 kg<\/li>\n<li>Show only local pickup when the cart contains furniture<\/li>\n<li>Add 15% to express shipping for international orders<\/li>\n<li>Charge wholesale customers a fixed 5.00 for standard shipping<\/li>\n<li>Hide same-day delivery on Sundays<\/li>\n<li>Never charge more than 25.00 for standard shipping<\/li>\n<li>Remove free shipping when a discount coupon is used<\/li>\n<\/ul>\n\n<h4>Conditions<\/h4>\n\n<ul>\n<li>Cart subtotal (minimum and\/or maximum, after coupons)<\/li>\n<li>Total cart weight<\/li>\n<li>Number of items<\/li>\n<li>Product categories in the cart (contains any of \/ contains none of)<\/li>\n<li>Shipping classes in the cart (contains any of \/ contains none of)<\/li>\n<li>Coupons used in the cart (any of \/ none of)<\/li>\n<li>Customer role, including guests<\/li>\n<li>Shipping country<\/li>\n<li>Day of the week (your site's time zone)<\/li>\n<\/ul>\n\n<h4>Actions<\/h4>\n\n<ul>\n<li>Hide the chosen shipping methods<\/li>\n<li>Show only the chosen shipping methods<\/li>\n<li>Add a fixed amount to their cost<\/li>\n<li>Add a percentage to their cost<\/li>\n<li>Set their cost to a fixed amount<\/li>\n<li>Keep their cost between a minimum and maximum (free methods stay free)<\/li>\n<\/ul>\n\n<p>You can target a single method in a single zone (for example \"Europe \u2014 Flat rate\") or every method of a type (\"Any Free shipping method\"). Rules run from top to bottom, and you can reorder, disable or edit them at any time. Shipping tax is recalculated when a cost changes.<\/p>\n\n<p>Works with the block-based Cart and Checkout and with the classic shortcode checkout.<\/p>\n\n<h4>Security by design<\/h4>\n\n<ul>\n<li>Only users who can manage WooCommerce can change rules, and every change is protected by a nonce.<\/li>\n<li>Every value is validated on save: numbers are range-checked, and every category, shipping class, role, country and shipping method must exist on your site. Actions come from a fixed list; nothing you type is ever run as code.<\/li>\n<li>Rules are checked on the server against the cart WooCommerce built. Nothing the browser sends can change which rules apply.<\/li>\n<\/ul>\n\n<h4>Limitations (please read before installing)<\/h4>\n\n<ul>\n<li>Rules adjust existing shipping methods; they do not create new ones. Set up your zones and methods under WooCommerce &gt; Settings &gt; Shipping first.<\/li>\n<li>If your rules hide every method for a cart, the customer sees WooCommerce's normal \"no shipping options\" message.<\/li>\n<li>Up to 100 rules.<\/li>\n<\/ul>\n\n<h3>How to Use<\/h3>\n\n<h4>1. Add a rule<\/h4>\n\n<p>Click <strong>Add rule<\/strong>, give it a name, and fill in only the conditions you need. Empty conditions are ignored.<\/p>\n\n<h4>2. Choose the action<\/h4>\n\n<p>Pick what should happen and tick the shipping methods it applies to. For cost actions, enter the amount (or the percentage).<\/p>\n\n<h4>3. Order your rules<\/h4>\n\n<p>Rules run top to bottom. Use the arrows to reorder them, and the Enabled\/Disabled button to switch one off without deleting it.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/hdwebmobile-conditional-shipping-rules<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress. WooCommerce must already be installed and active.<\/li>\n<li>Go to <strong>WooCommerce &gt; HDWebmobile &gt; Shipping Rules<\/strong> to add your first rule.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20customers%20see%20the%20change%20straight%20away%3F\"><h3>Do customers see the change straight away?<\/h3><\/dt>\n<dd><p>Yes. Shipping is recalculated whenever the cart, the customer or your rules change.<\/p><\/dd>\n<dt id=\"can%20i%20combine%20rules%3F\"><h3>Can I combine rules?<\/h3><\/dt>\n<dd><p>Yes. Each matching rule works on the result of the rules above it, so for example one rule can add a surcharge and a later rule can cap the final cost.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release: conditional rules to hide, limit or re-price shipping methods by subtotal, weight, items, categories, shipping classes, coupons, role, country and weekday.<\/li>\n<\/ul>","raw_excerpt":"Hide shipping methods or change their cost based on cart total, weight, categories, customer role, country and more.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/419383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=419383"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/htrxuan"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=419383"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=419383"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=419383"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=419383"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=419383"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=419383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}