Hi,

I have fresh install of amazon module and amazon store. Both of them are working and the example view you provided is working aswell. I noticed that when creating the "amazon_example" view fields, I had an option to either not "link" the product, or link to amazon store or link to the node.

Is there a way for a views field to link it directly to drupal's amazon store instead of amazon's store, if not, is there a workaround you would suggest?

Thank You,

BCrawl

CommentFileSizeAuthor
#3 cck.txt2.58 KBbcrawl
#3 view.txt7.98 KBbcrawl

Comments

bcrawl’s picture

I meant to include that, within the view, the product image link takes me to my store but title link takes me to my post. And I would like to know if its possible to direct the title link to my store aswell.

Thanks.

rfay’s picture

Status: Active » Fixed

You can construct any kind of link you want in views by just

1. Including the ASIN as a field (hide it)
2. Say "output this field as a link" and then use [asin] as part of the link. Like /amazon_store/item/[asin].

In the example, the bottom field is an example of link construction.

Only one thing is confusing me... I thought I had already built the capability to choose to link to the Amazon store page right into views. Anyway, it's easy enough to do with this technique.

-Randy

bcrawl’s picture

StatusFileSize
new7.98 KB
new2.58 KB

Hi,

I tried your suggestion and I am still not able to get the link to go to store directly. I tried the -> output this field as a link -> amazon_store/item/[asin]

I have attached my cck and view along with this post.

When I include amazon product image in my view, I get an option; "A link to the product's Amazon Store page (Amazon Store Module)".

But when I include the amazon title, the only options are no link, link to amazon store page [amazons] and node link.

I apologize but I remember the last time I was messing with the module, it did give me the option like you mentioned.....I have spent some time and I cant figure out. :(

rfay’s picture

Status: Fixed » Active

This is really a views question, but I will take a look at your cck/view if you do in fact attach it (you forgot it :-)

rfay’s picture

Status: Active » Postponed (maintainer needs more info)
joe_pixelrow’s picture

In order to make the image a link to my store page I replaced the original text in the Global:Custom text field:

Example link/image: <a href="[detailpageurl]"><img src="[product_image]"></a>

with this

<a href="/amazon_store/item/[asin]"><img src="[product_image]"></a>

and now the images link to my store page for the product.

rfay’s picture

Status: Postponed (maintainer needs more info) » Fixed

Congratulations, and thanks for sharing it with us! If you would be willing to share your cck type and view for others to learn from, please export them and attach them to this issue.

It would be much appreciated if you could add this to http://drupal.org/node/524296 as well.

Thanks,
-Randy

Status: Fixed » Closed (fixed)

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