> For the complete documentation index, see [llms.txt](https://ce-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ce-docs.keywordrush.com/modules/affiliate/offermodule.md).

# Offer module

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

{% hint style="info" %}
Use the **direct link** from the product page in the "Product URL" field (without any affiliate-network parameters, which usually come after the "?" symbol). Use the deeplink in a separate field. Read about the deeplink [here](/modules/deeplink-settings.md).
{% endhint %}

![](/files/-M4xMj_eu3s8-A09fIeS)

### Global/custom settings

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

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

![](/files/-M4xMt1POVEzyOYdv1aF)

### Price update for Offer module

{% hint style="warning" %}
This is only for advanced users. You must have some basic knowledge about XPath.
{% endhint %}

{% hint style="info" %}
Please note that we don't provide help setting up XPath for your sites, but you can hire us to create custom parsers for Affiliate Egg.
{% endhint %}

Offer module can automatically update prices if you set global/custom [XPath query](https://en.wikipedia.org/wiki/XPath).

### How to get XPath for an Amazon product (example)

1\. The plugin can't detect JavaScript fields, so deactivate it in your browser.

We recommend [Quick Javascript Switcher](https://chrome.google.com/webstore/detail/quick-javascript-switcher/geddoclleiomckbhadiaipdggiiccfje) for Chrome as fast way to enable/disable JavaScript.

![](/files/-M4xOFEErfEatLI0UibY)

2\. You can install the [ChroPath](https://chrome.google.com/webstore/detail/chropath/ljngjbnaijcbncmcnjfhigebomdlkcjo) add-on for Chrome to quickly check XPath.

**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.

![](/files/-M4xOWXqHKD-Lt3C8YS0)

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

For example, XPath for deal products will be:

```php
//span[@id='priceblock_dealprice']
```

But XPath for book product pages:

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

```php
//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

{% hint style="success" %}
TIP: Many sites use schema markup and you can try universal XPath query for Microdata:
{% endhint %}

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

or

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

![](/files/-M4xQ-2b3jl8TZMELnwf)

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

<figure><img src="/files/T7LMvn758UADoEdRab6h" alt=""><figcaption></figcaption></figure>

* Check your price now and possible error:

![](/files/-M4xQHzrAMN1A02Rjjl3)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://ce-docs.keywordrush.com/modules/affiliate/offermodule.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.
