Jump to content

taxe paypal


tarsalfr

Recommended Posts

bonjour j'ai trouvé cette solution sur le net pour ajouter une taxe a paypal

 

Dans le fichier "paypalpayment.php" situé dans "modules/paypal/payment/"
Remplacer la ligne suivante :
$paymentAmount = (float)($cart->getOrderTotal());
Par :
$amount = round((($cart->getOrderTotal() * 3.4) / 100) + 0.25, 2);
$amount = $amount + $cart->getOrderTotal();
$paymentAmount = (float)($amount);
Ensuite dans le fichier "confirm.tpl" situé dans "modules/paypal/"
Remplacer cette ligne :
<span id="amount_{$currency->id}" class="price">{convertPriceWithCurrency price=$total currency=$currency}</span> {if $use_taxes == 1}{l s='(tax incl.)' mod='paypal'}{/if}
Par :
<span id="amount_{$currency->id}" class="price">{convertPriceWithCurrency price=$total currency=$currency}</span>
<span class="red">
   {l s='+' mod='paypal'}
   {assign var="amount" value="{math equation="((x * y) / z) + a" x=$total y=3.4 z=100 a=0.25}"}
   {convertPriceWithCurrency price=$amount currency=$currency}
   {l s='fee Paypal' mod='paypal'}
</span>
{if $use_taxes == 1}{l s='(tax incl.)' mod='paypal'}{/if}

 

 

 

 

le problème sur la page http://monsite/modules/paypal/payment/submit.php il y a bien la taxe qui s'ajoute mais une fois sur paypal aucune taxe ou ajout sur le prix donc je sollicite votre aide pour trouver une solution merci d'avance

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