Agencia Meerkat Posted June 13, 2022 Share Posted June 13, 2022 hello, would there be any way to enter the invoice number in the payment method? Link to comment Share on other sites More sharing options...
PrestaServicePro Posted June 13, 2022 Share Posted June 13, 2022 Hello, could you give more detailed information about what exactly you want and if possible with an image? Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 13, 2022 Share Posted June 13, 2022 Hi, 1- the order is created in PrestaShop only after the payment of the order 2- the invoice is created only after a valid payment is completed, for example a payment by bank transfer will validate the creation of invoice only after the collection and the change of status of the order Therefore, you can't forward the information about the invoice number to your payment method since this information doesn't exist yet. Link to comment Share on other sites More sharing options...
Teemu Mäntynen Posted June 13, 2022 Share Posted June 13, 2022 AFAIK an order, and the invoice and invoice number related to the order, are created when a payment module calls method PaymentModule::validateOrder() Thus invoice number can not be available for payment method during checkout before customer places his/her order. Link to comment Share on other sites More sharing options...
Agencia Meerkat Posted June 14, 2022 Author Share Posted June 14, 2022 https://prnt.sc/FbR-8in6OXQ6 14 hours ago, PrestaServicePro said: Hello, could you give more detailed information about what exactly you want and if possible with an image? Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 14, 2022 Share Posted June 14, 2022 il y a une heure, Agencia Meerkat a dit : https://prnt.sc/FbR-8in6OXQ6 So, what you are trying to do from your screenshot, we have to guess since making sentences seems complicated, is to add the payment method to the invoice number in PrestaShop? ----------------- Donc, ce que vous cherchez à faire d'après votre capture d'écran, on doit deviner puisque faire des phrases semble compliqué, c'est d'ajouter le mode de paiement au numéro de facture dans PrestaShop ? Link to comment Share on other sites More sharing options...
Agencia Meerkat Posted June 14, 2022 Author Share Posted June 14, 2022 2 minutes ago, Mediacom87 said: So, what you are trying to do from your screenshot, we have to guess since making sentences seems complicated, is to add the payment method to the invoice number in PrestaShop? ----------------- Donc, ce que vous cherchez à faire d'après votre capture d'écran, on doit deviner puisque faire des phrases semble compliqué, c'est d'ajouter le mode de paiement au numéro de facture dans PrestaShop ? what I want is the invoice number, the method of payment is displayed Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 14, 2022 Share Posted June 14, 2022 il y a 33 minutes, Agencia Meerkat a dit : what I want is the invoice number, the method of payment is displayed Ok, so I don't understand and I leave it to someone who can decipher this request, good luck. --------------------------- Ok, donc je ne comprends et je laisse la main à quelqu'un qui arrive à déchiffrer cette demande, bonne continuation. Link to comment Share on other sites More sharing options...
Agencia Meerkat Posted June 14, 2022 Author Share Posted June 14, 2022 6 minutes ago, Mediacom87 said: Ok, so I don't understand and I leave it to someone who can decipher this request, good luck. --------------------------- Ok, donc je ne comprends et je laisse la main à quelqu'un qui arrive à déchiffrer cette demande, bonne continuation. What don't you understand? I want the invoice number to show the payment method, then the year, then a series. I need the payment method to come up, as the first item, since I have amazon, aliexpress, cdiscount on the platform. When managing the business and organized invoices. I also don't understand your unfriendly answer. Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 14, 2022 Share Posted June 14, 2022 Il y a 18 heures, Agencia Meerkat a dit : would there be any way to enter the invoice number in the payment method? il y a 43 minutes, Agencia Meerkat a dit : what I want is the invoice number, the method of payment is displayed il y a 3 minutes, Agencia Meerkat a dit : What don't you understand? I want the invoice number to show the payment method, then the year, then a series. I need the payment method to come up, as the first item, since I have amazon, aliexpress, cdiscount on the platform. When managing the business and organized invoices. I also don't understand your unfriendly answer. Thank you for making a complete sentence to specify your request and excuse me for not being able to guess your need when you communicate contradictory information. So to integrate the payment method in the invoice number, we will have to intervene on the creation of this invoice number, so we have to dive into the PrestaShop native code to modify its behavior. -------------------- Merci à vous de faire une phrase complète pour préciser votre demande et excusez-moi de ne pas être en capacité de deviner votre besoin lorsque vous communiquez des informations contradictoires. Donc pour intégrer le mode de paiement dans le numéro de facture, il va falloir intervenir sur la création de ce numéro de facture, donc il faut plonger dans le code natif de PrestaShop pour en modifier le comportement. Link to comment Share on other sites More sharing options...
Agencia Meerkat Posted June 14, 2022 Author Share Posted June 14, 2022 (edited) could it be done? Edited June 14, 2022 by Agencia Meerkat (see edit history) Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 14, 2022 Share Posted June 14, 2022 il y a 9 minutes, Agencia Meerkat a dit : could it be done? Yes, it can be done by a developer. ---------- Oui, c'est faisable par un développeur. Link to comment Share on other sites More sharing options...
PrestaServicePro Posted June 14, 2022 Share Posted June 14, 2022 50 minutes ago, Agencia Meerkat said: could it be done? yes and we can do it for you Link to comment Share on other sites More sharing options...
Agencia Meerkat Posted June 14, 2022 Author Share Posted June 14, 2022 36 minutes ago, PrestaServicePro said: yes and we can do it for you How do I contact you? Link to comment Share on other sites More sharing options...
PrestaServicePro Posted June 14, 2022 Share Posted June 14, 2022 11 minutes ago, Agencia Meerkat said: How do I contact you? PM sent Link to comment Share on other sites More sharing options...
Agencia Meerkat Posted July 26, 2022 Author Share Posted July 26, 2022 Hi, If I upgrade to the new version of prestashop, will my work be deleted? Link to comment Share on other sites More sharing options...
PrestaServicePro Posted July 26, 2022 Share Posted July 26, 2022 (edited) Hi, yes and custom work will be lost in case of not using override Edited July 26, 2022 by PrestaServicePro (see edit history) 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