Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add price with tax in send_order_html_email


Guest

Recommended Posts

Hi,

 

Got a little problem with send_order_html_email.

When the site is sending the confirmation e-mail to the customer the price displayed after the productsname is the price excl. the tax.

I need to display the price incl. tax in the confirmation email.

 

The problem seems to be in the Checkout_process.php file under the heading

// ################ Added Send Order HTML Mail ##################

if i'm not mistaken in this line:

$products_price .= '<tr><td height="40" valign="top">' . ($currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'])) . '</td></tr>';

I already tried to change the line to:

$products_price .= '<tr><td height="40" valign="top">' . ($currencies->format($order->products[$i]['final_price'], $order->products[$i]['tax'] * $order->products[$i]['qty'])) . '</td></tr>';

But it looks like that is not working.

 

Does anyone have an idea how to solve this?

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

It looks like nobody could help me with this.

So it tried serveral options.

Solutions is as follows

$products_price .= '<tr><td height="40" valign="top">' . ($currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'])) . '</td></tr>';
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.

Guest
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...