Jump to content

[SOLVED] Carrier's id and the database


Recommended Posts

Hello,

I have deleted the default carriers and introduced my new carrier. Everything is fine, but its id is 3 instead of 1. In my database, default carriers have not been deleted, they are there with value 1 in column "deleted". And it's okay, but when I access the new carrier, even if i not make changes, after completion, it's id becomes 4. Whenever I edit the carrier, its id changes. So, after some edits, I have a single carrier, but the database is a mess. And my first carrier id, becomes, let's say, 16. It is very disturbing.

Does anyone knows if there is a solution for this ?

 

Thank you in advance !

Bogdan

 

Prestashop version 1.6.0.6

Edited by fishingnet (see edit history)
Link to comment
Share on other sites

This is working properly and as intended. 

 

What you have to consider is that when new orders are created, those orders reference this carrier, lets says carrier ID 4.

 

Now if you make a change to this carrier and the same carrier id is used (ID 4), you would impact every previous order that used this carrier.  So instead, Prestashop disables/hides the old carrier (ID 4) so that previous orders still function properly, and instead creates a new Carrier with ID 5 that would be used for future orders.

Link to comment
Share on other sites

×
×
  • Create New...