Steps to install:
- Inside packages directory make another directory 'Ecommvu'.
- Inside the directory 'Ecommvu' make another directory 'FlatShipping'.
- Copy content of this repo inside 'Meta' directory.
- Goto root of your Bagisto application and open composer.json and add this line in the psr-4 object -> "Ecommvu\FlatShipping\": "packages/Bluelupin/FlatShipping/src"
- Goto config/app.php file and in the providers array add this line: Ecommvu\FlatShipping\Providers\FlatShippingServiceProvider::class
- Perform composer dump-autoload
- Make sure there are no errors in step 6.
- Now define your shipping rates on the basis of zip codes, the shipping & price matrix in defined in config/ship_matrix.php
- In admin config -> sales -> carriers you will find the flat shipping as the shipping method.
- During checkout when customer enter their zip code in shipping address and it matches the matrix then they will see the rate defined in the matrix.