Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Tax in checkout_confirmation.php


Recommended Posts

Hi Guys,


here is the solution for taxcalculation in Tax in checkout_confirmation.php:

Change in ot_giftwrap.php the function process() in :

function process() {

global $order, $currencies;


if (tep_not_null($order->info['giftwrap_method'])) {


$giftwrap_tax = tep_get_tax_rate(MODULE_ORDER_TOTAL_GIFTWRAP_TAX_CLASS);

$tax_description = tep_get_tax_description(MODULE_ORDER_TOTAL_GIFTWRAP_TAX_CLASS, $order->delivery['country']['id'], $order->delivery['zone_id']);


$order->info['tax'] += tep_calculate_tax($order->info['giftwrap_cost'], $giftwrap_tax);

$order->info['tax_groups']["$tax_description"] += tep_calculate_tax($order->info['giftwrap_cost'], $giftwrap_tax);

$order->info['total'] += tep_calculate_tax($order->info['giftwrap_cost'], $giftwrap_tax);


if (DISPLAY_PRICE_WITH_TAX == true) $order->info['giftwrap_cost'] += tep_calculate_tax($order->info['giftwrap_cost'], $giftwrap_tax);



$this->output[] = array('title' => $order->info['giftwrap_method'] . ':',

'text' => $currencies->format($order->info['giftwrap_cost'], true, $order->info['currency'], $order->info['currency_value']),

'value' => $order->info['giftwrap_cost']);



This will solve the problem!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...