Jump to content

Customize product after adding it to the cart


rhost

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...