rhost Posted September 3, 2014 Share Posted September 3, 2014 Hello everyone, I'm trying to develop a small module that allows the personalization of a specific product. The idea is that when the user decides to add a specific product to the shopping cart, he will be taken to this special page to edit it to suit his needs. Afterward the modifications will be saved and prepared to be sent to production. I'm currently trying to use the hook actionProductAdd but I'm not sure if this the right direction. Could somebody help me to understand how should I proceed? Developing on Prestashop 1.6.0.9,This is how I'm calling the hook and I made sure to call it on install, public function hookActionProductAdd($params) { return $this->display(__FILE__, 'views/templates/hooks/home.tpl'); } Link to comment Share on other sites More sharing options...
rhost Posted September 5, 2014 Author Share Posted September 5, 2014 Small update, I changed hookActionProductAdd to hookActionCartSave in order to detect what was being added, the problem now is that the $params argument only displays cart information and not product info. Any thoughts of where should I look for this? 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