# Custom Parsers

### How to order custom parsers

Affiliate Egg comes with a set list of supported stores. If you need a custom parser for a store not included by default, we can create one for you.

**Cost**: $25 per parser. Each store requires a separate parser, which you can use on any of your websites.

**Process**:

1. **Email Us**: [Send us](https://www.keywordrush.com/contact) your list of stores.
2. **Invoice**: We will review your list and send you an invoice.
3. **Creation**: It may take 1-2 days to create the parsers.

**Installation**:

* Copy the parser files to your server's dedicated `/wp-content/affegg-parsers/` directory.
* Custom parsers work exactly like the default parsers.

**Guarantee**: We provide a 6-month guarantee for any custom products. If your parser needs any corrections during this time, we'll make the necessary adjustments for free.

### For Developers

You can create your custom parser. Follow these steps:

1. **Skills Required**: Ensure you have PHP and XPath skills.
2. **Parser Location**: Place all custom parsers inside the folder:

   ```
   /wp-content/affegg-parsers/
   ```
3. **Example Parser**: Refer to the example parser in the folder:

   ```
   /wp-content/plugins/affiliate-egg/application/shop/parsers/
   ```
4. **File Naming**: The name of the file must match the name of the class inside the parser.
5. **Header Information**: Add the following information in the header of your parser file:

   ```php
   /*
     URI: https://www.adidas.fr
     SEARCH URI: https://www.adidas.fr/search?q=%KEYWORD%
    */
   ```
6. **Required Methods**: Each class-parser must include the following methods:

   ```php
   parseCatalog();
   parseTitle();
   parseDescription();
   parsePrice();
   parseImg();
   parseImgLarge();
   parseOldPrice();
   parseManufacturer();
   parseExtra();
   isInStock();
   ```
7. **Additional Data**: If you need to parse any additional data, use the `parseExtra()` method.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ae-docs.keywordrush.com/customparsers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
