-
Notifications
You must be signed in to change notification settings - Fork 44
Installation
Allie Reilly edited this page Mar 24, 2017
·
8 revisions
gem 'solidus_avatax_certified', github: 'boomerdigital/solidus_avatax_certified', branch: 'your_solidus_version'
bundle install
bundle exec rails g solidus_avatax_certified:install
Remember to load preferences! Gem will not work without calling this rake task.
bundle exec rake solidus_avatax_certified:load_preferences
bundle exec rake solidus_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
bundle exec rake solidus_avatax_certified:load_use_codes
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 =