Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Error when configuring production AvaTax mode and credentials at website scope #171

Closed
rsisco opened this issue Sep 12, 2018 · 2 comments
Closed

Comments

@rsisco
Copy link

rsisco commented Sep 12, 2018

An error is encountered when attempting to configure the AvaTax extension's mode and credentials at the website scope.

Preconditions

  1. Magento 2.2.x
  2. AvaTax extension 1.x

Steps to reproduce

  1. In Magento backend, navigate to STORES > Settings > Configuration > SALES > Tax > AvaTax Settings
  2. Ensure scope is set to default and set Enable AvaTax = No
    img
  3. Save Configuration
  4. Change scope to a specific website
    img
  5. Enable AvaTax, set Mode = Production, and provide production credentials (account number, license key, and company code)
  6. Click 'Save Configuration'

Expected result

  1. Magento should report a successful connection to AvaTax with the following message: "Successfully connected to AvaTax using the Production credentials"

Actual result

  1. Magento reports one or more configuration values are missing with the following message: "The AvaTax extension is set to "Production" mode, but production credentials are incomplete."
@rsisco
Copy link
Author

rsisco commented Sep 12, 2018

It looks like the reported error is caused by the method retrieving the production company code not including a scope type. However, once this is fixed, a different error is produced:
"Notice: Undefined index: Production" or "Notice: Undefined index: Development", depending on which mode is chosen.

I've identified some other methods that don't provide a scope type when retrieving config values; and after updating each of those, the problem appears to be fixed.

@rsisco
Copy link
Author

rsisco commented Sep 14, 2018

This issue has been addressed in release 1.4.5.

@rsisco rsisco closed this as completed Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant