Fadyselim Posted February 5, 2013 Share Posted February 5, 2013 (edited) i want to have a hook which listens to an address update or insertion but in the documentation i can not seem to find any which does just that! but i did however find in the documentation something like this: actionObjectAddBefore actionObjectObjectNameAddBefore actionObjectAddAfter actionObjectObjectNameAddAfter actionObjectUpdateBefore actionObjectObjectNameUpdateBefore actionObjectUpdateAfter actionObjectObjectNameUpdateAfter actionObjectDeleteBefore actionObjectObjectNameDeleteBefore actionObjectDeleteAfter actionObjectObjectNameDeleteAfter http://doc.prestasho...+PrestaShop+1.5 but how do i use these in my code? how can i create hooks for this? i don't really understand it... thank you in advance btw, i am using version 1.5.2.0 Edited February 5, 2013 by Fadyselim (see edit history) Link to comment Share on other sites More sharing options...
PresaExpert Posted February 6, 2013 Share Posted February 6, 2013 Hi, read this for creating new hooks. http://www.programmingtunes.com/creating-new-prestashop-hook/ thanks 1 Link to comment Share on other sites More sharing options...
Fadyselim Posted February 6, 2013 Author Share Posted February 6, 2013 (edited) wow that actually worked, thanks a lot but now i have come to a different problem related to the module i made with this hook, the module basically just edits a value in the database to put each address in a corresponding country without the user being aware of this. but now everytime i select a new address, the website copies the cart over to the new address but also remembers (and shows) the products which were on the old address... but when i refresh the page, all is good again untill i try to change the address again... i have screenshots attached so you can see... if anyone wishes to see the website, just ask and i'll open it up for you... on a side note, in my preferences i have multi shipping turned off... i have never allowed it so... Edited February 6, 2013 by Fadyselim (see edit history) 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