Jump to content

How to prevent product update and create?


Recommended Posts

Hi,

I'm developing a module to call an API on update/create product. My scenario is that when this API is called, if successful, proceed with product create/update in prestashop. However, if the API for whatever reason fails, the product create/update must be prevented.

Is there any way to do this in hookActionProductUpdate? Or is there another hook that I could use?

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...