zweebe Posted January 16, 2017 Share Posted January 16, 2017 Bonjour à tous, je rencontre un petit soucis sur mes factures, je m'explique: Lorsque je fais un réalisant une commande avec comme moyen de paiement, et que je la valide dans le back-office, lorsque je l'imprime il y a une fenêtre qui s'ajoute sur la facture avec "Bank Name, IBAN, BIC, etc..." Ces informations viennent du code PayPal alors que j'ai choisi le mode Paiement par virement bancaire. Je ne comprend pas parquoi cette fenêtre apparait là? Comment puis-je la retirer diffinitivement? Voici l'exemple: http://img11.hostingpics.net/pics/270916bill.jpg Link to comment Share on other sites More sharing options...
Eolia Posted January 16, 2017 Share Posted January 16, 2017 Non, du tout, ces informations viennent du module de paiement par virement, celui que vous avez choisi pour cette commande^^ Link to comment Share on other sites More sharing options...
zweebe Posted January 16, 2017 Author Share Posted January 16, 2017 Pourtant c'est bien dans le fichier paypal.php que je retrouve ces info dans le codes... Comment puis-je retirer ce cadre? Link to comment Share on other sites More sharing options...
Eolia Posted January 16, 2017 Share Posted January 16, 2017 Exact, j'ai répondu trop vite^^ Nouveauté de leur option braintree.. Juste après l'appel du hook, faites un return true: public function hookDisplayPDFInvoice($params) { return true; $order_detail = PaypalPlusPui::getByIdOrder($params['object']->id_order); $information = json_decode($order_detail['pui_informations'],true); $tab = '<table style="border: solid 1pt black; padding:0 10pt"> <tr><td></td><td></td></tr> <tr><td><b>'.$this->l('Bank name').'</b></td><td>'.$information['recipient_banking_instruction']['bank_name'].'</td></tr> <tr><td><b>'.$this->l('Account holder name').'</b></td><td>'.$information['recipient_banking_instruction']['account_holder_name'].'</td></tr> <tr><td><b>'.$this->l('IBAN').'</b></td><td>'.$information['recipient_banking_instruction']['international_bank_account_number'].'</td></tr> <tr><td><b>'.$this->l('BIC').'</b></td><td>'.$information['recipient_banking_instruction']['bank_identifier_code'].'</td></tr> <tr><td></td><td></td></tr> <tr><td><b>'.$this->l('Amount due / currency').'</b></td><td>'.$information['amount']['value'].' '.$information['amount']['currency'].'</td></tr> <tr><td><b>'.$this->l('Payment due date').'</b></td><td>'.$information['payment_due_date'].'</td></tr> <tr><td><b>'.$this->l('reference').'</b></td><td>'.$information['reference_number'].'</td></tr> <tr><td></td><td></td></tr> </table>'; return $tab; } Link to comment Share on other sites More sharing options...
zweebe Posted January 16, 2017 Author Share Posted January 16, 2017 Super merci ! Tant qu'on est dans la facture, d'ou provient les coordonnées en haut a gauche de la facture? Ou puis-je les modifier? 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