zollgut Posted December 19, 2010 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! Share this post Link to post Share on other sites More sharing options...
rocky Posted December 20, 2010 Posted December 20, 2010 This topic might help. Share this post Link to post Share on other sites More sharing options...
zollgut Posted December 21, 2010 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 Share this post Link to post Share on other sites More sharing options...
siadmin Posted December 21, 2010 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. Share this post Link to post Share on other sites More sharing options...
nextpointer Posted February 29, 2020 Posted February 29, 2020 Hello, Free module - Reference Generator https://github.com/vgoritsas/np_refgenerator Share this post Link to post Share on other sites More sharing options...
Prestan0ob Posted April 23, 2020 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. Share this post Link to post Share on other sites More sharing options...
nextpointer Posted April 23, 2020 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. Share this post Link to post Share on other sites More sharing options...
whittloc Posted November 6, 2020 Posted November 6, 2020 Does this work for all combinations of a product or just the parent product? Thanks Share this post Link to post Share on other sites More sharing options...
nextpointer Posted November 6, 2020 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] Share this post Link to post Share on other sites More sharing options...
MILL3RDK Posted July 12, 2021 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.... ;-( Share this post Link to post Share on other sites More sharing options...
Prestan0ob Posted July 13, 2021 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. Share this post Link to post Share on other sites More sharing options...
Marco T. Posted September 21, 2021 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! Share this post Link to post 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