Magento 2 Custom Shipping rate per product and state wise programmatically

Introduction:

This Magento 2 custom shipping rate extention will provide you customize shipping rate according to states per product.Using this extension admin can set different shipping rates for each product in the store, admin can charge separate shipping charges for each product in the cart during the checkout.

1.Shipping rate  per product

2.State wise shipping rate

Configuration:

To configure this feature you can go to Store->configuration->Sales->Delivery Methods-> Shipping per product.

  • Enabled: Set “YES” to enable shipping per product extension. 
  • Multiply Quantity: Charges sum of shipping rate per product in order. 
  • Title: Enter title for the shipping method. 
  • Shipping Rate: Select how you want to calculate the shipping rate. 
  • Per Product: Rate will be calculated product wise.
  • Method Name: Enter method name for the shipping method 
  • Price:  You can add base shipping price.
  • Default Product Shipping Cost: Select YES to set default shipping rate when unassigned to individual product. 
  • Default Rate per Item: Enter default shipping rate to charge per product 
  • Handling Fee: Add handling fee if you want to apply on orders. 
  • Ship to applicable countries: Select all allowed countries to enable shipping per product for 
  • Ship to specific countries: Select countries to enable shipping per product for. 
  • Displayed error message: Set error message to show for unavailability of the shipping method 

Sort Order: Add sort order of the method

Add Shipping rates to specific product as per your requirement: 

  • To add Shipping rate individually go to – catalog->Products  Select that product Then set 

Shipping Cost .

1.Shipping rate  per product :

Features :

  • You can assign specific shipping rate to the product you want.
  • If you have not assigned any shipping rate to product, It will take default shipping rate for that product.
  • Enable/Disable shipping for product as per store wise.

Default Rate : Before adding custom shipping rate.

After Adding custom shipping rate :

Shipping as per product on cart page – per product – Sum of rates:

When you add shipping method per product and calculation method is set to multiply quantity and if 2 quantities for 2 products with different individual shipping rates is added to the cart, shipping rate is charged as shown below.

2.State wise shipping rate :

Features :

  • Apply custom rate for specific state.
  • We have options to multiply rate as per product quantity.
  • If two products are added it will take higher shipping rate after calculating.



We can change id according to our need :

Leave a Reply

Your email address will not be published. Required fields are marked *