Jump to content

What is carrier id_reference used for?


Amazzing

Recommended Posts

In short. It's used everywhere. Instead of using the id as we do on anything else, carriers uses the id_reference instead.

OK, thanks for the reply. 

 

One more question, does id_reference always have to match id_carrier?

In other words, can we have 2 carriers with different id-s and same reference?

Link to comment
Share on other sites

  • 3 years later...

When you add a new carrier, than it will get a new id. If you EDIT this carrier, than Prestashop will add a new carrier with new ID, but same name. This is not a bug, and was the same logic since every time...

The carrier with ID 4 is not visible than anymore on carrier list of back-office.

For ex: new carrier = ID 4. I edit this carrier. ID 4 is not available anymore and will be reserved in database (for to track possible old orders made with this ID). After editing this carrier and saving it will get ID 5 (or the next one which is free in database).

 

If you are having same carriers with same ID's so it must be a wrong manipulation into your database (csv import or manual edit direct on database with phpmyAdmin).

Link to comment
Share on other sites

On 12/3/2017 at 0:25 AM, bellini13 said:

are all of those carriers active?  Or is 1 active, and the others are disabled?  And how were these carriers created?  Did you create them manually, or did you use a module to create them?

Also, PS v1.7.2.8 does not exist.

 

On 12/3/2017 at 0:27 AM, selectshop.at said:

When you add a new carrier, than it will get a new id. If you EDIT this carrier, than Prestashop will add a new carrier with new ID, but same name. This is not a bug, and was the same logic since every time...

The carrier with ID 4 is not visible than anymore on carrier list of back-office.

For ex: new carrier = ID 4. I edit this carrier. ID 4 is not available anymore and will be reserved in database (for to track possible old orders made with this ID). After editing this carrier and saving it will get ID 5 (or the next one which is free in database).

 

If you are having same carriers with same ID's so it must be a wrong manipulation into your database (csv import or manual edit direct on database with phpmyAdmin).

 

yes,thank you,you are right,it was caused by i enabled the disabled shipping method (after edited) from database,

it's not a right way to add new shipping method,

Link to comment
Share on other sites

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...