Jump to content

Show popup message from hookActionCartSave


Polythene Pam

Recommended Posts

I need to show a popup message from a custom module on hook hookActionCartSave according to specific conditions.

I know the hook hookActionCartSave is being executed because I'm debugging the code and the breakpoint gets executed.

I don't know where to start. I'm using a custom theme.

Any ideias? Tutorials?

 

Edited by Polythene Pam (see edit history)
Link to comment
Share on other sites

  • 1 year later...
On 3/5/2021 at 12:49 PM, Polythene Pam said:

I need to show a popup message from a custom module on hook hookActionCartSave according to specific conditions.

I know the hook hookActionCartSave is being executed because I'm debugging the code and the breakpoint gets executed.

I don't know where to start. I'm using a custom theme.

Any ideias? Tutorials?

 

Any new sir ?

Link to comment
Share on other sites

Hi,
You can use the following form to create the basic module with the hook: 
https://validator.prestashop.com/generator
And following the documentation and examples from other modules, you can implement the conditions for your popup to show. 
https://devdocs.prestashop.com/1.7/modules/
When the hook is triggered, you need to render a template file from the module created by you with the design of the popup and assign CSS and js files. 
I hope that I could help.
Have a nice day, Leo.

  • Like 1
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...