On my commerce site, I have one normal sales tax, but this sales tax is not visible in checkout or in invoices. I have enabled the rules log messages, and they show that the sales tax is fired.
Is there another rule that needs to follow after the 'calculate sales tax' rule?
" Rule Calculate taxes: Sales tax fires. [edit]
0 ms Rule Calculate taxes: Sales tax fires.
0.073 ms Evaluating the action commerce_tax_calculate_by_type. [edit]
" Executing rule Calculate BTW (21%). [edit]
0 ms Executing rule Calculate BTW (21%).
0.147 ms Evaluating conditions of rule Calculate BTW (21%). [edit]
0.154 ms AND evaluated to TRUE.
" Rule Calculate BTW (21%) fires. [edit]
0 ms Rule Calculate BTW (21%) fires.
0.077 ms Evaluating the action commerce_tax_rate_apply. [edit]
0.474 ms Added the provided variable applied_tax of type commerce_price [edit]
0.489 ms Rule Calculate BTW (21%) has fired.
0.687 ms Finished executing of rule Calculate BTW (21%).
" Executing rule Calculate test. [edit]
0 ms Executing rule Calculate test.
0.121 ms Evaluating conditions of rule Calculate test. [edit]
0.126 ms AND evaluated to TRUE.
" Rule Calculate test fires. [edit]
0 ms Rule Calculate test fires.
0.067 ms Evaluating the action commerce_tax_rate_apply. [edit]
0.412 ms Added the provided variable applied_tax of type commerce_price [edit]
0.427 ms Rule Calculate test has fired.
0.584 ms Finished executing of rule Calculate test.
3.634 ms Evaluating the action variable_add. [edit]
3.677 ms Added the provided variable variable_added of type text [edit]
3.79 ms Evaluating the action drupal_message. [edit]
5.118 ms Rule Calculate taxes: Sales tax has fired.
15.98 ms Finished reacting on event Calculating the sell price of a product.
Comments
Comment #1
creathing commentedOK, after a little bit more testing, I've found out that when I create an order in the admin section (admin/commerce/orders/add), and afterwards hit the button 'apply pricing rules', the sales tax is addes as expected.
It is still not working in the frontend of my site. Can I add an extra rule that has the same action as the 'apply pricing rules'?
Comment #2
rszrama commentedSounds like you need to downgrade from Rules 2.7.
Comment #3
creathing commentedHi rszrama,
Thank you for your answer. I checked the Rules version, and I had 2.8 installed. I first wanted to try 2.9, before downgrading. Turns out that 2.9 also solved my problem!
Thanks again, for your support, you've made my day!