Jump to content

Problème de calcul avec le module PayPal 1.3.9 USA


Recommended Posts

Problème de calcul avec le module PayPal 1.3.9 USA

 

 

Voici un cas de figure sous Prestashop 1.6.1.10 (panier client) :

 

 

 

Produit 20.00$ CAD HT (correct)

 

 

 

Transport 14.41$ CAD HT (correct)

 

 

 

Total hors taxes 34.41$ HT (correct)

 

 

 

Taxes 3.16$ CAD TPS/TVQ (correct)

 

 

 

Total 37.57$ CAD TPS/TVQ (correct)

 

 

 

-------------------------------------

 

Voici le calcul du module PayPal USA 1.3.9

 

--------------------------------------

 

Produit 20.00$ CAD HT (correct)

 

 

 

Transport 16.57$ CAD TTC (faux)

 

 

 

Total objet (panier) 36.57$ CAD (faux)

 

 

 

Taxes 3.16$ (correct)

 

 

 

Total 39.73$ CAD facturé au client. (faux)

 

 

-----------------------------------------------------------------------------------------

 

 

Le problème se trouve très exactement à la ligne 48 (notepad++)  

 

 

/prestashop/modules/paypalusa/views/templates/hook/standard.tpl

 

 

Ligne 48    {assign var="paypal_usa_total_shipping" value=$cart->getOrderTotal(true, Cart::ONLY_SHIPPING)}

 

 

Vous devez remplacer la valeur true par false

 

 

Ligne 48   {assign var="paypal_usa_total_shipping" value=$cart->getOrderTotal(false, Cart::ONLY_SHIPPING)}

 

 

Solution viable pour le module PayPalUSA 1.3.9 sous Prestashop 1.6.1.10

 

 

 Patrick Lemieux

Edited by Billard Expert (see edit history)
  • Like 1
Link to comment
Share on other sites

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