Making custom store pages using Views
Last modified: July 19, 2009 - 14:54
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
- Make sure that Amazon module is configured to "store amazon data locally" on the Storage tab of the Amazon API settings page, admin/settings/amazon/storage.
- 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.
