Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add store filter for collection to load correct tax_class_id when called in admin area #269

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ramzi-attoui
Copy link

When multisite architecture is implemented and tax_class_id is set per website. The global tax_class_id is sent to avatax.
Added a store filter for both functions OnePica_AvaTax_Model_Service_Avatax_Invoice::invoice() and OnePica_AvaTax_Model_Service_Avatax_Invoice::creditmemo() to set up the correct store_id instead of the admin store.

The bug doesn't appear when estimating tax because the right front store will be set automatically (see Mage_Catalog_Model_Resource_Product_Collection ::_prepareProductLimitationFilters())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant