You can use Offer module if you want to add links manually to your product list
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)
Offer module can automatically update prices if you set global/custom XPath query.
2. You can set ChroPath addon for Chrome for fast check of 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.
3. Sometimes, some sites can have different pages with different designs for product pages.
For example, XPath for deal products will be:
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']
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
Temporally set very low period for price update for Offer module:
Go on your page where you have offer and update page, this will trigger price update.
Check your price now and possible error: