Community Documentation

Making custom store pages using Views

Last updated February 25, 2010. Created by rfay on July 19, 2009.
Log in to edit this page.

The Amazon module offers excellent views support, and with Amazon Store installed, the links all go to the Amazon Store product detail page.

Here's how to use Views and CCK with Amazon Store:

  • Enable Amazon Store, Amazon, and the "Amazon Field" module
  • Create a content type and add Amazon Field to it
  • Add a couple of nodes of the content type
  • Create a view of type node
    • Filter on node type = <your CCK type>
    • Add a relationship on <your CCK field>. Make sure to check "require this relationship"
    • Add whatever fields you want.

Note that Amazon module generally gets the links correct to the Amazon Store product page on the "Content" widget, but not on the DetailPageURL, etc. But you can use a custom text fields to do whatever you want with links.

Here is a sample CCK export and a Sample View to get you started.

One caveat: Creating a store this way has a bit of risk. Amazon may discontinue your item, and your view will then link to an error page for the Amazon Store item detail page.

Comments

The option "store amazon data

The option "store amazon data locally" was removed. See http://drupal.org/node/622418

Edited page to reflect that

I edited the page to reflect that.

Note that you should be able to edit this page yourself. Community participation is welcomed and encouraged!

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Site users
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.