Prestashop actionUpdateQuantity loop
<p>I'm developing a simple module that hooks to actionUpdateQuantity hook. So, every time the stock of a product is updated I must update the stock of other products.</p>

<p>But, to update the stock I call stockAvailable object, which trigger the actionUpdateQuantity hook. So, I have a endless loop.</p>

<p>Then I tried to manually update the stock directly on the database using SQL, but this have the problem that other modules don't "see" the stock updates. So, modules like MailAlert, ebay or Amazon don't update stock correctly.</p>

<p>I'm a bit stuck here.</p>

<p>How can I update the stock without enter a loop ?</p>

<p>Thanks!</p>