Since we're getting this data back from Amazon, would be nice to be able to display it in a panel.

  [EditorialReviews] => SimpleXMLElement Object
        (
            [EditorialReview] => SimpleXMLElement Object
                (
                    [Source] => Product Description
                    [Content] => {editorial_review_content snipped...}
                    [IsLinkSuppressed] => 0
                )

        )

Comments

rfay’s picture

Weird that it's not there. Long, long time since I've visited that.

mcurry’s picture

OK. I don't see it, in the 6.x branch. Possible that it was there and got 'lost' at some point? I'm new to ctools/panels/widgets so if you've got a copy lying around... please let me know :D

mcurry’s picture

Hmm, it appears that the only reference to the EditorialReviews field in the ctools dir is EditorialReviews->EditoralReview[0], rendered in the "item description" widget.

But it looks like that's the "Item Description" response from Amazon, that's not an editorial review that I'm looking for.

mcurry’s picture

For example, a book such as No Country for Old Men has a bunch of editorial reviews.

But amazon_store module's Debug Info panel shows:

    [EditorialReviews] => SimpleXMLElement Object
        (
            [EditorialReview] => SimpleXMLElement Object
                (
                    [Source] => Product Description
                    [Content] => In No Country for Old Men, Cormac McCarthy simultaneously strips down the American crime novel and broadens its concerns to encompass themes as ancient as the Bible and as bloodily contemporary as this morning’s headlines.
                    [IsLinkSuppressed] => 0
                )

        )

So we're not even getting the full list of editorial reviews...

Investigating further... any advice is appreciated.

mcurry’s picture

Of course, I realize that Amazon may not provide the full list of reviews (see, I told ya that I was something of an AWS newbie... :D )

rfay’s picture

The one thing to be careful of:

1. Normally Amazon US has a good review in the first review.
2. Often other locales don't have anything at all.

So you can't assume that there will be any reviews.

mcurry’s picture

Status: Active » Closed (works as designed)

Hrm... looking more and more like Amazon won't provide the other editorial review data in the API. See EditorialReview Response Group:

For each item in the response, the EditorialReview response group returns Amazon's review of the item, which, on the Detail page, is labeled the Product Description.

Note
Copyrighted editorial reviews are not returned. For this reason, the reviews returned may be different than those returned by www.amazon.com.

Feh... That explains it then.

mcurry’s picture

@rfay #6:

The one thing to be careful of:

1. Normally Amazon US has a good review in the first review.
2. Often other locales don't have anything at all.

So you can't assume that there will be any reviews.

Yeah, I understood that, but for some strange reason I was hoping to be able to show editorial reviews for books and such where available. It looks like most editorial reviews won't be available, see my previous comment for Amazon's API docs. Non-copyrighted editorial reviews may be available, but I doubt there are very many of those.

I'll keep this one open just in case I find some product ASINS that return something other than the default EditorialReview to test against.

mcurry’s picture

Title: Add "Editorial Review" ctools_plugins content type for Panels/Pages Widget support » Add "Editorial Review" ctools_plugins content type for Panels/Pages Widget support (need example ASINS)
Assigned: mcurry » Unassigned
Priority: Normal » Minor
Status: Closed (works as designed) » Needs work

Update status to reflect need to find product ASINS that return more than one entry in the EditorialReviews->EditorialReview[] array. See #6.