> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://doc.common-services.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Understanding the logging system - Amazon Marketplace Plus

The Amazon module for PrestaShop uses an internal **logging system**. Each time a product is updated (price, stock, description, etc.), an event is recorded in the database when you click **Save**. These updates are then processed during the next export to Amazon.

---

## In detail

The module relies on **PrestaShop Hooks** to detect changes:  
🔗 [PrestaShop Dev Docs – Hooks](https://devdocs.prestashop-project.org/8/modules/concepts/hooks/)  
🔗 [PrestaShop Help Center – Hook System](https://help-center.prestashop.com/hc/en/articles/20505563893138)
---

## What does the module sync?

By default, the module sends:
* **Quantities**
* **Prices**

...and only for products that have been **modified**.

---

## Batch sending

For each update:

* The module records the action in a **log table**
* At the next sync (manual or cron), all logged updates are sent as a single feed
* Once Amazon sends back a **receipt**, the log entry is deleted
---

## External software compatibility

If you use third-party software (ERP, POS, etc.), make sure it triggers **PrestaShop native hooks**. If not, updates won’t be detected.  
👉 You can share this section with your technical provider.

---

## Test the logging system

To make sure it works:

1. Open a product page
2. Change the **quantity** and click **Save**
3. Go to the Amazon module > **Tools** tab
4. You should see a **new entry in the queue** (log)

This queue will be used for the next Amazon export.
