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
  • Global/custom settings
  • Price update for Offer module
  • How to get XPath on Amazon product as example
  • Sites with Microdata markup
  • How to check price update?
  1. Modules
  2. Affiliate modules

Offer module

PreviousLomadee Products moduleNextOptimisemedia module

Last updated 2 years ago

You can use Offer module if you want to add links manually to your product list

Use direct link on product page in "Product URL" field (without any affiliate network's parameters which are usually after symbol "?"). You should use deeplink in separate field. Read about deeplink here.

Global/custom settings

In example above, we used deeplink directly in field. But you can create global deeplinks and xpath for each domain. So, if your offer doesn't have deeplink field, plugin will use global settings.

You can also overwrite custom settings by global fields (global settings will have priority)

Price update for Offer module

This is only for advanced users. You must have some basic knowledge about XPath.

Please, note, we don't provide help of setup of XPath for your sites, but you can hire us to create custom parsers for Affiliate Egg.

How to get XPath on Amazon product as example

1. Plugin can't detect javascript fields, so, deactivate it in browser

How to use ChroPath:

  • Right-click on the web page, and then click Inspect (Ctrl + Shift + I).

  • In the right side of Elements tab, click on ChroPath tab.

  • To generate XPath selectors, inspect element or click on price node, it will generate the unique relative/absolute XPath selector. Usually, you should use relative selector.

3. Sometimes, some sites can have different pages with different designs for product pages.

For example, XPath for deal products will be:

//span[@id='priceblock_dealprice']

But XPath for book product pages:

//span[@class='a-size-base a-color-price a-color-price']

So, you must merge all xpath into one line with %DELIMITER%. Plugin will try to use each of xpath rules until some rule will work.

Example for Amazon:

//span[@id='priceblock_ourprice']%DELIMITER%//span[@id='priceblock_dealprice']%DELIMITER%//span[@class='a-size-base a-color-price a-color-price']

Sites with Microdata markup

TIP: Many sites use schema markup and you can try universal XPath query for Microdata:

.//*[@itemprop='price']/@content

or

.//*[@itemprop='price']

How to check price update?

XPath is used only for price update. It's not in use for parsing initial price, you must add it manually to field.

So, for checking XPath:

  • Add some wrong price in Offer price field

  • Click on the "Update prices" button to trigger the price update:

  • Check your price now and possible error:

Offer module can automatically update prices if you set global/custom .

We recommend for Chrome as fast way to enable/disable JavaScript.

2. You can set addon for Chrome for fast check of XPath.

XPath query
Quick Javascript Switcher
ChroPath