I am using table rate
for shipping methods configuration.
But the final shipping rate will change based on the product weight.
Final shipping rate=Shipping rate*Product weight
For Ex: If the prdouct weight=6kg,Final shipping rate will be 6*100 if the prdouct weight=11kg,Final shipping rate will be 11*90.
How can i achieve this feature?
Please do a modification on this file
app/code/Magento/OfflineShipping/Model/Carrier/Tablerate.php
change line 166 from,
$shippingPrice = $this->getFinalPriceWithHandlingFee($rate['price']);
to
$shippingPrice = ($rate['price']*$request->getPackageWeight());