Advanced Features
Custom Tax Rules
Configure custom tax rules in Shopware with Zamp Tax:
The plugin creates a default rule "Zamp Rule" during installation with:
Priority: 0
Condition: Cart amount >= 0
Rule acts as availability rule for tax provider
Custom rules can be created through:
Settings → Rules
Add conditions based on customer groups, cart values, etc
Assign rules to Zamp Tax provider
API Integration Details
The plugin integrates with Zamp's API in the following ways:
Authentication:
Uses Bearer token authentication
API token configured in plugin settings
Token validated on save
Endpoints Used:
Tax Calculation: https://api.zamp.com/calculations
POST requests for real-time rates
Headers include Authorization and Content-Type
State-specific Configurations
Tax Provider Setup
Configured with state-specific language handling:
Default language: English (US)
Translations stored in tax_provider_translation table
State Configuration:
Select taxable states in settings
State codes automatically mapped
Individual state tax rules applied
Tax Provider Priority
Priority Configuration
The Zamp Tax provider is configured with:
Default priority: 1 (configurable)
Active status managed through lifecycle methods
Availability controlled by custom rule
Priority Behavior
Higher priority overrides other tax providers
Only processes orders for configured states
Falls back to default provider if:
State not configured
API unavailable
Calculation disabled
Important: Changes to tax provider priority or rules may affect existing tax calculations. Test changes in a staging environment first.