Magento 2 Shipping Per Category

Magento 2 Shipping per Category by Meetanshi allows charging shipping rates based on the product categories for effective shipping management.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Adding Shipping Rates for Category
  4. Shipping Per Category in Frontend
  5. Shipping Per Category in Backend

 

  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush
  • That’s it.

 

  1. Configuration
    For configuring the extension, login to Magento 2, move to Sales > Shipping Methods > Shipping Per Category where you can find various settings to enable the extension.
  • Enabled: Set “YES” to enable Shipping Per Category extension.
  • Title: Enter title for the shipping method.
  • Method Name: Enter the method name for the shipping method.
  • Default Category Shipping Cost: Select YES to set the default shipping rate when unassigned to the individual category.
  • Default Rate per Category: Enter the default shipping rate to charge for products per category.
  • Handling Fee: Add handling fee if you want to apply on orders.
  • Ship to applicable countries: Select all allowed countries to enable Shipping Per Category for.
  • Ship to specific countries: Select countries to enable Shipping Per Category for.
  • Displayed error message: Set error message to show for the unavailability of the shipping method.
  • Show method only for admin: Set “Yes” to enable Shipping Per Category for admin only.
  • Minimum Order Amount: Specify the minimum order amount to enable Shipping Per Category.
  • Maximum Order Amount: Specify the maximum order amount to enable Shipping Per Category.
  • Sort Order: Add sort order of the shipping method.


 

  1. Adding Shipping Rates for Category
    To set the individual shipping rate for each category, go to Catalog > Categories and select the category for which you want to set the shipping rate. Edit it and you can find the Shipping rate option to add rate as per your requirement.


  

  1. Shipping Per Category in Frontend
    Once you have set individual shipping rates and default rate for the categories, you can see shipping rates per category extension enabled in frontend. After adding products to cart from the categories, the Shipping Per Category method is seen on the cart page. Once it’s selected, it gets applied to order.

 

  • Shipping Per Category on Cart Page


 

  • Shipping Per Category on Checkout Page
    Shipping Per Category shipping method applied on order at the checkout page.


 

  • Shipping Per Category in “My Account” page
    Once the order is placed using Shipping Per Category shipping method, under the “My Orders” tab, shipping details are seen with the name of the shipping method.


  

  1. Shipping Per Category in Backend
    Apart from the frontend, the Shipping Per Category method details can also be seen from the backend under Sales > Orders. The below image shows the order view where Shipping Per Category shipping details are visible.