Jump to content

$cart.subtotals.tax.value Where is it stored in the DB?


omar2886
 Share

Recommended Posts

Hi,

I'm getting crazy, can't find where this value gets stored and linked to an order, it's not in ps_orders, all values are there but not the total Taxes of the order.

Thanks

Share this post


Link to post
Share on other sites

This data is not specially recorded in any table.

You have calculation examples in 

classes/PaymentModule.php '

{total_tax_paid}' => Tools::getContextLocale($this->context)->formatPrice(($order->total_paid_tax_incl - $order->total_paid_tax_excl), $this->context->currency->iso_code),

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

\src\Adapter\Presenter\Cart\CartPresenter.php

In the present($cart, $shouldSeparateGifts = false) method you will find exactly those calculations.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More