Since a few days Christmas shopping, the Internet started in. And I want you here few times a simple way to show how you can earn a few bucks with Amazon.
Amazon Widgets
Amazon even offers webmasters the opportunity to widgets into your own website to include. But unfortunately you can not automate anything. Because the products must be determined for each widget itself.
Therefore I will not deal so well on.
Amazon aStore
Another simple way is a so-called aStore can customize one from Amazon the very simple on their own needs. An example of this is their example in my Nintendo Wii Shop where you you the Nintendo Wii buy can
. But since the aStore unfortunately can not embed directly into your own website but only one instance by iFrame and here again requires no programming skills also interested us first not here.
Amazon RSS
With Amazon RSS feed, we can automate several RSS feeds integrated into our site for a programming effort of just 10 minutes
. How to integrate Wordpress blog system might look like in one you can see below on wiirtuell.de Wii Bestsellers (Top 10 Wii games) . The first thing you need but an Amazon Associate account , otherwise you deserve nothing
.
So, if you now have an Amazon affiliate account then you can start at last.
First you surf once a category of Amazon to your blog theme fits. I myself will explain here in this example, all in one hand / Wii various categories.
So, if ye have now decided on a category then your URL should look like this
/ videogames / 195017011 / http://www.amazon.de/ gp / bestsellers / video games / 195017011 /
If your URL contains additional parameters such as ref = pd_ts_vg_nav you can safely delete it.
Now we shall replace the first gp by rss in the URL and you should now the Amazon Rss feed the selected category to see.
Next we add the Partner-Channel-ID tag of the URL.
Your URL should look like this.
/ videogames / 195017011 / ?tag=xxx-21 http://www.amazon.de/ rss / bestsellers / video games / 195017011 /? tag = xxx-21
xxx-21 you have through your Partner channel Id replace natural.
Next, we create our first one we save Testpage amazonrss.php under the name. In this file we are writing purely following.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <? $rss_feed = 'http://www.amazon.de/rss/bestsellers/videogames/195017011/?tag=xxx-21' ; //Alle Wii Spiele $xml_file = simplexml_load_file ( $rss_feed ) ; $xml_items = $xml_file -> channel -> item ; foreach ( $xml_items AS $item ) { $string .= '<p>' . '<b>' . $item -> title . '</b>' . $item -> description . '</p><div class="clear"> </div>' ; } echo $string ?> |
Diese Datei rufen wir nun mal auf um uns das Resultat zu betrachten. Solltet ihr Lokal keinen Apache mit PHP5 installiert haben dann kopiert die Datei auf euer Webspace und ruft sie darüber auf. Wenn ihr nun eine komische Fehlermeldung bekommt dann habt ihr wahrscheinlich simpleXML noch nicht aktiviert bzw. installiert.
Solltet ihr aber den Amazonfeed bei euch sehen dann können wir zu Schritt 2 übergehen.
Und zwar gehen wir nun in unser Wordpress-Themes-Ordner und kopieren uns dort einmal die page.php und nennen sie amazon-rss.php sollte in eurer Themen-Ordner noch keine page.php enthalten sein so macht eine Kopie von eurer index.php.
Als nächstes öffnen wir die neue amazon-rss.php Page/Seite
und schreiben hier folgendes direkt nach <?php rein.
1 2 3 | /*
Template Name: top10Amazon
*/ |
Durch diesen Eintrag können wir nun in Wordpress die Page direkt ansprechen wenn wir dann gleich eine neue Seite erstellen werden.
Als nächstes suchen wir folgenden Eintrag in unserer amazon-rss.php Page
1 | <?php the_content ( __ ( '(more...)' ) ) ; ?> |
Diesen Einzeiler ersetzen wir nun durch unseren Testcode den wir ja zuerst geschrieben hatten.
Wenn dies nun alles erledigt ist könnt ihr die Datei abspeichern und uploaden.
Wenn ihr die Datei hochgeladen habt dann logt euch doch jetzt mal in euer Admin-Menü bei euren Wordpress-Blog ein und klickt auf “Seite erstellen”. Nun solltet ihr auf der rechten Seite in der Attribute -Box den Menüpunkt Templates sehen. Und dort sollte dann auch euer Template-Name top10Amazon zu finden sein. Den wählt ihr natürlich aus und speichert eure Page mit einen sinnlosen äh sinnigen Titel ab. Den Contentpart könnt ihr euch hier sparen da wir den ja entfernt haben
. Falls ihr noch etwas dazudichten wollt dann fügt die Funktion the_content(__(’(more…)’)); wieder hinzu.
So das war es dann auch eigentlich schon, denn nun sollte im Frontend eine neue Page sichtbar sein die im Blogdesign erstrahlt und zusätzlich noch die Top 10 Amazon Produkte zu der Kategorie X enthält.
Wie immer hoffe ich das es verständlich war, falls nicht dann nutzt bitte die Kommentarfunktion.










































