Content Egg Pro Plugin
Pricing
  • Content Egg WP Plugin
  • Getting started
    • Installation
    • Upgrade Free to Pro
    • Automatic updates
  • Modules
    • General information
    • Affiliate modules
      • Aliexpress module
      • Amazon module
      • Amazon No API module
      • Avantlink Products module
      • Awin module
      • Bestbuy module
      • Bolcom module
      • CityAds Products module
      • CJ Products module
      • Daisycon module
      • Ebay module
      • Envato module
      • Flipkart module
      • GdeSlon module
      • Impactradius module
      • Kelkoo module
      • Kieskeurignl module
      • Rakuten Linkshare module
      • Linkwise module
      • Lomadee Products module
      • Offer module
      • Optimisemedia module
      • Shareasale module
      • Shopee module
      • Tradedoubler Products module
      • Tradetracker Products module
      • Trovaprezzi
      • Udemy module (deprecated)
      • Sovrn (Viglink) module
      • Walmart module
      • Webgains module
    • Coupon modules
      • Admitad Coupons module
      • CJ Links module
      • Coupon module
      • Lomadee Coupons module
      • Skimlinks Coupons module
      • Tradedoubler Coupons module
      • Tradetracker Coupons module
    • Content modules
      • Bing Images module
      • Flickr module
      • Freebase module
      • Google Books module
      • Google Images module
      • Pixabay module
      • Qwant Images module
      • Related Keywords module
      • RSS Fetcher module
      • Twitter module
      • Youtube module
    • Feed modules
      • General information
      • Field mapping
      • Mass import
      • Price comparison based on feeds
      • Troubleshooting
    • Module cloning
    • Deprecated modules
    • My network isn't listed
    • Affiliate Egg integration
    • Deeplink settings
  • Set Up Products
    • How to add products
    • Price comparison websites
    • Autoblogging
    • Fill tool
    • Products page
    • How to add badge icons
  • Frontend
    • How content is displayed
    • 🆕Gutenberg blocks
    • 👉Shortcode parameters
    • Product groups/variations
    • Product sorting
    • Featured images
    • Frontend Search
    • Translation
    • Greenshift templates
  • Updating products
    • Price update
    • Product list update
    • Why prices don't update
    • Out-of-stock products
    • Price history
    • Price alert
    • Price movers
  • 🪄AI
    • Activating AI features
    • AI content generation
    • Smart groups
    • OpenAI API
    • Claude API
    • OpenRouter API
    • Custom prompts
  • WooCommerce Integration
    • General information
    • Product synchronization
    • Attributes synchronization
    • WooCommerce and autoblogging
  • Integrations
    • Affiliate Egg Integration
    • Cashback Tracker Integration
    • External Importer integration
    • WooCommerce Integration
  • Custom Templates
    • Customizing templates with CSS
    • How to install a custom template
    • 🪄ChatGTP Template Creator
    • How to create a custom template
  • Customization
    • Localization
    • For developers
    • Useful code snippets
    • REST API
    • Compatibility with themes
  • FAQ
    • How to add price comparison blocks to WooCommerce
    • How to add custom logos for merchants
    • How to import from CSV data feeds
    • How to change the date format or the date is not being displayed
    • Is Content Egg GDPR Compliant?
    • How to add offer count as a custom field
    • How to add products programmatically
  • Troubleshooting
    • Small font size in product blocks
    • Nothing found while search
Powered by GitBook
On this page
  • CSV Feed
  • XML Feed
  • Extract Data with Regex
  • Product Attributes
  1. Modules
  2. Feed modules

Field mapping

PreviousGeneral informationNextMass import

Last updated 3 months ago

Each feed has a different structure across all networks, so you must perform field mapping for each feed.

CSV Feed

Open your feed file in any CSV viewer, such as Excel. Next, set the column name from your file to the appropriate field in the plugin.

  • id - Unique ID of the product. This field must remain constant in your feed.

  • affiliate link – Link to the product with your affiliate parameter.

  • is in stock – Supported values: "1", "true", "on", "yes", "0", "false", "off", "no".

  • availability - Supported values: "in stock", "out of stock".

  • direct link – Direct URL to the original product page without redirects or affiliate parameters.

  • gtin - EAN 13-digit number, like 3001234567892.

Note that some fields are required, while others are optional.

XML Feed

with XML node attributes:

You can also use XPath syntax for more complex selectors, such as:

Example of XPath for a node with a namespace:

.//*[local-name()='media:thumbnail']/@url

Extract Data with Regex

You can extract specific data from a feed field using a custom syntax that incorporates a regex pattern: [regex][pattern][feed_field_name]

This allows you to define a pattern to match and extract the desired portion of the data within the specified feed field.

Example Use Case:

Consider a feed containing a "fields" field that combines multiple pieces of product data. To extract the value of a specific key, such as "from_price", you can use the following syntax:

[regex][/from_price:([\d.]+) EUR/][fields]

Explanation:

  • [regex]: This indicates you are using a regex-based extraction.

  • /from_price:([\d.]+) EUR/: The regex pattern to match.

  • [fields]: The feed field from which data will be extracted.

Use capturing groups () to define the exact portion of the match you want to extract.

Product Attributes

You can map any fields from your CSV feed as product attributes, which can then be used to import WooCommerce attributes or display attributes via shortcode.

For example, if your feed includes columns like delivery_weight and delivery_time that you want to map as attributes, add them to the "attributes" mapping settings as follows:

delivery_weight,delivery_time

These fields will then appear as product attributes:

To customize their display names, update the "attributes" mapping like this:

delivery_weight->Delivery Weight,delivery_time->Delivery Time

The result will appear as shown: