Jump to content
thirty bees forum
  • 0

Carriers IDs incrementing in every save


Question

Posted

Hello.

Is it normal that every time I change some configuration in one carrier it changes its ID?. I've just edited one to change it's title and now its ID is 41, not 40 as before editing.

TB 1.1.x here.

Thanks

5 answers to this question

Recommended Posts

  • 0
Posted

It is normal tb/ps behavior because orders are tied to carrier_id and if you change carrier info (like tracking link) and want to look at old order than you can get the carrier info from that time.

I really ate this behavior because I believe that the only thing matters in orders are the shipping price and this part already being saved in the order table.

  • Like 3
  • 0
Posted
3 hours ago, toplakd said:

Well, it might be my OCD maybe 😂 🤣

I thought so 🙂

Yeah, it is irritating. But it does not hurt that much, database can take it. If we "fixed" this, who knows what would break. @yaniv14 is right -- the most important information is stored inside order/invoice tables anyway, so it would probably work fine. But there might be some corner cases when it would break things -- refunds, third party modules, etc...

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...