-
Notifications
You must be signed in to change notification settings - Fork 42
Installation
Allie Reilly edited this page Jan 28, 2019
·
1 revision
gem 'spree_avatax_certified', github: 'boomerdigital/spree_avatax_certified', branch: 'your_spree_version'
bundle install
bundle exec rails g spree_avatax_certified:install
_Remember to input environment variables to the .env
bundle exec rake spree_avatax_certified:load_seeds
The line above will:
- Create AvalaraEntityUseCodes given to us by Avalara
- Destroy the 'Default' TaxCategory
- Create Clothing and Shipping TaxCategories
- Add Shipping TaxCategory to all shipping methods
- Add Clothing TaxCategory to all products
- Destroy North America Tax Rate
- Create TaxRate for clothing and shipping
- Populate default stock location with random address
- Load AvalaraPreferences
Some preferences only change between environments, so we gave the ability to either set these in the .env file or set them in the admin Avatax Settings panel.
Note: If you set these preferences through .env, the user will not be able to update or adjust them in the admin panel.
AVATAX_COMPANY_CODE =
AVATAX_ENDPOINT = https://development.avalara.net
AVATAX_ACCOUNT =
AVATAX_LICENSE_KEY =