{"id":263308,"date":"2020-08-17T11:49:45","date_gmt":"2020-08-17T11:49:45","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=263308"},"modified":"2025-11-19T06:47:56","modified_gmt":"2025-11-19T06:47:56","slug":"magento2-shipping-condition-rules","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/","title":{"rendered":"Shipping Restriction for Magento 2"},"content":{"rendered":"\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Introduction<\/h3>\n<\/div><\/div>\n\n\n\n<p><strong><a href=\"https:\/\/store.webkul.com\/magento2-shipping-restriction.html\" target=\"_blank\" rel=\"noreferrer noopener\">Shipping Restriction for Magento 2<\/a><\/strong><a href=\"https:\/\/store.webkul.com\/magento2-shipping-restriction.html\"> <\/a>extension facilitates the admin to create shipping condition rules to block certain methods of the shipping carrier. <\/p>\n\n\n\n<p>The extension supports various limitation criteria based on customer group and store view.<\/p>\n\n\n\n<p>Furthermore, the admin can restrict the shipping method based on the payment method, cart attribute, shipping postcode, etc.<\/p>\n\n\n\n<p>Watch the video tutorial below to understand the extension workflow:<\/p>\n\n\n\n<div class=\"wp-block-wk-block-youtube-video wp-block-wk-block--yt-video components-placeholder\"><div class=\"wk-block--yt-video-frame\"><div class=\"wk-block--yt-video-frame-request\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"0cLt9DlavVY\"><div class=\"components-placeholder__instructions\">0cLt9DlavVY<\/div><\/div><\/div><\/div>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Feature List<\/h3>\n<\/div><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Allows admin to block certain shipping methods.<\/li>\n\n\n\n<li>Admin can add rules to restrict the shipping method.<\/li>\n\n\n\n<li>Rules are customizable based on the requirement.<\/li>\n\n\n\n<li>Admin can add multiple shipping restriction rules.<\/li>\n\n\n\n<li>Make use of customer groups and store views as a restriction base.<\/li>\n\n\n\n<li>Admin can restrict the shipping method based on the payment method, cart attribute, shipping postcode, etc.<\/li>\n\n\n\n<li>Option to activate the restriction for admin-end.<\/li>\n\n\n\n<li>The admin can show or hide a restriction message to the user.<\/li>\n\n\n\n<li>Allows admin to compose the restriction message.<\/li>\n\n\n\n<li>Disable or allow shipping with coupon\/discount.<\/li>\n\n\n\n<li>Shipping restrictions get applied on the frontend and admin end.<\/li>\n<\/ul>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Installation<\/h3>\n<\/div><\/div>\n\n\n\n<p>Customers will get a&nbsp;<strong>zip folder.&nbsp;<\/strong>Then&nbsp;they have to extract the contents of this zip folder on their system. The extracted folder has an&nbsp;<strong>src<\/strong>&nbsp;folder, inside the src folder you have the&nbsp;<strong>app<\/strong>&nbsp;folder.<\/p>\n\n\n\n<p>You need to transfer this&nbsp;<strong>app<\/strong>&nbsp;folder&nbsp;into the Magento2 root directory on the server as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"379\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png\" alt=\"Installation\" class=\"wp-image-263320\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-300x95.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-250x79.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-768x242.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1.png 1302w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>After the successful installation, you have to run these commands in the&nbsp;Magento2 root directory.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:upgrade<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:di:compile<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:static-content:deploy<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento indexer:reindex<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento cache:flush<\/pre>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Language Translation<\/h3>\n<\/div><\/div>\n\n\n\n<p>For translating the module language, navigate through&nbsp;<strong>src\/app\/code\/Webkul\/ShippingRestrictions\/i18n\/<\/strong> and edit the&nbsp;<strong>en_US.csv<\/strong>&nbsp;file.<\/p>\n\n\n\n<p>Thereafter, rename the CSV as \u201cen_SA.csv\u201d and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.<\/p>\n\n\n\n<p>Then upload it to the path<strong>&nbsp;src\/app\/code\/Webkul\/ShippingRestrictions\/i18n\/<\/strong> where the Magento2 is installed on the server.<\/p>\n\n\n\n<p>Hence, the module gets translated into the Arabic Language. It supports both&nbsp;<strong>RTL&nbsp;<\/strong>and&nbsp;<strong>LTR&nbsp;<\/strong>languages:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"471\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/multilingual-1200x471.png\" alt=\"Multilingual\" class=\"wp-image-263323\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/multilingual-1200x471.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/multilingual-300x118.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/multilingual-250x98.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/multilingual-768x301.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/multilingual.png 1229w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Shipping Restriction Configuration<\/h3>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-restriction-configuration.webp\" alt=\"shipping-restriction-configuration\" class=\"wp-image-513716\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-restriction-configuration.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-restriction-configuration-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-restriction-configuration-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-restriction-configuration-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable\/Disable &#8211; <\/strong>Allows admin to enable\/disable the module.<\/li>\n\n\n\n<li><strong>Shipping Restriction Message &#8211; <\/strong>If enabled then error message will be visible on frontend when the shipping method is restricted.<\/li>\n<\/ul>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\"><strong>Shipping Condition Rules<\/strong><\/h3>\n<\/div><\/div>\n\n\n\n<p>Furthermore, this section allows the admin to manage customizable rules to navigate through &#8211;  <strong>Shipping Restrictions =&gt; Manage Rules<\/strong>. For more details check-below given image:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Manage Shipping Condition Rules<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/manage-rules.webp\" alt=\"manage-rules\" class=\"wp-image-513720\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/manage-rules.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/manage-rules-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/manage-rules-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/manage-rules-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Add Shipping Condition Rules<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-management.webp\" alt=\"shipping-management\" class=\"wp-image-513724\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-management.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-management-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-management-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/shipping-management-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/add-shipping-rule2.webp\" alt=\"add-shipping-rule2\" class=\"wp-image-513726\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/add-shipping-rule2.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/add-shipping-rule2-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/add-shipping-rule2-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/add-shipping-rule2-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Rule Information<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Rule Name<\/strong> &#8211; First of all write down the rule name.<\/li>\n\n\n\n<li><strong>Description<\/strong> &#8211; Then put the description.<\/li>\n\n\n\n<li><strong>Active<\/strong> &#8211; Now select the status as per the requirement.<\/li>\n\n\n\n<li><strong>Customer Group<\/strong> &#8211; Also choose shipping restriction based on customer group<\/li>\n\n\n\n<li><strong>Store View<\/strong> &#8211; Additionally, restrict shipping based on store view<\/li>\n\n\n\n<li><strong>Shipping Methods<\/strong> &#8211; Now select the shipping restriction to restrict.<\/li>\n\n\n\n<li><strong>Active for Admin<\/strong> &#8211; Then activate shipping restriction for admin<\/li>\n\n\n\n<li><strong>Restriction Message<\/strong> &#8211; Further compose the restriction message to show<\/li>\n\n\n\n<li><strong>Payment Method Restriction Message &#8211; <\/strong>Write the message shown when a rule restricts payment methods.<\/li>\n\n\n\n<li><strong>Priority<\/strong> &#8211; In the end, set the preference to get the rules applied.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Discount Coupons <\/h4>\n\n\n\n<p>Consequently, this section defines the discount coupons to apply the rule only with. Moreover, select the discount coupons do not apply the rule with.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/discount-coupons.webp\" alt=\"discount-coupons\" class=\"wp-image-513734\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/discount-coupons.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/discount-coupons-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/discount-coupons-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/discount-coupons-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Conditions<\/h4>\n\n\n\n<p>This section allows admin to apply the rule only if the defined conditions are met. <\/p>\n\n\n\n<p>Furthermore, the condition gird contains product attribute combination, product subselection, conditions combination, and cart attributes.<\/p>\n\n\n\n<p>Cart attribute contains subtotal, total item quantity, total weight, payment method, shipping postcode, Country, province, and region-wise shipping restriction)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"264\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/condition_explain-e1597408297183.png\" alt=\"Magento2 Shipping Condition Rules - condition_explain\" class=\"wp-image-263417\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/condition_explain-e1597408297183.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/condition_explain-e1597408297183-300x99.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/condition_explain-e1597408297183-250x83.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/condition_explain-e1597408297183-768x253.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Shipping Condition Rules Create New Order<\/h3>\n<\/div><\/div>\n\n\n\n<p>Whenever the admin creates an order using <strong> Shipping Condition Rules<\/strong> extension, shipping method functions as shown in the below-given image:<\/p>\n\n\n\n<p><strong>When Shipping Condition Rule Disabled<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"322\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/enabled-e1597406235945.png\" alt=\"Magento 2 Shipping Condition Rules - enabled\" class=\"wp-image-263374\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/enabled-e1597406235945.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/enabled-e1597406235945-300x121.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/enabled-e1597406235945-250x101.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/enabled-e1597406235945-768x309.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>When Shipping Rule Applied<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"377\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/error-1-e1597406770199.png\" alt=\"Magento 2 Shipping Condition Rules -  Shipping Restriction Message\" class=\"wp-image-263403\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/error-1-e1597406770199.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/error-1-e1597406770199-300x141.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/error-1-e1597406770199-250x118.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/error-1-e1597406770199-768x362.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Storefront Function<\/h3>\n<\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Shipping Condition Rules When Restricted<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"598\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end-e1597409902679.png\" alt=\"Magento 2 Shipping Condition Rules - front_end\" class=\"wp-image-263429\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end-e1597409902679.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end-e1597409902679-300x224.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end-e1597409902679-250x187.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end-e1597409902679-768x574.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>When Rules Not Applied<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"545\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end_enabled-e1597410160249.png\" alt=\"Magento 2 Shipping Condition Rules - front_end_enabled\" class=\"wp-image-263430\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end_enabled-e1597410160249.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end_enabled-e1597410160249-300x204.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end_enabled-e1597410160249-250x170.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/front_end_enabled-e1597410160249-768x523.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Support<\/h3>\n<\/div><\/div>\n\n\n\n<p>Thus, that\u2019s all for the<strong>&nbsp;<strong>Shipping Restriction for Magento 2<\/strong><\/strong>. <\/p>\n\n\n\n<p>If you face any issue, feel free to add a ticket at our&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">HelpDesk<\/a>&nbsp;system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shipping Restriction for Magento 2 extension facilitates the admin to create shipping condition rules to block certain methods of the shipping carrier. The extension supports various limitation criteria based on customer group and store view. Furthermore, the admin can restrict the shipping method based on the payment method, cart attribute, shipping postcode, etc. Watch the <a href=\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":195,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[],"class_list":["post-263308","post","type-post","status-publish","format-standard","hentry","category-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2 Shipping Based on Conditions and Cart Rules<\/title>\n<meta name=\"description\" content=\"Magento 2 Shipping Condition Rules facilitate the admin to restrict certain methods of the shipping carrier based on business requirements.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 Shipping Based on Conditions and Cart Rules\" \/>\n<meta property=\"og:description\" content=\"Magento 2 Shipping Condition Rules facilitate the admin to restrict certain methods of the shipping carrier based on business requirements.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-17T11:49:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-19T06:47:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png\" \/>\n<meta name=\"author\" content=\"Vidushi Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vidushi Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\"},\"author\":{\"name\":\"Vidushi Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/911e77712b07b5d0fa077af4017df485\"},\"headline\":\"Shipping Restriction for Magento 2\",\"datePublished\":\"2020-08-17T11:49:45+00:00\",\"dateModified\":\"2025-11-19T06:47:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\"},\"wordCount\":676,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png\",\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\",\"name\":\"Magento 2 Shipping Based on Conditions and Cart Rules\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png\",\"datePublished\":\"2020-08-17T11:49:45+00:00\",\"dateModified\":\"2025-11-19T06:47:56+00:00\",\"description\":\"Magento 2 Shipping Condition Rules facilitate the admin to restrict certain methods of the shipping carrier based on business requirements.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1.png\",\"width\":1302,\"height\":411,\"caption\":\"1-9-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shipping Restriction for Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/911e77712b07b5d0fa077af4017df485\",\"name\":\"Vidushi Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c46e832adfe6c8c66a53f8952df0b85717ca6a0037bced48da9ac932a1e30822?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c46e832adfe6c8c66a53f8952df0b85717ca6a0037bced48da9ac932a1e30822?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Vidushi Singh\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vidushisingh-bd135\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 Shipping Based on Conditions and Cart Rules","description":"Magento 2 Shipping Condition Rules facilitate the admin to restrict certain methods of the shipping carrier based on business requirements.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 Shipping Based on Conditions and Cart Rules","og_description":"Magento 2 Shipping Condition Rules facilitate the admin to restrict certain methods of the shipping carrier based on business requirements.","og_url":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-08-17T11:49:45+00:00","article_modified_time":"2025-11-19T06:47:56+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png","type":"","width":"","height":""}],"author":"Vidushi Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vidushi Singh","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/"},"author":{"name":"Vidushi Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/911e77712b07b5d0fa077af4017df485"},"headline":"Shipping Restriction for Magento 2","datePublished":"2020-08-17T11:49:45+00:00","dateModified":"2025-11-19T06:47:56+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/"},"wordCount":676,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png","articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/","url":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/","name":"Magento 2 Shipping Based on Conditions and Cart Rules","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1-1200x379.png","datePublished":"2020-08-17T11:49:45+00:00","dateModified":"2025-11-19T06:47:56+00:00","description":"Magento 2 Shipping Condition Rules facilitate the admin to restrict certain methods of the shipping carrier based on business requirements.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/08\/1-9-1.png","width":1302,"height":411,"caption":"1-9-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento2-shipping-condition-rules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Shipping Restriction for Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/911e77712b07b5d0fa077af4017df485","name":"Vidushi Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c46e832adfe6c8c66a53f8952df0b85717ca6a0037bced48da9ac932a1e30822?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c46e832adfe6c8c66a53f8952df0b85717ca6a0037bced48da9ac932a1e30822?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Vidushi Singh"},"url":"https:\/\/webkul.com\/blog\/author\/vidushisingh-bd135\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/263308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/195"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=263308"}],"version-history":[{"count":29,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/263308\/revisions"}],"predecessor-version":[{"id":513736,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/263308\/revisions\/513736"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=263308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=263308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=263308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}