This Magento 2 custom shipping rate extension will provide you customize shipping rates 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.
We will see more information about both the following methods:
To configure this feature you can go to Store->configuration->Sales->Delivery Methods-> Shipping per product.
To add Shipping rate individually go to – catalog->Products Select that product Then set Shipping Cost.
After adding a custom shipping rate:
When you add the shipping method per product and the calculation method is set to multiply the quantity and if 2 quantities for 2 products with different individual shipping rates are added to the cart, the shipping rate is charged as shown below.
We can change the _id according to our needs: