Artemis909 Posted September 19, 2014 Share Posted September 19, 2014 Hi, it is possible to change start value of id_cart to start not from zero but from 1500 for example? Increment will be same so +1. In database ps_cart I have manually change last id-cart to 1500 but when new order is made, Presta somehow know that last order was (for example) 37, so Presta set new id_cart to 38 and just ignore last manually added value 1500. Is there some way to persuade Prestashop to count id_cart value not from zero ? We are speaking about PS 1.6.0.9 Link to comment Share on other sites More sharing options...
NemoPS Posted September 20, 2014 Share Posted September 20, 2014 You have to set the auto increment value in the table to 1500 ALTER TABLE ps_cart AUTO_INCREMENT = 1500 Link to comment Share on other sites More sharing options...
Artemis909 Posted September 20, 2014 Author Share Posted September 20, 2014 Yes, this is no problem but it is some kind of dirty solution in my opinion. But at the moment do not have better. Link to comment Share on other sites More sharing options...
NemoPS Posted September 20, 2014 Share Posted September 20, 2014 Well no, it's not a dirty solution, it's the only way. Unless you want to create 1499 carts 1 Link to comment Share on other sites More sharing options...
viscaro Posted September 21, 2014 Share Posted September 21, 2014 Thanks for this topic and for the answer. Where can I find the table to modify? In phpMyAdmin? Link to comment Share on other sites More sharing options...
NemoPS Posted September 22, 2014 Share Posted September 22, 2014 yes, it's ps_cart, or whatever prefix you use Link to comment Share on other sites More sharing options...
viscaro Posted September 22, 2014 Share Posted September 22, 2014 Thanks for your reply. I tried, but there's no field where I can put the starting number. There's only "Autoincrement" and a flag activate or deactivate it Link to comment Share on other sites More sharing options...
NemoPS Posted September 22, 2014 Share Posted September 22, 2014 You need to run that query in the sql tab Link to comment Share on other sites More sharing options...
viscaro Posted September 23, 2014 Share Posted September 23, 2014 Sorry, but it didn't work. I tried many times, but I must be wrong somewhere.I go to ps_cart, I click con SQl tab, type ALTER TABLE ps_cart AUTO_INCREMENT = 1500 but...nothing changes Link to comment Share on other sites More sharing options...
NemoPS Posted September 24, 2014 Share Posted September 24, 2014 So when you create a new cart it doesn't start from 1500? Do you get a confirmation after running the query? Link to comment Share on other sites More sharing options...
viscaro Posted September 24, 2014 Share Posted September 24, 2014 It says that the query was successful.Now, if I go in the "operation" tab that's what I see: "Auto increment 1504", but a new order will start again from 39... I send you a screenshot in attachment Link to comment Share on other sites More sharing options...
viscaro Posted September 24, 2014 Share Posted September 24, 2014 Ok, I did it!The solution was to change both ps_orders and ps_cart. Thank you so much for helping 1 Link to comment Share on other sites More sharing options...
Recommended Posts