Popular Post scorpionsworld 223 Posted March 27, 2015 Posted March 27, 2015 (edited) Continuing from Change Order reference using Order ID and/or Cart ID Order reference change module v1.5.4Module to change the order reference using Order ID AND/OR Cart IDCompatibility: Prestashop v1.5.X and aboveScreenshots: Finally found the time for an update, so here is version 1.5.4. What has changed? Compatibility with PS 1.6.0.9 and above Bug fix on date/time prefix Minor layout changes to account for bootstrap compatibility The module has been tested on both a clean PS 1.6.0.14 installation as well an PS 1.5.6 installation upgraded to PS 1.6.0.14 Order reference change module v1.5.5 update So, what has changed? Bugfix on date/time format prefix Configuration screen responsive redesign Order reference change module v1.5.5.1 update So, what has changed? Minor bugfix on configuration update. modrefchange.zip Edited September 10, 2015 by scorpionsworld (see edit history) 15 1 Share this post Link to post Share on other sites
KevinNash 119 Posted March 28, 2015 Posted March 28, 2015 Hi, nice to see this thread back, I have no idea why the other is on archive Great module, thanks a lot Share this post Link to post Share on other sites
scorpionsworld 223 Posted March 28, 2015 Posted March 28, 2015 Hi, nice to see this thread back, I have no idea why the other is on archive Great module, thanks a lot The other thread and subforum is archived because of the changed policy on the forum concerning modules and themes. Share this post Link to post Share on other sites
KevinNash 119 Posted March 28, 2015 Posted March 28, 2015 Hello, I just saw one thing : Sometimes prestashop must split one order in two, for example with order with 2 products with 2 differents carriers. Without order reference change, the splitted order have the same letters and a number behind, for example TVOCWLVOE#1 and TVOCWLVOE#2 But with order reference change, the order number is also incremented and that give for example 1252#1 and 1253#2, that's confusing, specially for the customer, a splitted order should have the same number. The number should be the same in that case. Can you take a look at this issue please ? Share this post Link to post Share on other sites
scorpionsworld 223 Posted March 30, 2015 Posted March 30, 2015 Hello, I just saw one thing : Sometimes prestashop must split one order in two, for example with order with 2 products with 2 differents carriers. Without order reference change, the splitted order have the same letters and a number behind, for example TVOCWLVOE#1 and TVOCWLVOE#2 But with order reference change, the order number is also incremented and that give for example 1252#1 and 1253#2, that's confusing, specially for the customer, a splitted order should have the same number. The number should be the same in that case. Can you take a look at this issue please ? thanks for your report.The module is actually meant for shops that don't use order multi order.but I will try to look into it Share this post Link to post Share on other sites
KevinNash 119 Posted March 30, 2015 Posted March 30, 2015 (edited) My pleasure If you want to test, I am yours To try by yourself, use 2 products with 1 different carrier only for each product. Order both, Prestashop will automatically split the order in two Edited March 31, 2015 by KevinNash (see edit history) Share this post Link to post Share on other sites
Dashe 6 Posted April 3, 2015 Posted April 3, 2015 I fixed some sintax error in the override classes and it's work fine in a 1.6.0.8 In 1.6.0.8 with some ugraded module file, the oldest version doesn't work and i can't uninstall the oldest (an error occour) and I can not install the newestI'll try to install manually (with overriding file in module and override dir) but I 'destroy' my pre-production envirment. Now if I click on Modules appear this error "Array ( [0] => Unable to install override: The method add in the class OrderInvoice is already overridden. )" Share this post Link to post Share on other sites
mirekcerno 0 Posted April 4, 2015 Posted April 4, 2015 Hi guys, got little problem here. When I want to install it appears a page saying module is not approved. I press I understand the risk and nothing happened. Any clue what to do? Ths Mirek Share this post Link to post Share on other sites
scorpionsworld 223 Posted April 5, 2015 Posted April 5, 2015 I fixed some sintax error in the override classes and it's work fine in a 1.6.0.8 In 1.6.0.8 with some ugraded module file, the oldest version doesn't work and i can't uninstall the oldest (an error occour) and I can not install the newest I'll try to install manually (with overriding file in module and override dir) but I 'destroy' my pre-production envirment. Now if I click on Modules appear this error "Array ( [0] => Unable to install override: The method add in the class OrderInvoice is already overridden. )" Have you deleted the /modules/modrefchange/override folder after manually installing the overrides? if you try to install the module when the override folder still exists in the module's folder PS core module object will try to install the overrides from that folder. Share this post Link to post Share on other sites
Dashe 6 Posted April 5, 2015 Posted April 5, 2015 I solve the problem in a fresh installation.It works fine in all my enviroment (1.6.0.8, without update and 1.6.0.8 with all module updated)Tomorrow i move It live in my product enviroment. Best Regards! Share this post Link to post Share on other sites
boutik-fan 2 Posted April 7, 2015 Posted April 7, 2015 Thank you for this module ! I have used it. But now I am with the 1.6.0.14, I have installed your 1.5.4 version, but it is not working. Order remains with letters reference. May be it did not right. I deleted the old version and installed the new one. Can you hel please ? Share this post Link to post Share on other sites
ziro1986 3 Posted April 9, 2015 Posted April 9, 2015 Hi. This module is great, but in my PrestaShop installation does't work. I have also Prestashop 1.6.0.14. Can anyone help? Share this post Link to post Share on other sites
Paulo Ens 1 Posted April 14, 2015 Posted April 14, 2015 This module is great! Is there anyway to change the references of the orders placed before installing this module? Share this post Link to post Share on other sites
Tugarin 0 Posted April 21, 2015 Posted April 21, 2015 Hi, I also used this module, and it is great. But it stopped working after I upgraded my Prestashop to 1.6.0.14 version. I tried to set Order ID and then Cart ID. But order referance remains in letters. Share this post Link to post Share on other sites
crawack 2 Posted April 23, 2015 Posted April 23, 2015 I have also problems with this module after upgrading på 1.6.0.14 Share this post Link to post Share on other sites
ayanni 6 Posted April 27, 2015 Posted April 27, 2015 (edited) Hi everybody, any idea how to get the strftime format working, i put this code echo off strftime ( '%A, %d-%m-%Y %R' ) . "n"; and i have got this out echo off strftime ( '%A, %d-%m-%Y %R' ) . "n";Monday2704201517:011113. can anybody help? i just need to have the time and the date before the Order No. Edited April 27, 2015 by ayanni (see edit history) Share this post Link to post Share on other sites
clubvapea 3 Posted June 5, 2015 Posted June 5, 2015 upgraded from 1.6.0.9 to 1.6.0.14 and installed this module. not working, the references created stay as before. help please? kind regards Share this post Link to post Share on other sites
scorpionsworld 223 Posted June 6, 2015 Posted June 6, 2015 upgraded from 1.6.0.9 to 1.6.0.14 and installed this module. not working, the references created stay as before. help please? kind regards Could you please check if the hooks 'actionBeforeAddOrder', 'actionBeforeAddOrderInvoice' and 'actionBeforeAddDeliveryNumber' are installed and the module is hooked correctly to these hooks. If so, please refresh your shop's cache and test again. If the reference is still not changed, could you please send me a pm. Share this post Link to post Share on other sites
Frevab 5 Posted June 10, 2015 Posted June 10, 2015 (edited) I have used this module for over a year now (shop v 1.5.4.1) and since today my orders are back to the orderref with letters. I only updated mailalert module yesterday. There is no update suggested for this module. I am using v. 1.4 I tried to restore the module but did not work. Un-installed the module and tried to re-install it. Get following error: quote De volgende module(s) waren niet goed geïnstalleerd: - modrefchange :Niet mogelijk om overschrijven te installeren: Class OrderPaymentOverrideOriginal does not existError while installing module classunquote How do I get the module wokring correctly again? Update: Since this morning if I login on B/O and want to open an order the screen stays blank. The list with orders is shown correctly (with the correct ordernumber, in my case ordernr_cartid. On the mailalert emal the same order showed ordernr_orderid in letters). When I click on the order (any order) the next screen stays blank). Edited June 11, 2015 by Frevab (see edit history) Share this post Link to post Share on other sites
DDD 2 Posted June 20, 2015 Posted June 20, 2015 Could you please check if the hooks 'actionBeforeAddOrder', 'actionBeforeAddOrderInvoice' and 'actionBeforeAddDeliveryNumber' are installed and the module is hooked correctly to these hooks. If so, please refresh your shop's cache and test again. If the reference is still not changed, could you please send me a pm. I can find correct hooks to "actionBeforeAddDeliveryNumber", " actionBeforeAddOrder", "actionBeforeAddOrderInvoice". I've cleared the cache but I still get the same problem. Share this post Link to post Share on other sites
alex ta 1 Posted July 13, 2015 Posted July 13, 2015 Great Module. Installed today on PS 1.6.1.0 version and it works perfect. Share this post Link to post Share on other sites
codochi 11 Posted July 20, 2015 Posted July 20, 2015 Hi! I have some order reference that created before. How can I change older order reference to order ID??? Share this post Link to post Share on other sites
scorpionsworld 223 Posted July 23, 2015 Posted July 23, 2015 Hi! I have some order reference that created before. How can I change older order reference to order ID??? Hi, You can't. At least, not with this module. Only way I can think of is manually in the database (phpmyadmin) Share this post Link to post Share on other sites
ayanni 6 Posted August 1, 2015 Posted August 1, 2015 Hi everybody, any idea how to get the strftime format working, i put this code echo off strftime ( '%A, %d-%m-%Y %R' ) . "n"; and i have got this out echo off strftime ( '%A, %d-%m-%Y %R' ) . "n";Monday2704201517:011113. can anybody help? i just need to have the time and the date before the Order No. Hi Did you get this solved, i have a problemas well getting the time and date,please help Share this post Link to post Share on other sites
ayanni 6 Posted August 1, 2015 Posted August 1, 2015 Hi Everybody any one knows the right syntax for adding the time and date before the order ID? echo off strftime ( '%A, %d-%m-%Y %R' ) Share this post Link to post Share on other sites
ayanni 6 Posted August 1, 2015 Posted August 1, 2015 (edited) Hi Everybody Just installed the module under PS 1.6.1, but it does not work,i have tried every setting possible but nothing is happend!! any help, mybe i did something wrong? i just treid this I can find correct hooks to "actionBeforeAddDeliveryNumber", " actionBeforeAddOrder", "actionBeforeAddOrderInvoice". I've cleared the cache but I still get the same problem. Edited August 1, 2015 by ayanni (see edit history) Share this post Link to post Share on other sites
scorpionsworld 223 Posted August 8, 2015 Posted August 8, 2015 Are third party modules and overrides enabled in Advanced Parameters->Performance? Hi Everybody Just installed the module under PS 1.6.1, but it does not work,i have tried every setting possible but nothing is happend!! any help, mybe i did something wrong? i just treid this I can find correct hooks to "actionBeforeAddDeliveryNumber", " actionBeforeAddOrder", "actionBeforeAddOrderInvoice". I've cleared the cache but I still get the same problem. Share this post Link to post Share on other sites
scorpionsworld 223 Posted August 26, 2015 Posted August 26, 2015 (edited) Order reference change module v1.5.5 update So, what has changed? Bugfix on date/time format prefix Configuration screen responsive redesign Edited September 10, 2015 by scorpionsworld (see edit history) 1 Share this post Link to post Share on other sites
scorpionsworld 223 Posted August 26, 2015 Posted August 26, 2015 Hi Everybody any one knows the right syntax for adding the time and date before the order ID? echo off strftime ( '%A, %d-%m-%Y %R' ) This format should work now with version 1.5.5 of the module Share this post Link to post Share on other sites
EnveloppeBulle 7 Posted September 3, 2015 Posted September 3, 2015 HelloI was using version 1.5.3 of this module and it was working perfectly with prestashop 1.6.0.0 (not sure of the number).But, I updated to prestashop 1.6.1.1 and it's not working anymore. Even with the 1.5.5 version of the module.I've uninstalled the module, re-uploaded (new version 1.5.5), re-installed : nothing works :(Any idea ??, this module is just perfect and useful ! Share this post Link to post Share on other sites
EnveloppeBulle 7 Posted September 3, 2015 Posted September 3, 2015 (edited) Found something : when I setup the module, everything looks fine.I click the Save button. Still seems ok.But if I quit the page, and come back into the module setup, every params are bad ! None of my setup was keeped, and evrrything is setup as initial installation.It doesn't save the setup !!What's going on ? any idea ? Edited September 3, 2015 by EnveloppeBulle (see edit history) Share this post Link to post Share on other sites
EnveloppeBulle 7 Posted September 3, 2015 Posted September 3, 2015 I confirm the update into the db doesn't work ( => updateValue('ORD_REF_ORDERID', Tools::getValue('ref_orderid')) )I mean, when I go into the DB (configuration), the values are always the same.When I manually change the values, they are keeped whaen I return into the module setup.BUT it does't fix the problem, because the orders are still the same : no modification with "id order" instead of generated reference.((((((((((((((((( 1 Share this post Link to post Share on other sites
scorpionsworld 223 Posted September 4, 2015 Posted September 4, 2015 I confirm the update into the db doesn't work ( => updateValue('ORD_REF_ORDERID', Tools::getValue('ref_orderid')) ) I mean, when I go into the DB (configuration), the values are always the same. When I manually change the values, they are keeped whaen I return into the module setup. BUT it does't fix the problem, because the orders are still the same : no modification with "id order" instead of generated reference. ((((((((((((((((( I'll look into it. Sorry to hear the module isn't working for you at the moment. Share this post Link to post Share on other sites
vitaliyconcept 2 Posted September 6, 2015 Posted September 6, 2015 I confirm the update into the db doesn't work ( => updateValue('ORD_REF_ORDERID', Tools::getValue('ref_orderid')) ) I mean, when I go into the DB (configuration), the values are always the same. When I manually change the values, they are keeped whaen I return into the module setup. BUT it does't fix the problem, because the orders are still the same : no modification with "id order" instead of generated reference. ((((((((((((((((( I have the same problem. Prestashop 1.6.1 No solution yet? Share this post Link to post Share on other sites
scorpionsworld 223 Posted September 7, 2015 Posted September 7, 2015 I have the same problem. Prestashop 1.6.1 No solution yet? Not yet, sorry. Can't reproduce the problem with a clean PS install. Share this post Link to post Share on other sites
scorpionsworld 223 Posted September 10, 2015 Posted September 10, 2015 Order reference change module v1.5.5.1 update So, what has changed? Minor bugfix on configuration update.modrefchange.zip 2 Share this post Link to post Share on other sites
vitaliyconcept 2 Posted September 10, 2015 Posted September 10, 2015 Order reference change module v1.5.5.1 update So, what has changed? Minor bugfix on configuration update. modrefchange.zip Now it works with 1.6.1. Thank you very much 2 Share this post Link to post Share on other sites
scorpionsworld 223 Posted September 10, 2015 Posted September 10, 2015 Now it works with 1.6.1. Thank you very much You're welcome. Share this post Link to post Share on other sites
EnveloppeBulle 7 Posted September 15, 2015 Posted September 15, 2015 HelloThank you so much @scorpionsworld !It's now working with 1.5.5.1 and prestashop 1.6.1.1 BUT since I used the tips from webbax.ch (http://www.webbax.ch/2014/12/15/numerotation-des-factures-en-chiffre-sous-prestashop/), I had to do this :- deactivate the module (v. 1.5.5)- uninstall the module (v. 1.5.5)- delete the module (v. 1.5.5)- install the new module (v. 1.5.5.1)- activate & setup / save- delete the file "class_index.php" into the "cache" directory to initiate the override of the classes <=== was very important for me Once again, thank you very much ! 2 Share this post Link to post Share on other sites
CarlosW 2 Posted September 15, 2015 Posted September 15, 2015 Version 1.5.3 was not working, but I followed EnveloppeBulle's guide above and upgraded to 1.5.5.1 which works great with my Prestashop 1.6.1. Big thanks to the developer !!! really a great module. Big thanks also to EnveloppeBulle for the guide above. Share this post Link to post Share on other sites
Florent 8 Posted September 19, 2015 Posted September 19, 2015 Hello,Thank you for this free module.But I did not find how to add date information as prefix. For example, if I want to add the year like 2015, what should I put in the field ?Thanks for your help Share this post Link to post Share on other sites
scorpionsworld 223 Posted September 20, 2015 Posted September 20, 2015 Hello, Thank you for this free module. But I did not find how to add date information as prefix. For example, if I want to add the year like 2015, what should I put in the field ? Thanks for your help The year as a prefix is %Y %d is day % is month etc. Share this post Link to post Share on other sites
scorpionsworld 223 Posted September 20, 2015 Posted September 20, 2015 (edited) Hello Thank you so much @scorpionsworld ! It's now working with 1.5.5.1 and prestashop 1.6.1.1 BUT since I used the tips from webbax.ch (http://www.webbax.ch/2014/12/15/numerotation-des-factures-en-chiffre-sous-prestashop/), I had to do this : - deactivate the module (v. 1.5.5) - uninstall the module (v. 1.5.5) - delete the module (v. 1.5.5) - install the new module (v. 1.5.5.1) - activate & setup / save - delete the file "class_index.php" into the "cache" directory to initiate the override of the classes <=== was very important for me Once again, thank you very much ! Thanks for the guide. Strangely enough, uninstalling and deleting the module before installing/upgrading to new version shouldn't be needed. And the install of the module has a built-in class_index.php refresh (by deleting the file) Edited September 20, 2015 by scorpionsworld (see edit history) Share this post Link to post Share on other sites
Florent 8 Posted September 20, 2015 Posted September 20, 2015 (edited) The year as a prefix is %Y %d is day % is month etc. Hello, Actually it's what I did, I only put %Y as ID prefix. And my orders only have the ID as reference. I use Prestashop 1.6.0.14 Edited September 20, 2015 by Florent (see edit history) Share this post Link to post Share on other sites
nadeau1992 0 Posted September 21, 2015 Posted September 21, 2015 I'm using Prestashop 1.6.0.11 The module works, the reference number is now the ID number. But the invoice number is now always 000000., even if the option "Use Order ID and/or Cart ID to change the invoice and delivery slip number" is ON or OFF. Any idea ? Share this post Link to post Share on other sites
scorpionsworld 223 Posted September 22, 2015 Posted September 22, 2015 I'm using Prestashop 1.6.0.11 The module works, the reference number is now the ID number. But the invoice number is now always 000000., even if the option "Use Order ID and/or Cart ID to change the invoice and delivery slip number" is ON or OFF. Any idea ? I'll look into it. Share this post Link to post Share on other sites
SebasVerwoert 0 Posted September 24, 2015 Posted September 24, 2015 Thank you so much! After 3 hours of trying, deleting the class_index did the trick for me HelloThank you so much @scorpionsworld !It's now working with 1.5.5.1 and prestashop 1.6.1.1 BUT since I used the tips from webbax.ch (http://www.webbax.ch/2014/12/15/numerotation-des-factures-en-chiffre-sous-prestashop/), I had to do this :- deactivate the module (v. 1.5.5)- uninstall the module (v. 1.5.5)- delete the module (v. 1.5.5)- install the new module (v. 1.5.5.1)- activate & setup / save- delete the file "class_index.php" into the "cache" directory to initiate the override of the classes <=== was very important for me Once again, thank you very much ! Share this post Link to post Share on other sites
gabriiel 2 Posted October 9, 2015 Posted October 9, 2015 Hi, I would like to use only %y%m%d%H%M as a refernce number generator. I need exactly 10 characters. I want to avoid any order number to be shown to the customers. I don't want the customers to be able to see how many orders I have already processed. How can I do that with this module? Or any suggestions? Thanks. Share this post Link to post Share on other sites
ajensen27 43 Posted October 19, 2015 Posted October 19, 2015 (edited) I just started using this module and it's using the order # from the first order since I uploaded the module and then it's adding a 1, then 12, then 123, etc. Any idea what's going on? 1264041 12640412 126404123 1264041234 etc etc The only option I have selected is Use Order ID Edited October 19, 2015 by ajensen27 (see edit history) Share this post Link to post Share on other sites
codochi 11 Posted October 19, 2015 Posted October 19, 2015 I just started using this module and it's using the order # from the first order since I uploaded the module and then it's adding a 1, then 12, then 123, etc. Any idea what's going on? 1264041 12640412 126404123 1264041234 etc etc The only option I have selected is Use Order ID Which ps version you are using? Ps 1.6.0.x -> 1.5.4 (compablity) Share this post Link to post Share on other sites
ajensen27 43 Posted October 19, 2015 Posted October 19, 2015 1.6.1.1 I went with another option though and it's working (https://www.prestashop.com/forums/topic/446780-change-to-same-number-idorder-and-reference/) Thanks anyways. Share this post Link to post Share on other sites
ayanni 6 Posted November 5, 2015 Posted November 5, 2015 (edited) the Modul is not working again, just install Version 1.5.5 under PS 1.6.1.2 and nothing is working. Please look at my setting as attached. Edited November 5, 2015 by ayanni (see edit history) Share this post Link to post Share on other sites
zeezuiper 5 Posted November 8, 2015 Posted November 8, 2015 Got a quick question for this great module. My payment module still refers to the old cart ID: $targetpayObj->setDescription('Cart id: '.$cart->id); How should I change this line so it refers to my order id? Share this post Link to post Share on other sites
zod 37 Posted December 4, 2015 Posted December 4, 2015 (edited) This was a real nice module, but in PS 1.6.1.2 it is working only for some modules (Cash on Delivery, Bankwire), but it is not working for PayPal. I am not sure why this happens.I see it makes use of: override/classes/order/Order.php override/classes/order/OrderInvoice.php override/classes/order/OrderPayment.php **EDIT** After some tests I uninstalled this module, cleaned all, and followed an easier override method, in the Order.php class, for me it is working.Instructions by NemoPS: http://nemops.com/prestashop-replace-order-references-with-ids/#.VmPx-HshlXnJust pay attention to the generation of class_index.php, and check if all your overrides are running, and how.In my case i had to delete manually the 3 overrides ChangeRef created (because uninstalling it, they were not deleted). After that, i put my Order.php by NemoPS, generated my class_index.php and at first it had NO overrides (not sure why), so it seemed not working. Then, i generated it again, overrides were all up and running, and now it is working. Edited December 6, 2015 by zod (see edit history) Share this post Link to post Share on other sites
renaissancefarms 0 Posted December 31, 2015 Posted December 31, 2015 Hi. Thanks for this module. I am using PS 1.6.0.9. The date/time option is not working in the Order ID section. However, it is on the Order Reference - so I am getting an overall order reference that I want (YY000###). However, I want to use the same number as the Invoice number but because I am using the %Y in the order reference instead of the Order ID I only get the sequential numbers (INV0000###). And the delivery slips are not being generated at all. Share this post Link to post Share on other sites
mmi 0 Posted January 4, 2016 Posted January 4, 2016 Hello, Thank you very much for the module. After upgrade 1.6.1.1 to 1.6.1.3 module stopped working. Any update, idea or workaround, please? Regards, mmi Share this post Link to post Share on other sites
Sobolev 19 Posted March 3, 2016 Posted March 3, 2016 (edited) Thank you!Great module! Edited March 4, 2016 by Sobolev (see edit history) Share this post Link to post Share on other sites
des2006 1 Posted March 6, 2016 Posted March 6, 2016 Just downloaded v1.5.5.2 today to install on my PS 1.6.1.4. In the B.O. >modules and services > upload a module, I received the following errors: 2 errors modrefchange (parse error in /modules/modrefchange/modrefchange.php) modrefchange (class missing in /modules/modrefchange/modrefchange.php) The module cannot be installed. Share this post Link to post Share on other sites
espacioled 5 Posted March 15, 2016 Posted March 15, 2016 Hi, i've a problem with this, i want put orders reference as CartID with a prefix '1', in this case for cart 2000 reference must be 12000. i've configured as photo, but reference = cartID, id not adding this 1. somebody can help me. thanks. Share this post Link to post Share on other sites
dudilona 0 Posted April 26, 2016 Posted April 26, 2016 Order reference change module v1.5.5.1 update So, what has changed? Minor bugfix on configuration update. modrefchange.zip PrestaShop 1.6.1.4 - install without problems. Working good! Thanks! I will be check working of this module, hope all be good ) Share this post Link to post Share on other sites
Arethusa 0 Posted May 17, 2016 Posted May 17, 2016 Hello Thank you so much @scorpionsworld ! It's now working with 1.5.5.1 and prestashop 1.6.1.1 BUT since I used the tips from webbax.ch (http://www.webbax.ch/2014/12/15/numerotation-des-factures-en-chiffre-sous-prestashop/), I had to do this : - deactivate the module (v. 1.5.5) - uninstall the module (v. 1.5.5) - delete the module (v. 1.5.5) - install the new module (v. 1.5.5.1) - activate & setup / save - delete the file "class_index.php" into the "cache" directory to initiate the override of the classes <=== was very important for me Once again, thank you very much ! I installed the latest version of the module, but does not work. And as I deleted the file you indicate cache, it works !!! Thank you very much! Share this post Link to post Share on other sites
lovemyseo 5 Posted June 16, 2016 Posted June 16, 2016 Continuing from Change Order reference using Order ID and/or Cart ID Order reference change module v1.5.4 Module to change the order reference using Order ID AND/OR Cart ID Compatibility: Prestashop v1.5.X and above Screenshots: Finally found the time for an update, so here is version 1.5.4. What has changed? Compatibility with PS 1.6.0.9 and above Bug fix on date/time prefix Minor layout changes to account for bootstrap compatibility The module has been tested on both a clean PS 1.6.0.14 installation as well an PS 1.5.6 installation upgraded to PS 1.6.0.14 Order reference change module v1.5.5 update So, what has changed? Bugfix on date/time format prefix Configuration screen responsive redesign Order reference change module v1.5.5.1 update So, what has changed? Minor bugfix on configuration update. modrefchange.zip Gives an error on PS 1.6.1.5 v 1.5.2 worked for me perfectly except options for invoice and delivery slips didnt work 1 Share this post Link to post Share on other sites
jkr 4 Posted September 27, 2016 Posted September 27, 2016 Thank you so much!I have started to use it on 1.6.1.3It seems that it works as designed Share this post Link to post Share on other sites
Ferenc 0 Posted November 15, 2016 Posted November 15, 2016 I installed the latest version of the module, but does not work. And as I deleted the file you have indicated in cache directory, it works !!! Thank you very much! Thank you so much! With this little trick it works under 1.6.1.9 Share this post Link to post Share on other sites
Rissinko 1 Posted January 2, 2017 Posted January 2, 2017 Hi guys, how can i reset count in this module ?? my orders number is like [year] [month] [number of order] 2017 01 431 and i need reset this number 431 to 1 its automatically counted. Share this post Link to post Share on other sites
Essemme_Forniture 5 Posted January 13, 2017 Posted January 13, 2017 Hi Guys, there's a bug with this module on 1.6.1.10 If you install and you have the invoice number resent by year ( new feature ) the number doesn't start from 0 but it start from the highest number of the year before. Example, my last 2016 invoice was 201600450 i put "restart number in the new year" and with this module the new invoice start from 201600451 without it works right 2017 00001 ect Just wanted to say Share this post Link to post Share on other sites
iljabos 4 Posted January 18, 2017 Posted January 18, 2017 Hi, My order reference does something strange: 11610 gives 11610 11611 gives 116101 11612 gives 1161012 11613 gives 11610123 Only thing I changes was activating cache (filesystem). I deactivated cache and things are normal! How can I use cache? Share this post Link to post Share on other sites
psbruce 0 Posted January 21, 2017 Posted January 21, 2017 Hello Scorpionsworld, This is a great module, thank you so much. I have experienced only one issue - the same as iljabos when using memcached. First order after activating memcached: order id = 140, order ref = 140 Next order: order id = 141, order ref = 1401 Next order: order id = 142, order ref = 14012 etc. This returned to normal when I deactivated memcached. I want to use caching to improve shop speed. Do you have any fix for this issue? Share this post Link to post Share on other sites
henrik@chuchum.dk 1 Posted March 28, 2017 Posted March 28, 2017 Hi, Thanks for a great module!!!!!! I use it on Prestashop 1.6.1.12, it works fine on english language, but on translated laguage invoice, the invoice prefix is not present, and I cant find a place to configure the prefixes for other languages.... So in english the invoice no is like this: INV#0000345 in eg. Danish: 0000345 Do you have any suggestions on how to fix this ? /OhmegaStar Share this post Link to post Share on other sites
Rector Orbis 0 Posted April 5, 2017 Posted April 5, 2017 Any update for 1.7.1.0? Not working Share this post Link to post Share on other sites
tdsoft 90 Posted April 5, 2017 Posted April 5, 2017 thanks for your module Share this post Link to post Share on other sites
AlfonsoML 0 Posted May 19, 2017 Posted May 19, 2017 Hello, Just testing it but the first issues is that the links to strftime lack the protocol, so they fail and must be copied manually. And the Save button text is "Opslaan" instead of "Save" or a localized version Share this post Link to post Share on other sites
Liofey 3 Posted May 31, 2017 Posted May 31, 2017 It seems like a bug in the cache. After I activated the cache, the order reference back to normal using random character again. My prestashop running under version 1.6.1.13 Share this post Link to post Share on other sites
Hoswedaje 2 Posted June 13, 2017 Posted June 13, 2017 Thanks, is working for me - deactivate the module (v. 1.5.5)- uninstall the module (v. 1.5.5)- delete the module (v. 1.5.5)- install the new module (v. 1.5.5.1)- activate & setup / save- delete the file "class_index.php" into the "cache" directory to initiate the override of the classes <=== was very important for me Share this post Link to post Share on other sites
harald.thomas 1 Posted August 20, 2017 Posted August 20, 2017 Hi, I tried the module in 1.6.1.16 but cannot get it to install. with the version 1.5.5.1 of the modrefchange i got the following message when i try to install: [PrestaShop] Fatal error in module file :/var/www/vhosts/.../httpdocs/classes/module/Module.php: Uncaught exception 'ReflectionException' with message 'Class OrderPaymentOverrideOriginal_remove59995fab89408 does not exist' in /var/www/vhosts/.../httpdocs/classes/module/Module.php:2944 Stack trace: #0 /var/www/vhosts/.../httpdocs/classes/module/Module.php(2944): ReflectionClass->__construct('OrderPaymentOve...') #1 /var/www/vhosts/.../httpdocs/classes/module/Module.php(2749): ModuleCore->removeOverride('OrderPayment') #2 /var/www/vhosts/.../httpdocs/classes/module/Module.php(347): ModuleCore->uninstallOverrides() #3 /var/www/vhosts/.../httpdocs/modules/modrefchange/modrefchange.php(409): ModuleCore->install() #4 /var/www/vhosts/.../httpdocs/controllers/admin/AdminModulesController.php(868): Modrefchange->install() #5 /var/www/vhosts/.../httpdocs/controllers/admin/AdminModulesController.php(1117): AdminModulesControllerCore->postProcessCallback() #6 /var/www/vhosts/... when i try to upload version 1.5.5.2 i get the following error: [PrestaShop] Fatal error in module file :/var/www/vhosts/.../httpdocs/modules/modrefchange/modrefchange.php:syntax error, unexpected ''.bak'' (T_CONSTANT_ENCAPSED_STRING) Any suggestions to get it to work? TIA .h Share this post Link to post Share on other sites
harald.thomas 1 Posted August 20, 2017 Posted August 20, 2017 finally i got 1.5.5.1 running. but the prefix is not displayed. i entered %Y%m as characters for the prefix. any suggestions? Share this post Link to post Share on other sites
harald.thomas 1 Posted August 20, 2017 Posted August 20, 2017 some more informations: if i put ORDER as the prefix, the resulting id is ORDER0001234 if i put ORDER%Y%m as the prefix, the resulting ID is 0001234 Share this post Link to post Share on other sites
desarrollo.ipavon 0 Posted September 13, 2017 Posted September 13, 2017 Good afternoon, We are using your module. It works correctly but in the email that receives the administrator of the online store still comes the reference of the old order. The web administrator does not receive the numbering that the customer that purchases it receives. For example, 00005. Why? How can it be corrected? Thank you. I wait for news. Regards, Rafael M. Share this post Link to post Share on other sites
paplo22 1 Posted October 5, 2017 Posted October 5, 2017 this module work on PS 1.7? Share this post Link to post Share on other sites
Guest Svyat86 Posted October 27, 2017 Posted October 27, 2017 On 05.10.2017 at 0:44 PM, paplo22 said: this module work on PS 1.7? Yes, it works. Share this post Link to post Share on other sites
humanoidvani 2 Posted February 21, 2018 Posted February 21, 2018 (edited) I repaired some bugs, and now it is looks like it is working with PS 1.7.2.4 modrefchange.zip Edited February 21, 2018 by humanoidvani Sorry for my English (see edit history) 1 1 Share this post Link to post Share on other sites
Murat27 0 Posted April 3, 2018 Posted April 3, 2018 Hi all, I try to install this module in prestashop 1.7.0. I tried the latest version from the website xtendify.com and also the version from humanoidvani. But both don't seem to work as I get an error already when I try to install it. When I try to upload the module (via module-upload module), I got the error message: "oops, upload failed" and a button try it again.. but also new attempts does not work out. Can anybody help out here? I would like to use this module to use the cart_id as the reference to enable my accounting software to connect the orders with the data from my payment module (which has the cart_ID in its reference). Or is there another workaround to achieve this? Share this post Link to post Share on other sites
selectshop.at 1,424 Posted April 4, 2018 Posted April 4, 2018 @Murat27 - this module was designed for PS 1.5 and 1.6. Not necessarily it should work on PS 1.7. You tried the changed version offered one post before yours or are you using original module download of page 1 ? Share this post Link to post Share on other sites
Murat27 0 Posted April 4, 2018 Posted April 4, 2018 I tried both versions, but got the same error message I described in my post before when I try to install the module:( Share this post Link to post Share on other sites
flagseller 2 Posted May 1, 2018 Posted May 1, 2018 (edited) Not working with our latest updated version 1.6.1.18 It used to work on 1.6.1.12 but after updating of prestashop to 1.6.1.18 the invoice id seems still working but order ref not working any more, Help! Edited May 1, 2018 by flagseller (see edit history) Share this post Link to post Share on other sites
Guillaume 1 Posted June 7, 2018 Posted June 7, 2018 @harald.thomas Do you find a solution? I have the same problem. I did a rollback and now I have: custom_order_reference. Class OrderPaymentOverrideOriginal_remove5b1943f3a160b does not exist. And I cant uninstall it Share this post Link to post Share on other sites
aLESSANDRO 0 Posted September 20, 2018 Posted September 20, 2018 (edited) I was able to change the order ID in the table ps_orders> operation AUTO_INCREMENT Edited September 20, 2018 by aLESSANDRO (see edit history) Share this post Link to post Share on other sites
zplus2 2 Posted November 20, 2018 Posted November 20, 2018 Thank you @scorpionsworld and thank you @humanoidvani for updating the module. I have successfully installed the module on PS 1.7.4.3 New order Reference automatically changes to ID. It helps a lot, thanks for free sharing. Share this post Link to post Share on other sites
franky.martin 3 Posted March 8, 2019 Posted March 8, 2019 I have tried to desactive your module and I got the error: . Class OrderOverride_remove5c82596126573 does not exist. Share this post Link to post Share on other sites
lordshop 20 Posted May 13, 2019 Posted May 13, 2019 Prestashop 1.7.5 works fine Share this post Link to post Share on other sites
immergente 2 Posted May 16, 2019 Posted May 16, 2019 On 2/21/2018 at 11:45 AM, humanoidvani said: I repaired some bugs, and now it is looks like it is working with PS 1.7.2.4 modrefchange.zip Thanks @humanoidvani! Works fine in 1.7.5.1 Share this post Link to post Share on other sites
Recommended Posts