Guest Posted February 27, 2019 Share Posted February 27, 2019 (edited) hello there. how i can auto generate product reference when i add new product? ref # = product id. prestashop 1.6.1.23 thanks Edited February 27, 2019 by andrew0808 (see edit history) Link to comment Share on other sites More sharing options...
Presta Bucket Posted February 28, 2019 Share Posted February 28, 2019 Hello, What version is the shop? Use can use at submit, a php function that gets the id, product name, attribute for example, concatenate them, and fill the reference field Best regards Link to comment Share on other sites More sharing options...
Guest Posted February 28, 2019 Share Posted February 28, 2019 11 hours ago, Presta Bucket said: Hello, What version is the shop? Use can use at submit, a php function that gets the id, product name, attribute for example, concatenate them, and fill the reference field Best regards Hi. 1.6.1.23 Link to comment Share on other sites More sharing options...
Presta Bucket Posted February 28, 2019 Share Posted February 28, 2019 Hello, When you click on “submitAddProduct” you could get the parameters wanted. In AdminProducts at line 1291 you could use var_dump() and die() to see all parameters, than assign to a variable created by you, and set the reference value to the variable. Best regards 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