sickshot Posted March 30, 2021 Share Posted March 30, 2021 (edited) so i have old prestashop based shop which is running from 2015 and is on ps 1.4 some time ago i had to restore 3 month old backup and now my payment gateway is not accepting payments as new orders are sent with old IDs which in payment gateway database are already been registered so all payments get rejected... before restore order ID was on 4616 and now it is on order ID 3821, so i need to make prestashop to continue orders from 4017 and up to make gateway accept payments... so i need to skip about 600 orders to make payments work again .... any ideas on how i can do this? Edited March 30, 2021 by sickshot (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted March 31, 2021 Share Posted March 31, 2021 You need to do that in Mysql. Use phpmyadmin to change the autoincrease value in the ps_orders table. https://stackoverflow.com/questions/1485668/how-to-set-initial-value-and-auto-increment-in-mysql Link to comment Share on other sites More sharing options...
sickshot Posted March 31, 2021 Author Share Posted March 31, 2021 (edited) i tried ALTER TABLE ps_orders AUTO_INCREMENT=4620; but got error #1146 - Table 'kenarish_kensop.ps_orders' doesn't exist so its in ps147_orders and ids itself are in id_order i dont know how this works...if you know what is the exact command? its presta version 1.4 Edited March 31, 2021 by sickshot (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted March 31, 2021 Share Posted March 31, 2021 35 minutes ago, sickshot said: i tried ALTER TABLE ps_orders AUTO_INCREMENT=4620; but got error #1146 - Table 'kenarish_kensop.ps_orders' doesn't exist so its in ps147_orders and ids itself are in id_order i dont know how this works...if you know what is the exact command? its presta version 1.4 And you are using prefix "ps_"? Link to comment Share on other sites More sharing options...
sickshot Posted March 31, 2021 Author Share Posted March 31, 2021 yes Link to comment Share on other sites More sharing options...
musicmaster Posted March 31, 2021 Share Posted March 31, 2021 35 minutes ago, sickshot said: yes You are contradicting yourself. Previously you said that you used "ps147_" as refix. Link to comment Share on other sites More sharing options...
sickshot Posted April 30, 2021 Author Share Posted April 30, 2021 On 3/31/2021 at 10:47 PM, musicmaster said: You are contradicting yourself. Previously you said that you used "ps147_" as refix. Oh yes my fault. Im managing several websites so i messed this up. Anyway i fixed this issue 1 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