ajout de frais pour paypal..


6 posts in this topic

Posted · Report post

Bonjour,

est-ce possible d'ajouter des frais uniquement pour le paiement par paypal ?

pour éviter d'ajouter ce qu'ils appele chez paypal une taxe dans laque est inclus les frais paypal ?

si vous avez des idées ou infos je suis preneur !

Merci d'avance..

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

Si vous avez une version supérieur à 6, vous pouvez ajouter un surcout à la commande lors du choix du paiement. Dans le back office, dans le formulaire de modification de moyen de paiement, le champ

"Supplément à ajouter à la commande (en €) :" est prévu à cet effet.

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

merci j'ai vu ça mais en € mais pas en % du prix total avec port..

car 3€ de plus pour une commande à 5€ c'est du vol, mais 3€ de 3000€ il y a une grosse perte !

je cherche à ajouter un montant en % fixe sur le prix total

Merci..

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

Vous pouvez créer un nouveau champ qui s’appellera tarif_percent float(5,2) dans la table peel_paiement.

Dans la class lib/class/Caddie, modifier la fonction set_paiement. Ajouter la ligne

$obj->tarif = $this->total * (1 + $obj['tarif_percent'] / 100); sous la ligne if ($obj = fetch_object($query)) {

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

je vais tenter ça..

Merci encore..

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

Petite correction, la bonne ligne à ajouter est :

$obj->tarif = $this->total * ($obj->tarif_percent / 100);

Share this post


: post
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

Twitter Advisto ecommerce

Facebook PEEL Shopping