Jump to content

(solved with coding) PayPal Module 2.8.6 (1.4.7) TAX not shown correctly


BluTiGeS

Recommended Posts

Hi there,

 

I am using Prestashop 1.4.7 and I am getting wrong taxes on the paypal page.

 

I only get the Taxes shown for the Shipment, but not for the Product.

 

For example:

  • Item € 800
  • Tax € 2,28 --> must be (+152 € / 19%)
  • shipping : € 12,00

  • Total € 814,28 EUR

So here I am missing the Taxes for the items.

 

How to fix this?

 

Many thanks

Regards

BluTiGeS

Link to comment
Share on other sites

Okay in the meantime I fixed it by my own

 

change in the payment/paypalpayment.php Row ~73

 

if ($discounts == 0)
 {
  if ($params['cart']->id_customer)
  {
$customer = new Customer((int)$params['cart']->id_customer);
$taxCalculationMethod = Group::getPriceDisplayMethod((int)$customer->id_default_group);
  }
  else

 

to:

 

if ($discounts == 0)
 {
  if ($cart->id_customer)
  {
$customer = new Customer((int)$cart->id_customer);
$taxCalculationMethod = Group::getPriceDisplayMethod((int)$customer->id_default_group);
  }
  else

 

and in row 83 after $priceField enter the following:

//added by BluTiGeS

if($priceField=='price')

{$shippingfield = false;}

else{$shippingfield = true;}

//addded by BluTiGeS

 

And we also have to change shipping displaying

 

$shipping = $this->PayPalRound($cart->getOrderShippingCost($cart->id_carrier, false));

 

to :

 

$shipping = $this->PayPalRound($cart->getOrderShippingCost($cart->id_carrier, $shippingfield));

 

 

Result excl tax:

  • Item €682,00
  • Tax €131,86
  • shipping : 12,00

  • Total €825,86 EUR

and with tax.

  • Item €811,58
  • shipping : €14,28

  • total €825,86 EUR

 

enjoy ;)

Link to comment
Share on other sites

  • 4 months later...

@BluTIGeS:

 

 

I'm having an issue with the gift-wrapping and the discounts (vouchers). They should be showing in the Paypal page, but instead it is showing as "TAX" and summed up, I mean, the discount - (minus) gift wrapping cost.

 

Example:

 

I have gift wrapping for 4€ and the discount is 3€. In the Paypal page (already in Paypal to log in or pay with Credit Card) it is showing as Tax: 1€

 

Here in Germany this is a big issue as you might already know. And I don't know if this is an issue of the module itself or Prestashop, or the theme. We're having our heads already smoking trying to solve this since several days. I've found other threads (one or 2!) about this issue, but unresolved, and sadly the only answer from Prestashop team is to install the new module where it is solved.

 

Problem is for us here in Germany, we can't use the new module because it is using ONLY Paypal Express which is not allowed with the new 1-button law.

 

Do you know how can we solve this issue? - it's driving us mad!

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

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
×
×
  • Create New...