zollgut Posted December 19, 2010 Share Posted December 19, 2010 Hi, i am trying to alter the code when a product is created so that the Reference code is given the same value as the product ID.The reason is I would like the Reference code to be automatically generated so I do not need to stay adding in a unique reference with each product added.Can anyone tell me if it's possible and what the code should be? If not is there alternative options?Thanks! Link to comment Share on other sites More sharing options...
rocky Posted December 20, 2010 Share Posted December 20, 2010 This topic might help. Link to comment Share on other sites More sharing options...
zollgut Posted December 21, 2010 Author Share Posted December 21, 2010 Hi Rocky thanks for the reply.I'm not too familiar with how Prestashop works so I'm not sure how to apply the code mentioned in the other post.I would like that when creating a product it automatically generates the Reference Code, so it would be during the creation of a product, is that possible?Thanks again Link to comment Share on other sites More sharing options...
siadmin Posted December 21, 2010 Share Posted December 21, 2010 I would say thats possible, but if you dont know how to apply the other threads code then trying to make it happen automatically during product import probably isnt the best option for you. You can reset all your product references to the same as the product id's using an SQL command in phpMyAdmin,UPDATE ps_product SET reference=id_productback up the database first, you wont have the option to undo this. Also, check that I have the table name correct, it may be ps_product_lang.I resolve this issue by producing a unique reference during the export of my csv file using php.. I use a combination of information the supplier provides about each product. Sounds like you are adding products manually in the back office though, setting up automated csv export is another challenge for another day, unless you're either going to spend the time learning to write code, or pay someone else to do it for you. Link to comment Share on other sites More sharing options...
nextpointer.gr Posted February 29, 2020 Share Posted February 29, 2020 Hello, Free module - Reference Generator https://github.com/vgoritsas/np_refgenerator Link to comment Share on other sites More sharing options...
Prestag0od Posted April 23, 2020 Share Posted April 23, 2020 On 2/29/2020 at 6:27 PM, nextpointer said: Hello, Free module - Reference Generator https://github.com/vgoritsas/np_refgenerator It's working only on prestashop 1.7? I need this for 1.6. Link to comment Share on other sites More sharing options...
nextpointer.gr Posted April 23, 2020 Share Posted April 23, 2020 hello , thanks for your interest I also have version 1.6 , you must contact with me via email for more details. Link to comment Share on other sites More sharing options...
whittloc Posted November 6, 2020 Share Posted November 6, 2020 Does this work for all combinations of a product or just the parent product? Thanks Link to comment Share on other sites More sharing options...
nextpointer.gr Posted November 6, 2020 Share Posted November 6, 2020 Hi. No it does not work, but i can make it work for you and for combinations. please contact us : [email protected] Link to comment Share on other sites More sharing options...
MILL3RDK Posted July 12, 2021 Share Posted July 12, 2021 On 2/29/2020 at 5:27 PM, nextpointer said: Hello, Free module - Reference Generator https://github.com/vgoritsas/np_refgenerator Hi, How do i install this to my Prestashop ?? The Read Me files dosn't tell my anything.... ;-( Link to comment Share on other sites More sharing options...
Prestag0od Posted July 13, 2021 Share Posted July 13, 2021 18 hours ago, MILL3RDK said: Hi, How do i install this to my Prestashop ?? The Read Me files dosn't tell my anything.... ;-( You just add all files in one folder. You zip the folder and you install it from presta panel. Or you can upload the folder in modules folder and after continue install from presta panel. Link to comment Share on other sites More sharing options...
Marco T. Posted September 21, 2021 Share Posted September 21, 2021 Did someone successfully installed this module? I tried to install it from presta panel but it doesn't work. Then I tried to upload the module in the modules folder via FTP but I can't complete installation because I can't see the module in the BO (modules > module catalog). Thanks! 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