AmazonSimpleAdmin Documentation
Tags
Available BBCode tags for use in your wordpress posts are:
- [asa]ASIN[/asa]
- [asa_collection]collection_label[/asa_collection]
Templates
The [asa] and [asa_collection] tags provide the feature of declaring individual templates. Declare your template in the first opening tag after a separating space.
- [asa template_01]ASIN[/asa]
- [asa_collection template_01]collection_label[/asa_collection]
Templates are simple HTML-files located in the “tpl” folder of the amazonsimpleadmin plugin directory. They must have the extension “.htm”. For declaring a template inside a tag, use the filename without the extension.
There are several placeholders available for use inside the templates. Every placeholder contains certain information about the Amazon product. For testing simply make a copy of a template file delivered in the package.
List of Placeholders
- SmallImageUrl
- SmallImageWidth
- SmallImageHeight
- MediumImageUrl
- MediumImageWidth
- MediumImageHeight
- LargeImageUrl
- LargeImageWidth
- LargeImageHeight
- Label
- Manufacturer
- Publisher
- Title
- AmazonUrl
- TotalOffers
- LowestOfferPrice
- LowestOfferCurrency
- AmazonPrice
- AmazonCurrency
- AmazonAvailability
- AmazonLogoSmallUrl
- AmazonLogoLargeUrl
- DetailPageURL
- Platform
- ISBN
- EAN
- NumberOfPages
- ReleaseDate
- Binding
- Author
- Creator
- Edition
- AverageRating
- TotalReviews
- RatingStars
- Director
- Actors
- RunningTime
- Format
- Studio
- CustomRating (can be defined by [asa custom_rating=3.5]0316015849[/asa])
Collections
You can use the collections feature to assemble certain Amazon products. For example, your favorite new books of the last month or your favorite videogames, and so on. To use collections you first have to activate this feature in the AmazonSimpleAdmin admin panel, so that the database tables will only be installed if you really need them.
The usage is very simple. Create a new collection by choosing a label, like “my_fav_books” or “my_fav_games”. Then you can assign the Amazon products to the collections by inserting the ASIN numbers. Later you can browse your collections and delete products or update their timestamps.
Then you can show your collections to your readers by using the BBCode [asa_collection]collection_label[/asa_collection] where collection_label stands for the name you have choosen. The default template will be used for presentation if you did not declare your own like I explained above.
Additionally you can use the funtion “asa_collection” in your PHP scripts like in sidebar.php.
- string asa_collection ($label [, string [$type], string [$tpl]])Displays one or more collection items
label is mandatory and stands for the collection label
type is optional. “all” lists all collection items sorted by time of adding whereas “latest” only displays the latest added item. Default is “all”
tpl is optional. Here you can define your own template file. Default is “collection_sidebar_default” - string asa_item ($asin [, string [$tpl]])Displays one item defined by $asin
asin is mandatory and stands for the amazon ASIN
tpl is optional. Here you can define your own template file. Default is “sidebar_item”
With this feature it is possible to show only the latest added product of a collection. I use this feature on the sidebar of this site under the headline “Aktuell spiele ich am liebsten” (Currently I like to play most).
Questions?
Is anything missing in this documentation or something still not clear? Please send an e-mail to info@NOSPAM_ichdigital.de (remove the NOSPAM_) or use the comments.











[...] http://www.ichdigital.de/amazonsimpleadmin-documentation/ [...]
[...] http://www.ichdigital.de/amazonsimpleadmin-documentation/ [...]
Hallo,
ich würde gern einzelne Artikel (Bücher) direkt in die Seiten einbinden – also nicht im Post.
Dafür benötige ich den PHP-Code, habe aber leider keine Ahnung wie ich das realisieren soll.
In der Doku steht zwar etwas zu den Funktionen – aber wie der Code dann aussehen soll weiß ich dennoch nicht. Ich habe lediglich eine Collection angelegt (“Books”) und möchte auch nur das Standard-Template verwenden. Wie genau muß der Code dafür aussehen? Kann mir bitte jemand helfen?
Gruß, Frank