Jump to content

[Résolu] Paypal ne tient pas compte des arrondis sur les frais de port


Recommended Posts

Pour ceux qui rencontrent le problème des frais de ports ne suivant pas la règle des arrondis définis en BO, c'est un bug du module Paypal.

Allez à la ligne 368 du paypal/express_checkout/process.php et remplacez:

$fields['PAYMENTREQUEST_0_SHIPPINGAMT'] = sprintf('%.2f', $shipping_cost_wt);

par:

$fields['PAYMENTREQUEST_0_SHIPPINGAMT'] = sprintf('%.2f', Tools::ps_round($shipping_cost_wt, $this->decimals));

@++

Link to comment
Share on other sites

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