About his listing: https://www.drupal.org/node/3266781

The link to Amazon isn't working, someone changed it. Can you please fix it?

Working URL: https://www.amazon.com/Digital-Marketing-Drupal-ultimate-marketing/dp/18...

Comments

introfini created an issue. See original summary.

avpaderno’s picture

There isn't a field for the Amazon purchase link. The only fields are for the ISBN-13 code and the ISBN-10 (or Amazon ID, ASIN) code; the latter is used to build the Amazon purchase links.

It's not possible to edit what shown for the Order from Amazon.com link (http://www.amazon.com/dp/%20180107189/?tag=drupal0a-20), which is probably output from custom code.

avpaderno’s picture

Project: Drupal.org content » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: Books listing » Code
Category: Task » Bug report

I see that the feature implementing the content type for book listing has been changed 11 months ago. I cannot say that caused a change in how the Amazon purchase links are built, though.

Looking at the ISBN codes entered for the book, I noticed the ISBN-13 code is a 10-digit code, while the ISBN-10 code is a 9-digit code (and started with a space I removed). It could be that is what causes the wrong Amazon purchase link to be shown. (The link returns a 404 error.)

avpaderno’s picture

Actually, https://www.amazon.com/dp/1801071896?tag=drupal0a-20 and https://www.amazon.com/dp/1801071896 are correct links. http://www.amazon.com/dp/180107189/?tag=drupal0a-20, shown in https://www.drupal.org/node/3266781 contains a slash between the ISBN-10 code and ?tag=drupal0a-20.

introfini’s picture

Status: Active » Fixed

Somehow the ISBNs were wrong. I've corrected them, and it's working now.

Thanh you very much!

avpaderno’s picture

Project: Drupal.org customizations » Drupal.org content
Version: 7.x-3.x-dev »
Component: Code » Books listing

No bug in custom code, then. (I apologize for having moved the issue to the other issue queue.)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.