We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, The code bellow produces empty results var_dump($amounts) when store and customer addresses are in Norway. Am I doing something wrong here?
var_dump($amounts)
$taxTypeRepository = new TaxTypeRepository(); $chainTaxTypeResolver = new ChainTaxTypeResolver(); $chainTaxTypeResolver->addResolver(new CanadaTaxTypeResolver($taxTypeRepository)); $chainTaxTypeResolver->addResolver(new EuTaxTypeResolver($taxTypeRepository)); $chainTaxTypeResolver->addResolver(new DefaultTaxTypeResolver($taxTypeRepository)); $chainTaxRateResolver = new ChainTaxRateResolver(); $chainTaxRateResolver->addResolver(new DefaultTaxRateResolver()); $resolver = new TaxResolver($chainTaxTypeResolver, $chainTaxRateResolver); $customerAddress = new Address(); $storeAddress = new Address(); $storeAddress = $storeAddress->withCountryCode('NO'); $customerAddress = $customerAddress->withCountryCode('NO'); $context = new Context($customerAddress, $storeAddress); $taxable = new MyTaxable(); $amounts = $resolver->resolveAmounts($taxable, $context);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
The code bellow produces empty results
var_dump($amounts)
when store and customer addresses are in Norway.Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: