mushu Posted November 12, 2018 Share Posted November 12, 2018 (edited) Hi guys, i'm a new user of prestashop with basic skills of php (i'm a python programmer) i've created a custom module to manage hookActionObjectOrderAddAfter. i need to catch the "reference" code of sold products to insert them in another custom table. How can i get the reference from the the order object thought that hook? prestashop version 1.7.3.0 Edited November 12, 2018 by mushu (see edit history) Link to comment Share on other sites More sharing options...
mushu Posted November 13, 2018 Author Share Posted November 13, 2018 that reference code is generated for each purchase (and stored in ps_orders) i need the refererence code in ps_products 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