How to build an aStore
Amazon now lets you use a simple javascript to add what it calls an aStore on you website. Using this, you can shop on Amazon without ever leaving your site. A few lines of code, and soon you'll be rolling in the mad blog money, as any purchase made in the aStore gives you a cut of the sale.
Here's how you build it:
1. Become an Amazon.com Affiliate.
2. Put up a static page like the Google AdSense for Search page I showed a while back.
3. Build the aStore to your desiring, and get the code from your affiliate page.
4. Create a custom template like the one below. You'll have to adapt the code to fit your site, as mine's built for the K2 template in WordPress, but putting up a page with nothing will work out as well.
<?php /* Template Name: aStore */ ?> <?php get_header(); ?> <div class="entry-content"> <div style="background:black;margin-left:-25px;"> <iframe src="http://astore.amazon.com/macstansburyc-20" width="100%" height="4000" frameborder="0" scrolling="no"> </iframe></div> </div> <?php get_footer(); ?>
It'll give you a new template for the page, and after you save the change to the page, your aStore should work. You can see my evil at work at The MacStansbury.com aStore. I had to add some goofiness to the code because of how the aStore code is hard-coded to be 800 pixels wide, and K2 is 780 pixels wide. Thus, my hackery. Your milage may vary.
Now sit back and wait for the piles of cash to flow in.
status: published
lastmod: '2006-10-01T07:16:05.000Z'
author: John Stansbury
cms: wordpress
custom:
podPressPostSpecific: 'a:6:{s:15:"itunes:subtitle";s:15:"##PostExcerpt##";s:14:"itunes:summary";s:15:"##PostExcerpt##";s:15:"itunes:keywords";s:17:"##WordPressCats##";s:13:"itunes:author";s:10:"##Global##";s:15:"itunes:explicit";s:7:"Default";s:12:"itunes:block";s:7:"Default";}'
_utw_tags_0: 'a:4:{i:0;O:8:"stdClass":1:{s:3:"tag";s:6:"coding";}i:1;O:8:"stdClass":1:{s:3:"tag";s:5:"howto";}i:2;O:8:"stdClass":1:{s:3:"tag";s:2:"k2";}i:3;O:8:"stdClass":1:{s:3:"tag";s:8:"template";}}'
similarterms: astore page code template amazon build work pixels back iframe affiliate site wide wait http macstansburyc- width piles height cash