Amazzing Posted September 14, 2014 Share Posted September 14, 2014 The default prestashop installation has 2 carriers with IDs 1,2 and same references, 1 and 2. When I create a new carrier, it gets a new ID and same reference (id=3, id_reference=3 etc.) So why do we need this reference? Where is it used? Link to comment Share on other sites More sharing options...
PhpMadman Posted September 15, 2014 Share Posted September 15, 2014 In short. It's used everywhere. Instead of using the id as we do on anything else, carriers uses the id_reference instead. 1 Link to comment Share on other sites More sharing options...
Amazzing Posted September 17, 2014 Author Share Posted September 17, 2014 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 More sharing options...
bellini13 Posted September 17, 2014 Share Posted September 17, 2014 the id_reference does not have to match the id_carrier value. So Carrier 1 can technically have Reference 2 And no, 2 different carriers cannot share the same reference number 1 Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted December 2, 2017 Share Posted December 2, 2017 (edited) there are many carriers with the same id_reference , when i tried to config paypal carrier restriction,it can't update the configuration for the duplicated values, prestashop 1.7.2.4 so there must be a bug in carrier restriction or carrier duplicate process, Edited December 4, 2017 by VicOffers (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted December 2, 2017 Share Posted December 2, 2017 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. Link to comment Share on other sites More sharing options...
selectshop.at Posted December 2, 2017 Share Posted December 2, 2017 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 More sharing options...
TiaNex Shopping Posted December 4, 2017 Share Posted December 4, 2017 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 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