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

    /*
      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:

    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.

Last updated