Quick installation instructions.
1. Download the module and unzip.
2. In order to include your associate id, you must edit the eez_amazon/mod.eez_amazon.php file. Note- every locality requires its own id. If you don’t have an associate id for a given country, leave the default in there. If you don’t have an associate id and don’t care, then leave it alone:
var $AssociateID = array('uk' => 'ws', 'us' => 'mediacow-20', 'jp' => 'ws', 'de' => 'ws');
3. Place the eez_amazon folder in the system/modules folder.
4. Place the lang.eez_amazon.php file in the system/lang folder.
5. Place the amazon_cache folder in the system/cache folder and CHMOD to 777. Note- the folder itself is empty.
6. Go to ‘Modules’ and click on ‘Install’.
If you want to have a pop-up search box added to your EE publish page that allows for a quick search of amazon, you’ll also need to:
1. Place the ext.amazon_pop.php file in the system/extensions folder.
2. Go to ‘Admin- Utilities- Extension Manager’ and enable the plugin. If extensions have not already been enabled, you’ll need to enable them first.
3. The ‘pop-up’ search can be used to automatically fill two custom fields- it provides the following data: asin (an amazon unique id for the product), a ‘template’ based data overview. You’ll need to configure the module so that it knows which custom field(s) you want each of those bits of information going into. If you don’t already have a field, create the custom field first. I’d suggest setting the format to ‘none’.
4. Know where you want to add the amazon info? Then go to ‘Modules’ and go in and map each bit of info to the field you want it placed in. You don’t have to use both bits of info if you don’t want to- just map the ones you do. See first attached image- it’s idiot proof. For each field group, you can select a custom field for the amazon info to be inserted into. None of the fields are required.
5. Er- fill out the template with however you want the product info - the variables are there. Use whatever (x)html you want. See second image attachment.
6. Want your associate id in your pop-up links? Then you’ll have to crack open mcp.eez_amazon.com and set your locale and id:
var $AssociateID = 'mediacow-20';
var $locale = 'us'; // note- can use us, uk, jp, de - but you have to pick one.
You’re now up and ready to make use of the module. Happy hunting!
NOTE: Dynamically generated links will use my amazon associate id 10% of the time. Well, not right now, but eventually. Anyway, word of warning on that, in case it matters. It’s subject to debate, but for now, that’s how it is. Debate will await it actually being out of beta.
ETA- 7-19 new zip fixes mysql bug in the CP
ETA - 8-23 new version- added templating for the ‘pop-up’ data insert; may or may not have added access to jp, de, and uk amazon sites.
