{"id":156586,"date":"2019-01-04T06:45:51","date_gmt":"2019-01-04T06:45:51","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=156586"},"modified":"2025-11-06T13:17:19","modified_gmt":"2025-11-06T13:17:19","slug":"magento2-payment-shipping-restriction","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/","title":{"rendered":"Guide of Magento 2 Payment Shipping Restrictions"},"content":{"rendered":"\n<p>Using <a href=\"https:\/\/store.webkul.com\/magento2-payment-shipping-restriction.html\">Magento 2 Payment Restrictions<\/a> and Shipping<strong> <\/strong>module, the admin can assign the shipping and payment methods to products and the categories.<\/p>\n\n\n\n<p>Sometimes the admin wants to restrict a few of the shipping and payment methods for some products and category types.<\/p>\n\n\n\n<p>So, instead of completely disabling the shipping and payment methods for the store, restrict the shipping and payments methods which the admin doesn\u2019t wish to use for particular products and categories.<\/p>\n\n\n\n<p>During the checkout process, the customer can view the assigned shipping and payment methods to place an order.<\/p>\n\n\n\n<p><strong>Note:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u00a0<\/strong>magento 2 payment restriction extension will not create any new shipping and payment methods for you.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&nbsp;The module functionality will not work for the order created from the admin panel.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Wonder How <strong>Magento 2 Payment <strong>Restriction<\/strong> &amp; Shipping Restriction<\/strong> Works? Watch the below Video<\/h3>\n\n\n\n<div class=\"wp-block-wk-block-youtube-video wp-block-wk-block--yt-video components-placeholder wk-block--yt-video\"><div class=\"wk-block--yt-video-frame\"><div class=\"wk-block--yt-video-frame-request\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"Nc5Hx5mFMpQ\"><div class=\"components-placeholder__instructions\">Nc5Hx5mFMpQ<\/div><\/div><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Features<\/strong> of <strong>Adobe Commerce Payment and Shipping <strong>Restriction<\/strong><\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The admin can enable or disable the module as per convenience.<\/li>\n\n\n\n<li>Assign specific shipping methods to a product.<\/li>\n\n\n\n<li>Assign specific payment methods to a product.<\/li>\n\n\n\n<li>Restrict the payment and shipping methods for the product types &#8211; Simple, Configurable, Virtual and downloadable.<\/li>\n\n\n\n<li>Assign specific shipping methods to product categories.<\/li>\n\n\n\n<li>Assign specific <a href=\"https:\/\/store.webkul.com\/Magento-2\/Payment-Extensions.html\">Magento 2 payment methods<\/a> to product categories.<\/li>\n\n\n\n<li>The admin can map the shipping and payment methods. <\/li>\n\n\n\n<li>Assign different shipping and payment methods to various products and category types.<\/li>\n\n\n\n<li>Only assigned shipping and payment methods available while checkout.<\/li>\n\n\n\n<li>Restrict the shipping and payment for the products and categories which were existing before the installation of this module by editing them again.<\/li>\n\n\n\n<li>magento 2 payment restrictions Module is compatible with GraphQl.\u00a0<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Installation<\/strong><\/h3>\n\n\n\n<p>Customers will get a&nbsp;<strong>zip folder<\/strong>&nbsp;and 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\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png\" alt=\"INSTALLATION\" class=\"wp-image-90732\" loading=\"lazy\" \/><\/a><\/figure>\n\n\n\n<p>After the successful installation, you have to run these commands in the&nbsp;Magento 2 (Adobe Commerce) 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<h3 class=\"wp-block-heading\"><strong>Multi-Lingual Configuration<\/strong><\/h3>\n\n\n\n<p>\n\n\n\n\nFor Multilingual support, please navigate to&nbsp;<strong>Store&gt;Configuration&gt;General &gt;Locale Options<\/strong>. And select your desired language from the&nbsp;<strong>Locale&nbsp;<\/strong>option.\n\n<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-locale.webp\" alt=\"locale\" class=\"wp-image-458396\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-locale.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-locale-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-locale-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-locale-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Module Configuration<\/strong><\/h3>\n\n\n\n<p>After the module installation, the admin can configure the module settings by navigating to the&nbsp;<strong>Stores -&gt; Settings -&gt; Configuration -&gt; Webkul -&gt; Shipping and Payment Restriction&nbsp;<\/strong>as shown below. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configuration.webp\" alt=\"enable extension\" class=\"wp-image-458398\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configuration.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configuration-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configuration-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configuration-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p>\n\nHere, the admin will:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable Module on Frontend<\/strong> &#8211; Set the payment option to\u00a0<strong>Yes\u00a0<\/strong>if want to display the restricted shipping and payment methods only on the frontend.<\/li>\n\n\n\n<li>Else set the payment option to\u00a0<strong>No\u00a0<\/strong>if want to display all the\u00a0shipping and payment methods.<\/li>\n<\/ul>\n\n\n\n<p>\nAnd, lastly hit the&nbsp;<strong>Save Config&nbsp;<\/strong>button to save the configuration successfully.\n\n\n\n\n\n\n\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Category &#8211; Assign Shipping &amp; Payment Methods<\/strong><\/h3>\n\n\n\n<p>\n\n\n\n\n\nThe admin can restrict the different payment and shipping methods for each category as shown below.\n\n<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-category-restriction.webp\" alt=\"category payment and shipping restriction\" class=\"wp-image-458400\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-category-restriction.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-category-restriction-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-category-restriction-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-category-restriction-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p>\n\nOn the category edit page, the admin will have two fields:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Select Shipping Method-<\/strong> Choose the shipping methods wants to enable for that particular category.<\/li>\n\n\n\n<li><strong>Select Payment Method-<\/strong>&nbsp;Choose the payment methods wants to enable for that particular category.<\/li>\n<\/ul>\n\n\n\n<p> And, lastly hit the&nbsp;<strong>Save&nbsp;<\/strong>button to save the category successfully. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Note:<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The admin needs to configure the payment and shipping methods for each category individually.<\/li>\n\n\n\n<li>Further, the admin can configure the different payment and shipping methods for the parent and the child category.<\/li>\n\n\n\n<li>The admin can also restrict the shipping and payment for the categories which were existing before the installation of this module.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Product &#8211; Assign Shipping &amp; Payment Methods<\/strong><\/h3>\n\n\n\n<p>The admin can even restrict the different payment and shipping methods for each product&nbsp;as shown below. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-product-shipping-payment-restriction.webp\" alt=\"product payment and shipping restriction\" class=\"wp-image-458402\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-product-shipping-payment-restriction.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-product-shipping-payment-restriction-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-product-shipping-payment-restriction-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-product-shipping-payment-restriction-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p>\n\nOn the product edit page, the admin will have two fields:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Select Shipping-<\/strong> Choose the shipping methods wants to enable for that particular product.<\/li>\n\n\n\n<li><strong>Select Payment-<\/strong>&nbsp;Choose the payment methods wants to enable for that particular product.<\/li>\n<\/ul>\n\n\n\n<p> And, lastly hit the&nbsp;<strong>Save&nbsp;<\/strong>button to save the product successfully. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Note:<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The admin needs to configure the payment and shipping methods for each product individually.<\/li>\n\n\n\n<li>The admin can restrict the payment and shipping methods for the product types &#8211; Simple, Configurable, Virtual and downloadable.<\/li>\n\n\n\n<li>Moreover, the admin can restrict the shipping and payment for the products which were existing before the installation of this module.<\/li>\n\n\n\n<li>The Mapped shipping and payment method should be selected else there will be no payment method displayed for the mapped shipping selected.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Payment Shipping Mapping<\/h3>\n\n\n\n<p>The admin can map the payment method with the shipping methods by navigating to payment shipping mapping section and the following mapping list will be displayed as shown in the image below. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-payment-shipping-mapping.webp\" alt=\"manage payment and shipping mapping\" class=\"wp-image-458404\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-payment-shipping-mapping.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-payment-shipping-mapping-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-payment-shipping-mapping-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-payment-shipping-mapping-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p>The admin can create new mapping from the Add Mapping section and select the desired shipping method and payment method that is needed to be saved as shown in the image below. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configure-payment-shipping-mapping.webp\" alt=\"edit payment and shipping mapping\" class=\"wp-image-458406\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configure-payment-shipping-mapping.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configure-payment-shipping-mapping-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configure-payment-shipping-mapping-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/08\/webkul-magento2-payment-shipping-restriction-configure-payment-shipping-mapping-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Front-End<\/strong><\/h3>\n\n\n\n<p>Now at the front-end, the customer can view the restricted shipping and payment methods while placing the order.&nbsp;On the cart page, the customer can view the enabled shipping methods only. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/cart.png\"><img decoding=\"async\" width=\"1365\" height=\"959\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/cart.png\" alt=\"cart\" class=\"wp-image-156623\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/cart.png 1365w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/cart-250x176.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/cart-300x211.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/cart-768x540.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/cart-1200x843.png 1200w\" sizes=\"(max-width: 1365px) 100vw, 1365px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>\n\nAnd accordingly, the customer will select the shipping method when proceeding further.\n\n<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/shipping.png\"><img decoding=\"async\" width=\"1152\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/shipping.png\" alt=\"shipping\" class=\"wp-image-156625\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/shipping.png 1152w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/shipping-250x191.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/shipping-300x229.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/shipping-768x587.png 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>\n\nWhile making the payment, the customer can choose the payment method from the enabled ones only.\n\n<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/payment.png\"><img decoding=\"async\" width=\"1364\" height=\"937\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/payment.png\" alt=\"payment\" class=\"wp-image-156627\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/payment.png 1364w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/payment-250x172.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/payment-300x206.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/payment-768x528.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/payment-1200x824.png 1200w\" sizes=\"(max-width: 1364px) 100vw, 1364px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Magento 2 payment restrictions extension allows shipping and payment method restriction on the <strong>product<\/strong> and on the <strong>category<\/strong>.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Note:<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the admin has not restricted any shipping and payment methods on products then, the control will automatically check for restriction on the category of that product.<\/li>\n\n\n\n<li>If no restriction is applied to the category as well, in that case, all the active shipping and payment methods will be available at checkout.<\/li>\n\n\n\n<li>The module supports <strong>CheckOut with Multiple Address<\/strong> as well.<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Case 1: What if a single product in the cart belongs to multiple categories?<\/strong> <\/h5>\n\n\n\n<p>The shipping and payment restriction made on the <strong>product<\/strong> has a <strong>higher priority<\/strong> than that of categories. So, in this case, firstly it would check the shipping and payment method assigned to the product. <\/p>\n\n\n\n<p>If not assigned, then it will automatically check for restriction on the categories of that product and does the union of payment and shipping methods of the multiple categories. <\/p>\n\n\n\n<p>Union of shipping and payment methods will be displayed at the checkout page.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Case 2: What if the shopping cart has multiple products (each product belongs to multiple categories) with different shipping and payment method enabled?<\/strong> <\/h5>\n\n\n\n<p>The shipping and payment restriction made on the product has a higher priority than that of categories. <\/p>\n\n\n\n<p>So, in this case, firstly it would check the common payment and shipping methods among the multiple products in the cart and accordingly will display them at the checkout. <\/p>\n\n\n\n<p>If no shipping &amp; payment method assigned to products then it will automatically check for shipping &amp; payment method restriction on the categories. <\/p>\n\n\n\n<p>For each product, it does the union of payment and shipping methods of the categories it belongs to. <\/p>\n\n\n\n<p>Secondly, will check the common payment and shipping methods among the multiple union sets created for each product. <\/p>\n\n\n\n<p>And those common shipping and payment methods will be displayed at the checkout page.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Case 3: What if the enabled shipping and payment methods don&#8217;t work for the location from where the customer is placing the order?<\/strong> <\/h5>\n\n\n\n<p>In this case, it first checks the shipping and payment method assigned to the product based on the customer&#8217;s location and accordingly displays them at checkout. <\/p>\n\n\n\n<p>If for a product, restricted shipping and payment method is not applicable as per the customer&#8217;s location, then, the shipping and payment method restriction of the <strong>category<\/strong> will be displayed. <\/p>\n\n\n\n<p>If the shipping &amp; payment restriction is <strong>applicable<\/strong> to a<strong>&nbsp;product,<\/strong> then, payment and shipping restriction is never applicable to that category based product. Let us understand this through an example which is given below.<\/p>\n\n\n\n<p>For instance, there is a product named <strong>Product-1<\/strong> which needs to be shipped to <strong>New York <\/strong>and<strong> Germany<\/strong>. <\/p>\n\n\n\n<p>The shipping and payment method mapping is defined for <strong>Product-1<\/strong> is <strong>USPS<\/strong> and <strong>COD<\/strong>, respectively. One can see that the USPS shipping shall be applicable to <strong>Product-1<\/strong> which needs to be shipped to New York. <\/p>\n\n\n\n<p>At the same time, if the same product, <strong>Product-1<\/strong> is to be shipped to Germany. Moreover, if by any chance, the USPS shipping is not applicable. <\/p>\n\n\n\n<p>There will be no shipping and payment methods applicable for the location Germany on the checkout page.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Case 4:<\/strong> <strong>What if two or more products are added in the cart, each having separate shipping &amp; payment methods mapped on it?<\/strong><\/h5>\n\n\n\n<p>Let&#8217;s suppose there are two <strong>product X<\/strong> and <strong>product Y<\/strong>. For the product X, enabled shipping methods are  <strong>(Free shipping, Table rate &amp; Flat rate<\/strong> <strong>) <\/strong>and <strong>(Check\/Money Order, Bank Transfer Payment &amp; Cash on Delivery ) <\/strong>are its selected payment methods. <\/p>\n\n\n\n<p>Whereas for the product, Y <strong>(Flat rate and Free shipping)<\/strong> are the enabled shipping methods and <strong>(Check\/Money Order, Bank Transfer Payment, Cash on Delivery &amp; PayPal Billing Agreement )<\/strong> are its selected payment methods. <\/p>\n\n\n\n<p>Additionally in the backend Free shipping has been mapped with COD.<\/p>\n\n\n\n<p>As a result, when a customer for an instance add these two products X and Y into his shopping cart only the shipping rates which are commonly present for both the products will be visible to the customer, in this case, <strong>(Flat rate and Free shipping). <\/strong><\/p>\n\n\n\n<p>Further, consider that the customer opted for Free shipping since it is originally mapped with the COD. Therefore only cash on delivery will be visible to the customer. <\/p>\n\n\n\n<p>If the customer picks Fixed rate shipping and note since we haven&#8217;t mapped this with any of the payment methods. <\/p>\n\n\n\n<p>Therefore, here all the common payment methods will be visible to the customer. Which are <strong>(Check\/Money Order, Bank Transfer Payment &amp; Cash on Delivery )<\/strong> for this case.<\/p>\n\n\n\n<p>That\u2019s all for the <strong>Magento 2 (Adobe Commerce) Payment &amp; Shipping Restriction&nbsp;<\/strong>plugin. Still, have any issues, feel free to add a ticket and let us know your views at&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/\">webkul.uvdesk.com<\/a><\/p>\n\n\n\n<p>Explore the&nbsp;<a href=\"https:\/\/webkul.com\/adobe-commerce-cloud\/\" target=\"_blank\" rel=\"noreferrer noopener\">Adobe Commerce Cloud<\/a> development services&nbsp;by Webkul. You may also browse our quality&nbsp;<a href=\"https:\/\/store.webkul.com\/Magento-2.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 extensions<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Magento 2 Payment Restrictions and Shipping module, the admin can assign the shipping and payment methods to products and the categories. Sometimes the admin wants to restrict a few of the shipping and payment methods for some products and category types. So, instead of completely disabling the shipping and payment methods for the store, <a href=\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":152,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[7983,7985,7981,2422,7984,7982,7986],"class_list":["post-156586","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-assign-shipping-payment-methods","tag-categories-shipping-payment-methods","tag-limit-shipping-payment-methods","tag-payment-restriction","tag-product-shipping-payment-methods","tag-restrict-shipping-payment-methods","tag-shipping-restriction"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Guide of Magento 2 Payment Restrictions and Shipping extension<\/title>\n<meta name=\"description\" content=\"Using Payment &amp; Shipping Restriction Magento 2 module, the admin can assign the shipping and payment methods to products and the categories.\" \/>\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-payment-shipping-restriction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Guide of Magento 2 Payment Restrictions and Shipping extension\" \/>\n<meta property=\"og:description\" content=\"Using Payment &amp; Shipping Restriction Magento 2 module, the admin can assign the shipping and payment methods to products and the categories.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/\" \/>\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=\"2019-01-04T06:45:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-06T13:17:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png\" \/>\n<meta name=\"author\" content=\"Kajal Sharma\" \/>\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=\"Kajal Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/\"},\"author\":{\"name\":\"Kajal Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/eeac324d79cd929a522950586c3d26bc\"},\"headline\":\"Guide of Magento 2 Payment Shipping Restrictions\",\"datePublished\":\"2019-01-04T06:45:51+00:00\",\"dateModified\":\"2025-11-06T13:17:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/\"},\"wordCount\":1692,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png\",\"keywords\":[\"Assign Shipping &amp; Payment Methods\",\"Categories Shipping &amp; Payment Methods\",\"Limit Shipping &amp; Payment Methods\",\"Payment Restriction\",\"Product Shipping &amp; Payment Methods\",\"Restrict Shipping &amp; Payment Methods\",\"Shipping Restriction\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/\",\"name\":\"Guide of Magento 2 Payment Restrictions and Shipping extension\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png\",\"datePublished\":\"2019-01-04T06:45:51+00:00\",\"dateModified\":\"2025-11-06T13:17:19+00:00\",\"description\":\"Using Payment & Shipping Restriction Magento 2 module, the admin can assign the shipping and payment methods to products and the categories.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage\",\"url\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png\",\"contentUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guide of Magento 2 Payment Shipping Restrictions\"}]},{\"@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\/eeac324d79cd929a522950586c3d26bc\",\"name\":\"Kajal Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0d2cd60d1df5bcebcbac2ccff8f759366c837d2468ff65a57d369d8c42b7d6f3?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\/0d2cd60d1df5bcebcbac2ccff8f759366c837d2468ff65a57d369d8c42b7d6f3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Kajal Sharma\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/kajalsharma-magento920\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Guide of Magento 2 Payment Restrictions and Shipping extension","description":"Using Payment & Shipping Restriction Magento 2 module, the admin can assign the shipping and payment methods to products and the categories.","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-payment-shipping-restriction\/","og_locale":"en_US","og_type":"article","og_title":"Guide of Magento 2 Payment Restrictions and Shipping extension","og_description":"Using Payment & Shipping Restriction Magento 2 module, the admin can assign the shipping and payment methods to products and the categories.","og_url":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2019-01-04T06:45:51+00:00","article_modified_time":"2025-11-06T13:17:19+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png","type":"","width":"","height":""}],"author":"Kajal Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Kajal Sharma","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/"},"author":{"name":"Kajal Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/eeac324d79cd929a522950586c3d26bc"},"headline":"Guide of Magento 2 Payment Shipping Restrictions","datePublished":"2019-01-04T06:45:51+00:00","dateModified":"2025-11-06T13:17:19+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/"},"wordCount":1692,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png","keywords":["Assign Shipping &amp; Payment Methods","Categories Shipping &amp; Payment Methods","Limit Shipping &amp; Payment Methods","Payment Restriction","Product Shipping &amp; Payment Methods","Restrict Shipping &amp; Payment Methods","Shipping Restriction"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/","url":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/","name":"Guide of Magento 2 Payment Restrictions and Shipping extension","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png","datePublished":"2019-01-04T06:45:51+00:00","dateModified":"2025-11-06T13:17:19+00:00","description":"Using Payment & Shipping Restriction Magento 2 module, the admin can assign the shipping and payment methods to products and the categories.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#primaryimage","url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png","contentUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/07\/1-9.png"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento2-payment-shipping-restriction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Guide of Magento 2 Payment Shipping Restrictions"}]},{"@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\/eeac324d79cd929a522950586c3d26bc","name":"Kajal Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0d2cd60d1df5bcebcbac2ccff8f759366c837d2468ff65a57d369d8c42b7d6f3?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\/0d2cd60d1df5bcebcbac2ccff8f759366c837d2468ff65a57d369d8c42b7d6f3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Kajal Sharma"},"url":"https:\/\/webkul.com\/blog\/author\/kajalsharma-magento920\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/156586","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\/152"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=156586"}],"version-history":[{"count":82,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/156586\/revisions"}],"predecessor-version":[{"id":512613,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/156586\/revisions\/512613"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=156586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=156586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=156586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}