Skip to content

Override file not working

I am trying to override the vendor/magento/module-inventory-in-store-pickup/Model/GetPickupLocations.php file

I have copied it to app/design/frontend/Magento/child_theme/Magento_InventoryInStorePickup/Model/GetPickupLocations.php

but it doesn’t seem to work, have I copied it to the correct location?