Popular Post scorpionsworld Posted January 21, 2013 Popular Post Share Posted January 21, 2013 (edited) Order referentie wijzigingsmodule v1.5Module to change the order reference using Order ID AND/OR Cart IDCompatibility: Prestashop v1.5.X and aboveScreenshots:Edit by mdekker: Temporary download link for version 1.3: https://github.com/firstred/mdrefchange/releases/download/1.3.0/v1.3.0-modrefchange.zip Note: this version should not be used with 1.6 as it is NOT compatible, please wait for the new version Edited June 13, 2016 by mdekker Fix broken link (see edit history) 30 Link to comment Share on other sites More sharing options...
coolu Posted February 4, 2013 Share Posted February 4, 2013 installed and tested on my site on 1.5.3 works perfect Thanks you mate you made my day 1 Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 4, 2013 Author Share Posted February 4, 2013 installed and tested on my site on 1.5.3 works perfect Thanks you mate you made my day You're welcom Link to comment Share on other sites More sharing options...
jimmyc Posted February 6, 2013 Share Posted February 6, 2013 Wow, this looks good. Does it change the core or do any other changes? Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 6, 2013 Author Share Posted February 6, 2013 Wow, this looks good. Does it change the core or do any other changes? No, the module simply hooks on to actionvalidateorder. The hook is called when the order gets validated by the paymentmodule. Link to comment Share on other sites More sharing options...
jimmyc Posted February 7, 2013 Share Posted February 7, 2013 Nice. We will try it soon. Link to comment Share on other sites More sharing options...
Mrvoxx Posted February 8, 2013 Share Posted February 8, 2013 I´ve installed but when I finished some orders two numbers are shown in the payment details (bankwire) and in the confirmation e-mails: No te olvides de insertar tu número de pedido 19_24 en el tema de su transferencia bancaria. No te olvides de insertar tu número de pedido 20_25 en el tema de su transferencia bancaria. No te olvides de insertar tu número de pedido 21_26 en el tema de su transferencia bancaria The correct ID_order are 19, 20, and 21!! please help!! Link to comment Share on other sites More sharing options...
jimmyc Posted February 8, 2013 Share Posted February 8, 2013 (edited) looks like you might have it set to also show the "cart" number as the order reference. Try setting it like this. I get 000000345 style references like this see pic I could be wrong though??? Edited February 8, 2013 by jimmyc (see edit history) Link to comment Share on other sites More sharing options...
jimmyc Posted February 8, 2013 Share Posted February 8, 2013 not sure about bank wire but my order confirmations (emails of the invoice) have the right number. Hopefully the customers are seeing the same??? Link to comment Share on other sites More sharing options...
Matti Posted February 8, 2013 Share Posted February 8, 2013 Great module. However, It would be nice to see an option to set a total order reference digit length. 9 is a bit an overkill for me. Link to comment Share on other sites More sharing options...
jimmyc Posted February 8, 2013 Share Posted February 8, 2013 is it 9, i just made that number up, and you can set it to show the 000's in front or not. Link to comment Share on other sites More sharing options...
Matti Posted February 8, 2013 Share Posted February 8, 2013 We do need 000 in front but not so many. Just like in previous versions 6 total digits would be enough. Say order number 16, Order reference 000016. Link to comment Share on other sites More sharing options...
Mrvoxx Posted February 8, 2013 Share Posted February 8, 2013 looks like you might have it set to also show the "cart" number as the order reference. Try setting it like this. I get 000000345 style references like this see pic I could be wrong though??? many thanks, I set off the cart ID option Link to comment Share on other sites More sharing options...
jimmyc Posted February 8, 2013 Share Posted February 8, 2013 I see yes it is 9 digits, future proof?? HA! I can still search for the number without the 000's so i do not mind. Much better for our mental proximity than HSUENDHSHE. Point taken though. Link to comment Share on other sites More sharing options...
jimmyc Posted February 8, 2013 Share Posted February 8, 2013 many thanks, I set off the cart ID option thank scorpionsworld he is the hero here. Great module! Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 8, 2013 Author Share Posted February 8, 2013 Great module. However, It would be nice to see an option to set a total order reference digit length. 9 is a bit an overkill for me. I might be able to create such an option BUT, by default reference is a 9 digit length. My guess is Prestashop had a reason to raise the bar. Link to comment Share on other sites More sharing options...
Matti Posted February 9, 2013 Share Posted February 9, 2013 yes, that reason was to avoid duplicates as they use random letter password generator for their new order reference. Most of the users just want the old 6 digit sequential order reference back. Link to comment Share on other sites More sharing options...
Mrvoxx Posted February 9, 2013 Share Posted February 9, 2013 help! I can´t enter in the backoffice in modules, and in the frontffice an error appears in the last step of the cart (after choose payment method)- The module worked well!! but after install the module I´ve modified the spanish tranlations in bankwire/ltranslations/es. For unistall the module, Can I delete the folder ordrefchange? or I have to do anymore? or its a problem of the modifications in the spanish tranlations? thanks Link to comment Share on other sites More sharing options...
Mrvoxx Posted February 9, 2013 Share Posted February 9, 2013 I fixed it. it was the spanish file !! 2 Link to comment Share on other sites More sharing options...
jimmyc Posted February 9, 2013 Share Posted February 9, 2013 I fixed it. it was the spanish file !! Good news, thanks for letting us know! Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 14, 2013 Author Share Posted February 14, 2013 (edited) [NEDERLANDS] Update van de module. modrefchange v1.1 In de geupdate versie is het nu ook mogelijk om het aantal nullen gebruikt als voorloopnullen van de cart of order id in te stellen. Standaard is dit tot 9 nullen maar is in te stellen van 1 t/m 10. [ENGLISH] Module update. modrefchange v1.1 In this updated version it is now possible to configure the number of zeros uses as padding before the cart or order id. Standard this is set to 9 but can be configured between 1 and 10. Edited July 1, 2013 by scorpionsworld (see edit history) 4 Link to comment Share on other sites More sharing options...
e.lito referencement Posted February 15, 2013 Share Posted February 15, 2013 Hi guys, here is french translation, hope it's good certainly not perfect but it's a start. Thank you for the module it's a good idea. [FRENCH] https://www.dropbox.com/s/e4nqzifjcppui0g/fr.php Bonjour tout le monde, je viens de faire la traduction du module, j'espère qu'elle est correcte si quelqu'un peut vérifier ce serait pas mal en tout cas (attention mot clés) c'est pratique de pouvoir personnalisé la référence des commandes prestashop by Link to comment Share on other sites More sharing options...
jimmyc Posted February 15, 2013 Share Posted February 15, 2013 scorpionsworld you are fantastic! Link to comment Share on other sites More sharing options...
Ivan VDE Posted February 16, 2013 Share Posted February 16, 2013 Hallo Scorpionsworld, wanneer ik de module wil installeren krijg ik de foutmelding "The module modules you uploaded is not a module" Enig idee, wat ik moet doen ? Thanks, Ivan Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 16, 2013 Author Share Posted February 16, 2013 Hallo Scorpionsworld, wanneer ik de module wil installeren krijg ik de foutmelding "The module modules you uploaded is not a module" Enig idee, wat ik moet doen ? Thanks, Ivan Ja. De modrefchange folder uit de zip met FTP uploaden naar de /modules/ folder van de je webserver. Link to comment Share on other sites More sharing options...
jdrda Posted February 16, 2013 Share Posted February 16, 2013 (edited) Sry, I wanted to post this to another topic. Please delete. Order.php Edited February 16, 2013 by jdrda (see edit history) 1 Link to comment Share on other sites More sharing options...
way1 Posted February 20, 2013 Share Posted February 20, 2013 Dear Sir,. Could you add several simple and useful option to you fantastic module? Namely: 1. Set starting number of orders ID (and as final order #) as it done for inoice numbers in Prestashop 1.5.3.1 (see Back Office-Orders-Invoices) 2. I think that Order ID, Order Number and Invoice numbers for the same order should nbe the same number. Could you merge all these features/options in your module? 1. set leading zeros for order number 2. make invoice number = order number = order ID 3. set starting number for order's numbering. I.e. next order number will be for example 15456 and will be increment for each next number. 4. Possibility choose # or № as prefix for numbering orders as in different countries used or # or №. The options "3" I made manually so far, but you can integrate it in your module. I run SQL Query ALTER TABLE `ps_orders` AUTO_INCREMENT=15456; Next I set in BO-Orders-Invoices starting number for order invoices to 15456 That's all. Of couse you should chack that this number should be greater then last order_id in ps_orders table. Please add this features to yur module and it will be most helpful thing for Prestashop' users! Best regards. Thank you! Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 20, 2013 Author Share Posted February 20, 2013 Dear Sir,. Could you add several simple and useful option to you fantastic module? Namely: 1. Set starting number of orders ID (and as final order #) as it done for inoice numbers in Prestashop 1.5.3.1 (see Back Office-Orders-Invoices) 2. I think that Order ID, Order Number and Invoice numbers for the same order should nbe the same number. Could you merge all these features/options in your module? 1. set leading zeros for order number 2. make invoice number = order number = order ID 3. set starting number for order's numbering. I.e. next order number will be for example 15456 and will be increment for each next number. 4. Possibility choose # or № as prefix for numbering orders as in different countries used or # or №. The options "3" I made manually so far, but you can integrate it in your module. I run SQL Query ALTER TABLE `ps_orders` AUTO_INCREMENT=15456; Next I set in BO-Orders-Invoices starting number for order invoices to 15456 That's all. Of couse you should chack that this number should be greater then last order_id in ps_orders table. Please add this features to yur module and it will be most helpful thing for Prestashop' users! Best regards. Thank you! I'm sorry to say, but the features you mention will not be put in this module.The reason for this is that all mentioned features are meant to change either the order id or the invoice id, while the module is only meant to change the random code order reference. The changes you mention can either be done by editing (PDF-)templates or by using an SQL query in BO->Advanced Parameters->SQL Manager Link to comment Share on other sites More sharing options...
way1 Posted February 21, 2013 Share Posted February 21, 2013 The reason for this is that all mentioned features are meant to change either the order id or the invoice id, while the module is only meant to change the random code order reference. Daer Sir, did you mean that this module generate random numeric number, not increment number? Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 22, 2013 Author Share Posted February 22, 2013 Daer Sir, did you mean that this module generate random numeric number, not increment number? Dear Lion1,This module doesn't generate any number, it takes the number already generated by the cart and/or order objects. Link to comment Share on other sites More sharing options...
way1 Posted February 22, 2013 Share Posted February 22, 2013 Thank you for the answer. Link to comment Share on other sites More sharing options...
pattuka Posted February 24, 2013 Share Posted February 24, 2013 Many thanks for your job scorpionsworld. I only have one problem with your module, it doesn't work the function of using zeros for the order ID prefix. If I have activated the option it doesn't work, and also if I specify a number of "0" to use, it doesn't work too. ¿Could you help me? :-) Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 24, 2013 Author Share Posted February 24, 2013 Many thanks for your job scorpionsworld. I only have one problem with your module, it doesn't work the function of using zeros for the order ID prefix. If I have activated the option it doesn't work, and also if I specify a number of "0" to use, it doesn't work too. ¿Could you help me? :-) Could you please check if the module is hooked correctly to 'actionvalidateorder' in Backoffice->Moduels->Positions? Link to comment Share on other sites More sharing options...
pattuka Posted February 24, 2013 Share Posted February 24, 2013 Hello scorpionsworld, The module is hooked to activationvalidateorder, I use prestashop 1.5.3 Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 24, 2013 Author Share Posted February 24, 2013 Hello scorpionsworld, The module is hooked to activationvalidateorder, I use prestashop 1.5.3 And the module doesn't do anything to the order reference when an order is placed? Link to comment Share on other sites More sharing options...
Berlindoor Posted February 24, 2013 Share Posted February 24, 2013 (edited) here works perfectly in the form MyText000[Ord_ID] big thank you, Prestashop would be almost unusable without people like you Edited February 24, 2013 by andrep (see edit history) Link to comment Share on other sites More sharing options...
pattuka Posted February 24, 2013 Share Posted February 24, 2013 And the module doesn't do anything to the order reference when an order is placed? Yes, the module works, it replaces the letter code used by prestashop with the corresponding numbers, even if I add something as prefix (a letter for example) works. The only thing that don't work is if you try to use zeros to prefix the order. Link to comment Share on other sites More sharing options...
Berlindoor Posted February 24, 2013 Share Posted February 24, 2013 (edited) just a note pay attention that your REF id is < than 9 characters my REF code was GREEN000324 (11 characters) and prestashop dropped an internal error 500. After debugging it turned out that it was the paypal module which freaked out. Prestashop always reminds me internet explorer 6.0... Edited February 24, 2013 by andrep (see edit history) Link to comment Share on other sites More sharing options...
artofadornment Posted February 25, 2013 Share Posted February 25, 2013 (edited) This is strange, when I try to install from the BO I get a message saying "The module modules you uploaded is not a module" and nothing happens, it won't install. I'm using PS 1.5.3, am I missing something? Never mind, I unzipped and pasted it in instead and was able to install it just fine. Great module, thanks!! Edited February 25, 2013 by artofadornment (see edit history) Link to comment Share on other sites More sharing options...
FvdM Posted February 28, 2013 Share Posted February 28, 2013 Hmm, om de één of andere reden krijg ik de leading zero's niet actief... Kun jij me eens uitleggen wat ik precies moet instellen voor onderstaand voorbeeld: Gewenst ordernummer: 2013_0000[Order_id] (Totaal aantal posities na '2013_' is 6, dit is inclusief het aantal posities van de "Order_id"). Ik heb de volgende instellingen gemaakt/geprobeerd in PS1.5.1: Use Order ID Enabled Use Zeros to prefix Order ID Enabled Number of zeros to prefix Order ID "Leeg" Use Character(s) to prefix Order ID 2013_ Use Cart ID Disabled Use Zeros to prefix Cart ID "Leeg" Number of zeros to prefix Cart ID 6 Use Characters to prefix Order Reference "Leeg" Use Order ID Enabled Use Zeros to prefix Order ID Enabled Number of zeros to prefix Order ID 6 Use Character(s) to prefix Order ID 2013_ Use Cart ID Disabled Use Zeros to prefix Cart ID "Leeg" Number of zeros to prefix Cart ID "Leeg" Use Characters to prefix Order Reference "Leeg" Beide geven als output 2013_74 o.i.d. ... Wat doe ik verkeerd? Misschien een extra tip voor de volgende versie: Gebruik van een datestamp voor de text prefix. Alvast bedankt. Link to comment Share on other sites More sharing options...
scorpionsworld Posted February 28, 2013 Author Share Posted February 28, 2013 [NL] Hmm, lijkt er op dat de zeros-padding niet correct werkt. Ik zal gaan werken aan een kleine bugfix en deze zo spoedig mogelijk uit brengen. [EN] Looks like the padding using zeros isn't working correctly. I will work on a minor bugfix as soon as possible. Link to comment Share on other sites More sharing options...
Yankee Store Posted March 2, 2013 Share Posted March 2, 2013 the only issue i have when i do use this module is that the order history 1. show payments made ( 2 times actual paid ) as it activates order a second time if this could be fixed, it would be great Link to comment Share on other sites More sharing options...
eleazar Posted March 2, 2013 Share Posted March 2, 2013 (edited) @scorpionsworld Awesome! Great module. Works perfect. Thx a lot! When doing the translations for German users I noticed that 4 items are missing in the translations files en.php and the nl.php: Number of zeros to prefix Order ID Number of zeros to use as padding. Must be between 1 and 10. Number of zeros to prefix Cart ID Number of zeros to use as padding. Must be between 1 and 10. Anyhow, just one tiny little blemish ... I attach a German translations for users in Germany, Austria or Switzerland: Edited March 2, 2013 by eleazar (see edit history) 1 Link to comment Share on other sites More sharing options...
scorpionsworld Posted March 2, 2013 Author Share Posted March 2, 2013 the only issue i have when i do use this module is that the order history 1. show payments made ( 2 times actual paid ) as it activates order a second time if this could be fixed, it would be great That certainly shouldn't happen as the module doesn't activate the order. I'll look in to it. @scorpionsworld Awesome! Great module. Works perfect. Thx a lot! When doing the translations for German users I noticed that 4 items are missing in the translations files en.php and the nl.php: Number of zeros to prefix Order ID Number of zeros to use as padding. Must be between 1 and 10. Number of zeros to prefix Cart ID Number of zeros to use as padding. Must be between 1 and 10. Anyhow, just one tiny little blemish ... I attach a German translations for users in Germany, Austria or Switzerland: I'll add the German translation in the next updated release and add the missing translations in the Dutch and English translation files. Thanks for your work and input Link to comment Share on other sites More sharing options...
e.lito referencement Posted March 4, 2013 Share Posted March 4, 2013 Hi i think i have found an issue with payement module. With orders paid by check or bankwire no problem but when i'm doing paiement with CreditCard there is two entries for one order same amount and same time but with différent order_reference (in table : ps_order_payment) this cause wrong amount in stats. When i disable the module of course ther is no beautiful order reference but just one order paiement. what do you think ? thank for your reply Link to comment Share on other sites More sharing options...
e.lito referencement Posted March 5, 2013 Share Posted March 5, 2013 after thinking i think the module override a prestashop function in front-end only in order to override this or similar function in back-end too, if it could help Link to comment Share on other sites More sharing options...
e.lito referencement Posted March 7, 2013 Share Posted March 7, 2013 hello anyone here ??? Link to comment Share on other sites More sharing options...
scorpionsworld Posted March 7, 2013 Author Share Posted March 7, 2013 hello anyone here ??? Yes. And i've already seen your posts. I'm working on a new bug release but that might take some time.Please be patient 1 Link to comment Share on other sites More sharing options...
babymaxi Posted March 9, 2013 Share Posted March 9, 2013 Hi Scorpionsworld, great module! 100000000 thanks ... yes that's 9 digits : ) Can't wait for the new release with the bug fix! Will come back here. Bedankt. Link to comment Share on other sites More sharing options...
e.lito referencement Posted March 13, 2013 Share Posted March 13, 2013 Yes. And i've already seen your posts. I'm working on a new bug release but that might take some time. Please be patient OK thank you very much, do you have an idea of how much time it can take, just to inform my client Link to comment Share on other sites More sharing options...
GgztvTRknFsjwz Posted March 13, 2013 Share Posted March 13, 2013 Thank you so much ! Link to comment Share on other sites More sharing options...
scorpionsworld Posted March 13, 2013 Author Share Posted March 13, 2013 OK thank you very much, do you have an idea of how much time it can take, just to inform my client I will probably have time to create the next update around the coming weekend or maybe as late as Tuesday. 1 Link to comment Share on other sites More sharing options...
larsijj Posted March 14, 2013 Share Posted March 14, 2013 Module werkt niet samen met Multisafepay? Is hier een oplossing voor? aangezien multisafepay door de meeste nederlandse klanten word gebruikt? Link to comment Share on other sites More sharing options...
scorpionsworld Posted March 14, 2013 Author Share Posted March 14, 2013 Module werkt niet samen met Multisafepay? Is hier een oplossing voor? aangezien multisafepay door de meeste nederlandse klanten word gebruikt? Als ik even heel bijdehand mag zijn, een oplossing is er niet nee. Zeker niet als ik niet wat specifieker weet wat je bedoeld met 'Module werkt niet samen met Multisafepay'. Link to comment Share on other sites More sharing options...
Dmit Posted March 22, 2013 Share Posted March 22, 2013 Reference product = id product ??? Link to comment Share on other sites More sharing options...
scorpionsworld Posted March 22, 2013 Author Share Posted March 22, 2013 Reference product = id product ??? No. Reference order = order reference Link to comment Share on other sites More sharing options...
guest* Posted March 26, 2013 Share Posted March 26, 2013 Hi, your module is writing dublettes into DB at ps_order_payment. And I'm not sure, if other problems with tax I'm having are coming from the module or it's a PS bug. For the time being I've deinstalled the module and keep an eye on this. Come back with new information as soon as possible. http://www.file-upload.net/download-7380013/dublette.jpg.html Link to comment Share on other sites More sharing options...
sims17 Posted March 26, 2013 Share Posted March 26, 2013 Hello, Same problem for me. Payment is posted 2 times Thank for your reply Prestashop 1.5.3.1 version used Link to comment Share on other sites More sharing options...
scorpionsworld Posted March 30, 2013 Author Share Posted March 30, 2013 I'm not even shure why the order_payment record gets doubled, probably because of the order details getting saved after changing the reference in the module hook execution. I will be posting an update soon where the first order_payment record will be deleted before changing and saving the order details, this should prevent doubles 1 Link to comment Share on other sites More sharing options...
sims17 Posted April 1, 2013 Share Posted April 1, 2013 Thank you in advance for the next update Link to comment Share on other sites More sharing options...
Online Office USA Posted April 9, 2013 Share Posted April 9, 2013 Outstanding! Nice work @scorpionsworld Link to comment Share on other sites More sharing options...
OndraP Posted April 10, 2013 Share Posted April 10, 2013 All I need is to turn Reference into Order Number globally - for the whole shop. This works just great! Dank u wel! Link to comment Share on other sites More sharing options...
Jerana Posted April 19, 2013 Share Posted April 19, 2013 Thank you very much for this module ! Link to comment Share on other sites More sharing options...
antonio.soleres Posted April 22, 2013 Share Posted April 22, 2013 I'm not even shure why the order_payment record gets doubled, probably because of the order details getting saved after changing the reference in the module hook execution. I will be posting an update soon where the first order_payment record will be deleted before changing and saving the order details, this should prevent doubles Hi scorpionsworld. Thanks for this great module. Any news about double payment? Thanks. Link to comment Share on other sites More sharing options...
baldden Posted May 1, 2013 Share Posted May 1, 2013 Thank you very much for this module ! Good work with PS 1.5.4 Link to comment Share on other sites More sharing options...
toninovak66 Posted May 2, 2013 Share Posted May 2, 2013 Hi great module to fix an issue that shouldn't be an issue at all, but it is. I too am getting the double payments when using credit card, and I'm on PS 1.5.3.1. One question, if I have it prefixed with 5 leading 0s, will it stay at 6 numbers in the reference field once we get to an order number of 10 or will it go to up 7, then 8, then 9 and so on? We need the number to be at 6 digits for our accounting application and I need to make sure of this before we get going on it so I would like to set it up properly. Is it then possible to change the number of leading 0s once we hit the 6 digit mark to keep it at 6 digits? Thanks for the great module. Link to comment Share on other sites More sharing options...
alex_ta Posted May 5, 2013 Share Posted May 5, 2013 Hi Scorpion , you maked a great Job. Finnaly a simple module really great !! It's working perfect here on my shop 1.5.4.0 Link to comment Share on other sites More sharing options...
scorpionsworld Posted May 5, 2013 Author Share Posted May 5, 2013 Hi great module to fix an issue that shouldn't be an issue at all, but it is. I too am getting the double payments when using credit card, and I'm on PS 1.5.3.1. One question, if I have it prefixed with 5 leading 0s, will it stay at 6 numbers in the reference field once we get to an order number of 10 or will it go to up 7, then 8, then 9 and so on? We need the number to be at 6 digits for our accounting application and I need to make sure of this before we get going on it so I would like to set it up properly. Is it then possible to change the number of leading 0s once we hit the 6 digit mark to keep it at 6 digits? Thanks for the great module. I haven't had time yet to resolve the double payment records yet. prefixing with 5 leading zero's means `a maximum of 5 leading zero's`. reaching ordernumber higher then 9 will result in 1 less zero prefix. as soon as you go over the 6 digits ordernumber (e.g. 999999), the ordernumber will of course proceed at 7 digits and so on... Link to comment Share on other sites More sharing options...
navid68 Posted May 10, 2013 Share Posted May 10, 2013 Hi scorpionsworld, your module is very usefull and all feedbacks very positive. I am not an expert and bifore installino your module i have a question. I read that users made translations in French and Spanish: what needs to be translated? Navid Link to comment Share on other sites More sharing options...
BIG PRINT Posted May 10, 2013 Share Posted May 10, 2013 Hi, do you this addon could work on 1.4.8 ?? Thanks Link to comment Share on other sites More sharing options...
kait Posted May 15, 2013 Share Posted May 15, 2013 Hi, first of all many thanks for that module, very useful! I have meaningful order id and invoice id, which is the same number. Can I ask you, why is a delivery slip number different from order id or invoice id? Is there a way to keep those three ids with same number? I want: order id 00000009, invoice id (with prefix) FA0000009 and delivery slip id DL0000009 I have: order id 00000009, invoice id (with prefix) FA0000009 and delivery slip id DL0000001 Link to comment Share on other sites More sharing options...
dostavka-anglia Posted May 26, 2013 Share Posted May 26, 2013 Many thanks for the module! I spent 2 weeks searching how to remove these annoying reference numbers and finally I got the answer here. Many, many thanks!!! Great job! Link to comment Share on other sites More sharing options...
scorpionsworld Posted May 31, 2013 Author Share Posted May 31, 2013 Hi scorpionsworld, your module is very usefull and all feedbacks very positive. I am not an expert and bifore installino your module i have a question. I read that users made translations in French and Spanish: what needs to be translated? Navid The module configuration page is the only part that might need translation (Default English). Hi, do you this addon could work on 1.4.8 ?? Thanks Not sure. Haven't tested the module on versions prior 1.5.x Hi, first of all many thanks for that module, very useful! I have meaningful order id and invoice id, which is the same number. Can I ask you, why is a delivery slip number different from order id or invoice id? Is there a way to keep those three ids with same number? I want: order id 00000009, invoice id (with prefix) FA0000009 and delivery slip id DL0000009 I have: order id 00000009, invoice id (with prefix) FA0000009 and delivery slip id DL0000001 That's most probably because delivery slips follow their own sequential numbering Link to comment Share on other sites More sharing options...
djmonkeyboy Posted June 4, 2013 Share Posted June 4, 2013 Hello there, first of all I just want to say thank you for the module as it seems odd to have the order reference number be totally different from the invoice number as Prestashop does by default. I wanted to give some data on my live test experience. Using: Fresh install of PrestaShop 1.5.4.1 , but did tweak the custom theme a bit - Newatch UNIVERSEL 1.5 Responsive We ran into the issue where My site currently has payment setup for paypal, authorize.net, and checks however with placed orders upon review on the order details page in the Back Office, under the payment section it says: No payments are available. These orders have the green PAYMENT ACCEPTED status. In attempts to troubleshoot: An example order number was MSM0000091 and appears that is too long since I get this error when trying to manually apply a payment: [PrestaShopException] Property OrderPayment->order_reference length (10) must be between 0 and 9 at line 837 in file classes/ObjectModel.php It appears the length of "use zeros to prefix" and "use characters to prefix" caused too long of a number when combined. Link to comment Share on other sites More sharing options...
erikmlb Posted June 8, 2013 Share Posted June 8, 2013 FANTASTIC THANKS from latin america. Link to comment Share on other sites More sharing options...
vitezslav Posted June 11, 2013 Share Posted June 11, 2013 It appears the length of "use zeros to prefix" and "use characters to prefix" caused too long of a number when combined. http://www.prestashop.com/forums/index.php?/topic/218257-module-change-order-reference-using-order-id-andor-cart-id/page__view__findpost__p__1120521 ? Link to comment Share on other sites More sharing options...
scorpionsworld Posted June 12, 2013 Author Share Posted June 12, 2013 Hello there, first of all I just want to say thank you for the module as it seems odd to have the order reference number be totally different from the invoice number as Prestashop does by default. I wanted to give some data on my live test experience. Using: Fresh install of PrestaShop 1.5.4.1 , but did tweak the custom theme a bit - Newatch UNIVERSEL 1.5 Responsive We ran into the issue where My site currently has payment setup for paypal, authorize.net, and checks however with placed orders upon review on the order details page in the Back Office, under the payment section it says: No payments are available. These orders have the green PAYMENT ACCEPTED status. In attempts to troubleshoot: An example order number was MSM0000091 and appears that is too long since I get this error when trying to manually apply a payment: [PrestaShopException] Property OrderPayment->order_reference length (10) must be between 0 and 9 at line 837 in file classes/ObjectModel.php It appears the length of "use zeros to prefix" and "use characters to prefix" caused too long of a number when combined. http://www.prestashop.com/forums/index.php?/topic/218257-module-change-order-reference-using-order-id-andor-cart-id/page__view__findpost__p__1120521 ? Correct. For longer reference numbers. The OrderPayment class needs to be overriden. I hope I will have some time in the near future to correct this issue by implementing such an override as well as solving some other issues with the hook function 1 Link to comment Share on other sites More sharing options...
Optimus_Sam Posted June 13, 2013 Share Posted June 13, 2013 Nice work! Great module! Link to comment Share on other sites More sharing options...
scorpiusthegreat Posted June 13, 2013 Share Posted June 13, 2013 just to say THANK YOU THANKS THX !!! excellent module Link to comment Share on other sites More sharing options...
Thor007 Posted July 15, 2013 Share Posted July 15, 2013 Anybody got the module without the trouble with double payment ? We bought it yesterday and can't use it... :-( Link to comment Share on other sites More sharing options...
scorpionsworld Posted July 15, 2013 Author Share Posted July 15, 2013 Anybody got the module without the trouble with double payment ? We bought it yesterday and can't use it... :-( Bought? What do you mean bought, the module is offered for free...And no, the double transactions issue is not solved yet...still working on getting that fixed Link to comment Share on other sites More sharing options...
scorpionsworld Posted July 16, 2013 Author Share Posted July 16, 2013 (edited) [NL]Ik ben er eindelijk aan toe gekomen een update te maken op deze module.De verschrikkelijke dubbele betalingstransactie bug is gerepareerd eneen override op de OrderPayment class is toegevoegd om he order referentie veld te vergroten naar max. 100 karakters.U kunt de Order Referentie Wijzigings module v1.3 vinden op https://www.dropbox.com/s/7kkhtgkrpq4h755/modrefchange.zip?dl=0Indien eerdere versies reeds geïnstalleerd. Na upload module resetten en opnieuw configureren.[EN]I have finally come around updating this module.Fixing the hideous double payment transaction bug andadding an override on OrderPayment class to enlarge the order reference field to max. 100 characters.Please find the module change order reference v1.3 at https://www.dropbox.com/s/7kkhtgkrpq4h755/modrefchange.zip?dl=0If you have previously installed this module, please reset and reconfigure module after upload. Edited August 30, 2014 by scorpionsworld (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 22, 2013 Share Posted July 22, 2013 Please include zip file or a direct download link in your Original Post. No external links to Download. Thank you. Order referentie wijzigingsmodule v1.0 Module to change the order reference using Order ID AND/OR Cart ID Compatibility: Prestashop v1.5.X Screenshots: Downloadlink: Link to comment Share on other sites More sharing options...
rekram Posted July 25, 2013 Share Posted July 25, 2013 (edited) Hi, I doesn't works with bankwire module, because after confirmation, the order nr is still random characters. What should be changed? edit, it works after cache clear. Edited July 25, 2013 by rekram (see edit history) Link to comment Share on other sites More sharing options...
KevinNash Posted July 25, 2013 Share Posted July 25, 2013 Works perfectly for me, thank you so much for this great module. No problem with bankwire, PS 1.5.4.1 I use order ID as order ref Link to comment Share on other sites More sharing options...
ITIS-Commerce.com Posted July 25, 2013 Share Posted July 25, 2013 (edited) Hello everybody! Hi Dr Nick... Ok, not funny When I try to install the module I get this Error : Le ou les modules suivants n'ont pas été correctement installés : - modrefchange :Impossible d'installer la surcharge : Class OrderPaymentOverrideOriginal does not existError while installing module class Which translates to : The following module wasn't installed properly - Impossible to install the surcharge : Class OrderPaymentOverrideOriginal does not exist Error while installing module class And at the very bottom of the page I have : [PrestaShop] Fatal error in module Module.php(1933) : eval()'d : syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_FUNCTION Do you know what isn't working? I have Prestashop 1.5.4.1 Thanks Edited July 25, 2013 by ITIS-Commerce.com (see edit history) Link to comment Share on other sites More sharing options...
scorpionsworld Posted July 26, 2013 Author Share Posted July 26, 2013 Hello everybody! Hi Dr Nick... Ok, not funny When I try to install the module I get this Error : Le ou les modules suivants n'ont pas été correctement installés : - modrefchange :Impossible d'installer la surcharge : Class OrderPaymentOverrideOriginal does not existError while installing module class Which translates to : The following module wasn't installed properly - Impossible to install the surcharge : Class OrderPaymentOverrideOriginal does not exist Error while installing module class And at the very bottom of the page I have : [PrestaShop] Fatal error in module Module.php(1933) : eval()'d : syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_FUNCTION Do you know what isn't working? I have Prestashop 1.5.4.1 Thanks Yeah, the override that's incorporated in the module isn't installed. Please do the following using FTP to your webserver: Check if you already have an existing OrderPayment.php in PS Root/override/classes/order/ with content. If not, go to PS Root/modules/modrefchange/override/classes/order/ and move OrderPayment.php to your local drive. Go back to PS Root/override/classes/order/ and move the OrderPayment.php from your local drive to your webserver. Now go back into your Backoffice->Modules and try to install the module again. 2 Link to comment Share on other sites More sharing options...
fugarolas Posted July 29, 2013 Share Posted July 29, 2013 Thank you for this great module! It works perfect for me best regards from Spain! Link to comment Share on other sites More sharing options...
ITIS-Commerce.com Posted July 30, 2013 Share Posted July 30, 2013 Yeah, the override that's incorporated in the module isn't installed. Please do the following using FTP to your webserver: Check if you already have an existing OrderPayment.php in PS Root/override/classes/order/ with content. If not, go to PS Root/modules/modrefchange/override/classes/order/ and move OrderPayment.php to your local drive. Go back to PS Root/override/classes/order/ and move the OrderPayment.php from your local drive to your webserver. Now go back into your Backoffice->Modules and try to install the module again. Thanks, it worked! Great module and thanks for the answer. CHeers! Link to comment Share on other sites More sharing options...
Eco-tech - Elena Posted August 6, 2013 Share Posted August 6, 2013 Order referentie wijzigingsmodule v1.0 Module to change the order reference using Order ID AND/OR Cart ID Compatibility: Prestashop v1.5.X Screenshots: Downloadlink: https://www.dropbox....odrefchange.zip Thank you so much!! Link to comment Share on other sites More sharing options...
pattys Posted August 12, 2013 Share Posted August 12, 2013 (edited) Hello, I use this module, too. Thank you for this. But I still have a question: What must I do, to become also the order-id in the new_order-Mail, which I become, when a customer makes an order? I think there must be an modification in mailalerts.php, but I dont know the exact variable. I have tested the following: The original variable in mailalerts.php was: '{order_name}' => sprintf('%06d', $order->id), this I changed in : '{order_name}' => $order->getUniqReference(), Then the order-id is the same order-id (with the big letters) before I used your module. I hope you can understand what I mean :-) Best regards from Germany PS: I use Prestashop 1.5.4.1 Edited August 12, 2013 by pattys (see edit history) Link to comment Share on other sites More sharing options...
eleazar Posted August 13, 2013 Share Posted August 13, 2013 Why this long way round? Just try the German forum, pattys. Wozu in die Ferne schweifen, versuch's doch gleich im deutschen Forum: http://www.prestashop.com/forums/index.php?/topic/229941-paypal-order-name-anstatt-id-order/page__view__findpost__p__1337011 Link to comment Share on other sites More sharing options...
Aster_SW Posted August 13, 2013 Share Posted August 13, 2013 En français ce module de changement de numéro / référence de commande fonctionne très bien Link to comment Share on other sites More sharing options...
[email protected] Posted August 16, 2013 Share Posted August 16, 2013 Hi, I installed this module and I deleted it 5 minutes after. Now i'm having pb when I want to see an order in my backoffice (orders>orders>(select an order to see the details). It told me it's an 500 errors Also the mails of confirmation not sending. Could you please help me to find a solution. Thank you very much Link to comment Share on other sites More sharing options...
scorpionsworld Posted August 16, 2013 Author Share Posted August 16, 2013 Hi, I installed this module and I deleted it 5 minutes after. Now i'm having pb when I want to see an order in my backoffice (orders>orders>(select an order to see the details). It told me it's an 500 errors Also the mails of confirmation not sending. Could you please help me to find a solution. Thank you very much First of all, you need to turn on error reporting changing /config/defines.inc.php set DEV_MODE to true.Instead of the error 500 you will then get a much more descriptive error. Secondly, deleting the module should have no effect on order confirmation email. My guess is you have another issue regarding the emails. Link to comment Share on other sites More sharing options...
[email protected] Posted August 16, 2013 Share Posted August 16, 2013 I try to change false to true, and i have: http://www.prestashop.com/forums/topic/218257-module-change-order-reference-using-order-id-andor-cart-id/page__st__80 Link to comment Share on other sites More sharing options...
Alex PSV1.6 Posted August 17, 2013 Share Posted August 17, 2013 Hi scorpionsworld, first of all THANK you for that great module. However I have trouble to get it installed. If I press the button to install the module, I receive a message: Das folgende Modul konnte nicht installiert werden: - modrefchange :Das Override kann nicht installiert werden: Die Eigenschaft definition in der Klasse OrderPayment ist bereits festgelegt.Error while installing module class Translated: The following module could not be installed: - modrefchange :The Override can not be installed: The property definition in the OrderPayment class is already defined.Error while installing module class I have V1.5.4.1 of prestashop version. May do you have any idea or suggestion what's going wrong here? Thanks for all Alexander Link to comment Share on other sites More sharing options...
scorpionsworld Posted August 19, 2013 Author Share Posted August 19, 2013 Hi scorpionsworld, first of all THANK you for that great module. However I have trouble to get it installed. If I press the button to install the module, I receive a message: Das folgende Modul konnte nicht installiert werden: - modrefchange :Das Override kann nicht installiert werden: Die Eigenschaft definition in der Klasse OrderPayment ist bereits festgelegt.Error while installing module class Translated: The following module could not be installed: - modrefchange :The Override can not be installed: The property definition in the OrderPayment class is already defined.Error while installing module class I have V1.5.4.1 of prestashop version. May do you have any idea or suggestion what's going wrong here? Thanks for all Alexander The error means the override that's incorporated in the module isn't installed. Please do the following using FTP to your webserver: Check if you already have an existing OrderPayment.php in PS Root/override/classes/order/ with content. If you already have an OrderPayment.php override in this folder, you have to merge it's content with the PS Root/modules/modrefchange/override/classes/order/OrderPayment.php file. If not, go to PS Root/modules/modrefchange/override/classes/order/ and move OrderPayment.php to your local drive. Go back to PS Root/override/classes/order/ and move the OrderPayment.php from your local drive to your webserver. Now go back into your Backoffice->Modules and try to install the module again. Link to comment Share on other sites More sharing options...
johanstuurman Posted August 19, 2013 Share Posted August 19, 2013 Help, tried installing on 1.5.4.1 I get the following error Unable to install override: directory (/var/www/vhosts/kyboe-order.com/httpdocs/override/classes/order) not writable Error while installing module class Any Idea? Thanks Johan Link to comment Share on other sites More sharing options...
scorpionsworld Posted August 20, 2013 Author Share Posted August 20, 2013 Help, tried installing on 1.5.4.1 I get the following error Unable to install override: directory (/var/www/vhosts/kyboe-order.com/httpdocs/override/classes/order) not writable Error while installing module class Any Idea? Thanks Johan Read the above post and also check if /var/www/vhosts/kyboe-order.com/httpdocs/override/ subfolders are writable (chmod 777 or 755) Link to comment Share on other sites More sharing options...
Recommended Posts