I am struggling with the tax estimate. The scenario is this. When a logged in user changes the state, the tax is not estimated on the basis changed state but based on the state (region) that is in his profile. Can anybody point me to the right direction why this is happening? Thanks.
I finally found the issue. I was using an Ajax request to the cart controller method estimatePostAction and on successful return, the page where tax is supposed to be shown was reloaded. What actually happened was the new quote shipping address was replaced with the address information from the logged in user. This I found by checking the sales_flat_quote_address table that changes to the new region_id and instantly reverted to the original region_id.
When I stopped reloading the page the estimated region_id was retained. Now I update the tax and grand total html controls simply by using jquery. Hopefully somebody will later find this information useful.
Asked in February 2016Viewed 3,341 timesVoted 8Answered 2 times