Do we need for loop to set $tax? I think we can assign to smarty from php.