Hello, Sorin Sarca!
I've been trying to use your module and make an HTML import as described in "HTML example" there: http://drupal.org/node/1360374#import-html
And I cant't import products from http://demo.commerceguys.com/dc/ page. The module imports nothing, though I followed all steps in example and did not change anything in your code.
Started 23/01/2012 12:24:52, file downloaded & parsed 00:00:01, processing items 00:00:00, total duration 00:00:01, total feed items 8, rescheduled 0, updated 0, new 0, not imported 8.
I checked reports and saw some errors.
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: Tag header invalid in http://demo.commerceguys.com/dc/, line: 76
and
SimpleXMLElement::xpath() [simplexmlelement.xpath]: Invalid expression
for every item.
What should I do to make your module operable? Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | field-price-alternative-xpath.png | 19.05 KB | Sorin Sarca |
Comments
Comment #1
Sorin Sarca commentedHi,
looks like I missed something in module, I'm solving this right now and very soon (1h-2h) I'll release fixed module.
Thank you very much!
Comment #2
Sorin Sarca commentedFeed Import 2.5 is out.
Also HTML example was modified a little.
Comment #3
s3user commentedHi!
Thank you very much. It works and it's cool!
I noticed that the module does not import items without "body" field. For example: Mug from http://demo.commerceguys.com/dc/ page. Choosing any action, when filtered result for "body" is empty, has no effect.
Comment #4
Sorin Sarca commentedWell, this is not true. You cannot import Mug product because field_price has for default action (if is empty) "Skip importing this item". Because Mug doesn't have a body the xpath which gets price is changed and returns nothing => items is skipped. Here you can add an alternative xpath for price (on second line in xpath textarea):
and Mug product will be imported.

Check image below on how to add alternative xpath.
Comment #5
s3user commentedThanks for the explanation!
Comment #6
Sorin Sarca commented