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.

CommentFileSizeAuthor
#4 field-price-alternative-xpath.png19.05 KBSorin Sarca

Comments

Sorin Sarca’s picture

Hi,
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!

Sorin Sarca’s picture

Status: Active » Fixed

Feed Import 2.5 is out.
Also HTML example was modified a little.

s3user’s picture

Version: 7.x-2.4 » 7.x-2.5

Hi!

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.

Sorin Sarca’s picture

StatusFileSize
new19.05 KB

I noticed that the module does not import items without "body" field.

Well, 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):

div[@class='article-content']/div[2]/section/div[@class='field-items']/div

and Mug product will be imported.
Check image below on how to add alternative xpath.
http://drupal.org/files/field-price-alternative-xpath.png

s3user’s picture

Thanks for the explanation!

Sorin Sarca’s picture

Status: Fixed » Closed (fixed)