Dear Jason,

Thanks to your code, now the cart shows both the Tax row and the Shipping cost row. Thank you so much.

Please, I need to solve these four goals:

Tax Calculation:
The formula we wrote: ([Price] - ([Price] * \$_SESSION['tax'])) * [Quantity] does not work properly because of this. For instance, lets start by a price of 109 euros that has a 16% tax rate included. In order to get the base price of it, we have to divide 109 by 1.16 and it gives you the base price of 93,96 euros. Consequently, the tax value that must show the cart should be the difference between 109 and 93,96.
If we follow the formula ([Price] - ([Price] * \$_SESSION['tax'])) * [Quantity] the base Price that gives us is 91,56, which is not correct.
Considering that the calculation is made on 0.16, which is what appears on the database table, how sould be the formula for this to work fine?

Mail sent to the buyer:
I have applied Universal Email to the confirm page, but when the shopper reaches that page, a message with the order details is sent to the shopper. It is okay, but it is sent just when the shopper arrives at the confirm page, not when the order has been paid. If the customer does not press the button Submit Now, the order is sent anyway, but it shouldn&#8217;t until the cutomer has paid. How can I make the email is sent once the shopper has paid? I do not use local checkout. The payment process takes place at the Banks page.

Cart empty
I think that the cart should get emptly once the buying has been done. How can I clean all sessions in order to get the cart emptly once the shopper has paid?

Order ID
I think the session_id records the order id on the email that is sent by the Universal Email message, but instead of sending the order id, that should be, 1, 2, 3 etc. (that is what it is recorded on the databse), it sends a strange long character. How can I make it send the proper Order ID?

Thank you in advance for your support, indeed.