Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OsCommerce Paypal Tax Issue


whitsey

Recommended Posts

I have configured oscommerce to display tax = true in Configuration -> My Store.

 

On the website, all prices display as Tax Inclusive = good

 

In the confirmation email, it appeared that all prices were displaying as Tax Inclusive = good

 

After some anomalies, I have discovered that Paypal purchases use a separate order process and for some reason, the confirmation email that is sent out is is different than the normal email from checkout_process.

 

Emails sent using paypal_notify.php do not display prices for the line items as Tax Inclusive - All line items are displayed Tax Exclusive.

 

How do I configure the line items to display Tax Inclusive like everywhere else on the site?

Link to comment
Share on other sites

@@whitsey

 

 

That sounds like a PayPal issue as ONLY the order total should be displayed in the PayPal email confirmation to the customer. Check your PayPal settings.

 

 

 

Chris

Link to comment
Share on other sites

@@DunWeb

 

It is in the email that is generated from oscommerce - everything else in the file is picking up what I have configured in paypal_notify.php

 

It is even using the same function as is used in checkout_process.php - If paypal is inserting values in here, can you advise where I could start looking to configure it properly?

 

Here is the code in checkout_process.php and paypal_notify.php that generates the information I am seeing in the emails (the first shows Tax Inclusive, the 2nd Tax Exclusive...

 

checkout_process.php:

 

$products_ordered .= $order->products[$i]['qty'] . ' x ' . tep_db_decoder($order->products[$i]['name']) . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

 

paypal_notify.php:

 

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

 

These lines both get printed in each email (depending on customer payment type) however, the in the first,

$currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])

in checkout_process.php prints prices as Tax Inclusive and

$currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'])

prints Tax Exclusive from paypal_notify.php...

 

I can't see where paypal could manage the display of the price?

Link to comment
Share on other sites

it sounds like your site has been customized. When an order is created it is the same code that sends out the order confirmation email for all payment methods. There is no separate one for PayPal. Is the order being created correctly in Admin?

Link to comment
Share on other sites

it sounds like your site has been customized. When an order is created it is the same code that sends out the order confirmation email for all payment methods. There is no separate one for PayPal. Is the order being created correctly in Admin?

The orders are being generated by customers on the site directly - there is no admin involvement

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...