Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Offer module – XPath price path contains also text

$
0
0

Replies: 0

One of the affiliate shops (from which I would like to use product links) on my site using offer module, does not contain the price information “isolated” in a specific Xpath locator. When I use the only XPath available, that has [price + some words], content egg plugin doesn’t seem to know how to isolate the price information from the rest. I don’t know what to do in this case.

Affiliate offer: http://bit.ly/2h540Oq

XPath locator: //*[@id=”offerPrice_4611686018426492515″]

I am using Chrome extension “XPath Helper” to test the XPath locator before adding it in the list of affiliate offers on offer module.

I tried to use the expression substring(//*[@id=”offerPrice_4611686018427045504″],10,8) as the XPath locator (because this expression removes the text from the price), but content egg does not seem to understand this command (I’ve tested substring, substring-after, substring-before).

Any help would be appreciated. Thanks in advance.

  • This topic was modified 3 minutes ago by guilhermefr.

Viewing all articles
Browse latest Browse all 59525

Trending Articles