tarsalfr Posted October 12, 2012 Share Posted October 12, 2012 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 More sharing options...
Miryam68 Posted October 13, 2012 Share Posted October 13, 2012 Bonjour Pourquoi ajouter une taxe sur paypal ? Ajouter le lors de la tarification des produits directement non ? Link to comment Share on other sites More sharing options...
tarsalfr Posted October 15, 2012 Author Share Posted October 15, 2012 et bien je voudrais que cette taxe s applaique uniquement au paiement par paypal et pas par cheque ou virement bancaire Link to comment Share on other sites More sharing options...
Divine Posted October 15, 2012 Share Posted October 15, 2012 Bonjour, Attention à la légalité de la chose : http://www.prestashop.com/forums/topic/135866-resoluajout-des-frais-si-le-client-utilise-paypal/ Link to comment Share on other sites More sharing options...
catfishblues Posted October 16, 2012 Share Posted October 16, 2012 idem de mon coté, j'aimerai bien savoir si il est possible de le faire via un module. n'étant pas en france ni en europe pour moi cela est légal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now