For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 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 /wp-content/affegg-parsers/ directory.

  • Custom parsers work exactly like the default parsers.

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

For Developers

You can create your own 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 filename must match the class name inside the parser.

  5. Header Information: Add the following header to your parser file:

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

    parseCatalog();
    parseTitle();
    parseDescription();
    parsePrice();
    parseImg();
    parseImgLarge();
    parseOldPrice();
    parseManufacturer();
    parseExtra();
    isInStock();
  7. Additional Data: To parse any extra data, use the parseExtra() method.

Last updated