.

 

Associate-O-Matic



v4.3.0
Supports US, UK, CA, DE & FR
 
 
Associate-O-Matic v4 Documentation   Last Updated: 2009-12-07
 
· Amazon
· Boxes
· CSS
· Cache
· Categories
· Colors
· Currency
· Custom Boxes
· Custom Pages
· Display
· Errors
· Filters
· Home Page
· Images
· Layout
· Merchant
· Meta Descriptions
· Meta Keywords
· Reports
· RSS
· SEO
· Search
· Shopping Cart
· Site
· Subcategories
· Tabs
· Text
· Titles
 
API  (Application Programming Interface)
 

The Associate-O-Matic API allows you to access dynamic page information for use in your own pages, scripts and applications. It does require basic PHP programming.

This dynamic information is found in the PHP array called: $page

Depending on where you're at in your store the $page array will contain different information that you can make use of.

Here are the main places where you can make use of the $page array:

  • Home Page (Format: HTML/PHP File)
  • Custom Boxes (Box Type: HTML/PHP File)
  • Custom Pages (Page Type: HTML/PHP File)
  • Site Header (Embedded PHP)
  • Site Footer (Embedded PHP)

To use the $page array you would reference it inside PHP tags inside an external PHP script
or HTML file. For example using the below you can get a dump of the array elements:




For example, on a Category page the $page array would contain information such as...

Array
(
    [c] => 1
    [x] => Books
    [s] => sr
    [Title] => Your Bookstore: Books
    [MetaDescription] => Books - Your Bookstore
    [MetaKeywords] => Books, Your Bookstore
    [Breadcrumbs] =>  Home » Books
    [Name] => Books
    [Categories] => Array
        (
            [1] => Array
                (
                    [Id] => 1
                    [Mode] => Books
                    [Name] => Books
                    [Node] => 1000
                    [Keyword] => %20
                    [Sub] => On
                )
        )
    [Location] => L
)

On an item page the $page array would contain information such as...

Array
(
    [c] => 1
    [n] => 1000
    [i] => 0545010225
    [x] => Harry_Potter_and_the_Deathly_Hallows_Book_7
    [ISBN] => 0545010225
    [EAN] => 9780545010221
    [Manufacturer] => Arthur A. Levine Books
    [Publisher] => Arthur A. Levine Books
    [Studio] => Arthur A. Levine Books
    [Label] => Arthur A. Levine Books
    [Name] => Harry Potter and the Deathly Hallows (Book 7)
    [Breadcrumbs] =>  Home» Books » Harry Potter and the Deathly Hallows (Book 7)
    [Title] => ambado.de: Books: Harry Potter and the Deathly Hallows (Book 7)
    [MetaDescription] => Harry Potter and the Deathly Hallows (Book 7)
    [MetaKeywords] => Harry Potter and the Deathly Hallows (Book 7)
    [Categories] => Array
        (
            [1] => Array
                (
                    [Id] => 1
                    [Mode] => Books
                    [Name] => Books
                    [Node] => 1000
                    [Keyword] => %20
                    [Sub] => On
                )
        )

    [Location] => L
)



To reference a specific piece of information in the $page array you would use PHP code such as


To reference a specific piece of information in the $page array you would use PHP code such as the following (e.g. displays the Title of the Book):




Here's another example where the ISBN will be displayed:




If you have ideas or suggestions on how we can improve the API please contact us.


 
 
Featured in Inc. Magazine
Inc. Magazine
Featured Cool Site in AWS Blog
Amazon Web Services Blog
Featured in Web User Magazine
Web-User Magazine
CNET Download.com
Rate Associate-O-Matic
Rate us @ PHP Resource Index
 
Rate us @ Hotscripts.com
  
Gyrofly, Inc. © 2004-2010 Gyrofly, Inc.  All rights reserved.
All logos, service marks and trademarks belong to their respective owners.