I am developing custom shipping method similar to Table rate Shipping method in which I am comparing Product SKU instead of Product Weight/Price.
I am able to import CSV with this change and store CSV data in my custom table successfully.
Now i am not able to find code in Table rate shipping method which is responsible for comparing Product weight/Price with CSV Weight/Price and display shipping rate accordingly in Checkout page.
If anybody has studied Table rate shipping method code, Please guide to find code block for this.
Thanks!
Best Answer
Open vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php
Also check
Now calculation shipping price: