taxjar / module-taxjar
Magento 2 的 TaxJar 销售税模块
Requires
- magento/framework: ^103.0.0
- dev-develop
- 2.2.0
- 2.1.0
- 2.0.0
- 1.9.9
- 1.9.8
- 1.9.7
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- dev-353-Customer-repository-undefined-logger-regression
- dev-logging-configuration-di
- dev-341-order-grid-filter-error
- dev-XCON-190-refactor-deprecated-registry-usage
- dev-feature-updates
- dev-coding-standards-cleanup
- dev-fix-phpmd-test-errors
- dev-gh-actions-refactor
- dev-feat-gh-actions
- dev-mftf-test
- dev-master
- dev-integration-day
This package is auto-updated.
Last update: 2024-09-17 17:37:40 UTC
README
使用 TaxJar 的实时结账计算和基于邮政编码的备份税率来简化您的销售税。
要开始使用,请查看我们的 M2 扩展指南!
入门指南
从本存储库下载扩展的 ZIP 文件,或使用以下命令使用 Composer 安装我们的模块:
composer require taxjar/module-taxjar
如果您手动安装扩展,请解压存档,并将文件上传到 /app/code/Taxjar/SalesTax
。上传后,运行以下 Magento CLI 命令
bin/magento module:enable Taxjar_SalesTax --clear-static-content
bin/magento setup:upgrade
bin/magento setup:di:compile
这些命令将启用 TaxJar 扩展,执行必要的数据库更新,并重新编译您的 Magento 商店。从那里,您将想要运行预导入清单,并使用我们的 扩展指南 设置一切。
测试
要运行我们的结账计算集成测试,将存储库克隆到您的本地 Magento 2 实例中。您需要有效的 TaxJar API 令牌(最好是测试账户)才能运行这些测试。
git clone https://github.com/taxjar/taxjar-magento2-extension.git app/code/Taxjar/SalesTax
将 dev/tests/integration
下的现有 phpunit.xml
重命名为 phpunit.xml
。将 app/code/Taxjar/SalesTax/Test/Integration
下的 phpunit.xml file
复制到 TaxJar 模块中。
cp app/code/Taxjar/SalesTax/Test/Integration/phpunit.xml dev/tests/integration/phpunit.xml
将 dev/tests/integration/etc
下的 install-config-mysql.php.dist
重命名为 install-config-mysql.php
。确保 Magento 有权限访问 MySQL 数据库以运行集成测试。
将 Test/Integration/credentials.php.dist
复制到同一目录下的 credentials.php
,并添加您的 TaxJar API 令牌。
cp app/code/Taxjar/SalesTax/Test/Integration/credentials.php.dist app/code/Taxjar/SalesTax/Test/Integration/credentials.php
最后,使用 PHPUnit 运行 TaxJar 测试套件。
vendor/bin/phpunit -c ~/OSS/magento2/dev/tests/integration/phpunit.xml --testsuite “Taxjar”
注意,配置标志应包括 phpunit.xml
的完整路径。
许可证
TaxJar 的 Magento 2 模块在 Open Software License 3.0 (OSL-3.0) 下发布。
支持
如果您在我们的扩展中找到错误,请在此处 GitHub 上 新建问题。对于有关 TaxJar 的一般问题或商店的特定问题,请在我们扩展指南查阅后 联系我们。