That makes sense.
I want to share with you what I found, plus I might need some help understanding!
I found this module https://fr.store.owebia.com/magento2-module-advanced-shipping.html and added it to my development site. Disabling all other shipping methods and only enabling this option with the premade examples, appears to work perfectly well.
That said, I am not a developer and struggling to understand the documentation, so maybe someone here can educate me a bit.
Using the guide, I am trying to create a method based on the Assign Inventory\Source. So I created this entry into the shipping module, but it dont work. I believe its an error with the code I entered as I do not fully understand it. Can someone take a quick look and let me know what I am doing wrong?
// First shipping method
‘title’ => “Standard Shipping”,
‘Enabled’ => $item->product->getSourceItems($sourceItem->source_code == ‘PM’),
‘price’ => 10,
There error I get is “Error Unknown variable $item” so something is wrong on the “Enabled” line. But I do not understand what.