Skip to content

Installation

Allie Reilly edited this page Aug 10, 2016 · 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

Seeding Options

Load all Seeds

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

Load Use Codes

bundle exec rake solidus_avatax_certified:load_use_codes

Environment Variables

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 =

Continue to Setup Requirements

Clone this wiki locally