|
|
|
|
Add this robust PHP based Amazon aStore search box to your site.
After searching with this script visitors land on your site's aStore page and remain on your site longer.
Being PHP based, this script will function even if your visitor's browser has JavaScript disabled.
This is a two part script.
The first part is the PHP script which writes the Amazon iframe code on your aStore page.
The second part is the HTML search box which can be placed on any page, anywhere.
Only one category can be searched due to the limitations of the aStore search function.
Part 1 - PHP Iframe Script
-
Copy & paste the code on the right into your aStore's PHP file or create a new file with the extension ".php" (e.g. "astore.php").
-
Replace "http://astore.amazon.com/adbabel-20" with your aStore's URL. Change ".com" to ".co.uk", ".fr", ".de", ".ca", ".jp" as needed.
-
Optionally change the width (asWidth) and other parameters to suit your site.
-
Upload & test. Your default aStore should appear in an iframe.
|
Click in this box to select the code.
|
Part 2 - Search Box
-
Copy & paste the code on the right into any HTML or PHP file.
-
Replace "http://www.SITE.COM/ASTORE.PHP" with the address of the aStore page on your site.
-
Replace "http://astore.amazon.com/adbabel-20" with your aStore's URL. Change ".com" to ".co.uk", ".fr", ".de", ".ca", ".jp" as needed.
Note that you can specify any valid Amazon tracking ID. The appropriate store will appear in the destination iframe.
-
Change "22" to your search category's node number. This is found in the URLs on your aStore's menu (look for "node=XX").
-
Optionally change "12" to your preferred search box width.
-
Optionally change "Search" to your preferred wording.
-
Test & upload.
-
Done!
|
Click in this box to select the code.
|
|
|
|
|
|
|
|