Hello,
Sorry the delay in updating the module, things have been pretty darn busy for me at the moment. I have pretty much finished the update to allow for the new Amazon signed requests. Just need to finish it off in the next few days.
Good to see some of you managed to patch it up or create your own solutions too. Feel free to develop or extend any of my code 😊
Cheers,
Chris
I have updated the module now. It will now properly sign the requests made to Amazon.
I have also added the option to set an associate tag for each locale so you will get paid properly when using multiple locales.
Download here: http://chrismacpherson.com/archives/14/
Let me know if you find any problems.
Cheers,
Chris
Hi Chris. 😊
Thank you for updating the module. I just installed it, but its objecting to the access key that I inserted, saying it has to be all uppercase and just letters and numbers. This appears to be true for the access key, but the secret access key is a longer string that mixes cases and includes some non-alphanumeric characters.
Also, I was wondering if the “-” already in each entry field should be kept?
Hello,
Sorry you seem to be having trouble. The ‘Access Key Id’ should consist of 20 characters and they should all be uppercase alphabetic (A-Z) or numeric (0-9). The ‘Secret Access Key’is 40 characters long and, as you mentioned, has all sorts of characters in there. The only validation the module does here is to check that the string is 40 characters long.
Also, I was wondering if the “-” already in each entry field should be kept?
No, they shouldn’t be kept, I think the problem you may be having is due to you not removing the ‘-’ dashes from the fields before entering your details.
Try removing those first and if you still have problems, let me know.
Hope that sorts it out for you 😊,
Chris
Yes, that was indeed the problem. Or rather, I tried removing it, but then it had already ended up losing the last letter in the keys. 😊
Thank you. 😊
Btw, looking at the various tags that can be used to display data, might it be possible to update these with some sort of prefix in the future? That way, its easier to pick them out when scanning through a page. 😊
I’ve setup a test page, to start migrating the templates currently using the older module to this one instead. But so far, I am having a bit of an issue. The module tags get rendered on the page, and no content seems to be pulled in.
Example page: http://www.hippoiathanatoi.com/Reviews/Test/2861/
The tags on the page:
{exp:weblog:entries weblog="{current_weblog}" limit="1" disable="pagination" parse="inwards"}
{cjm_amazon:item asin="{{current_weblog_id}_asin}" response_group="Medium" locale="{{current_weblog_id}_locale}"}
{date_heading}
<div class="EEEntryDate">{entry_date format="%F %d, %Y"}</div>
{/date_heading}
<div class="EEEntryTitle">
{if member_group == "1"}<a href="http://www.westeros.org/Scripts/ExpressionEngine/valyria/index.php?C=edit&M=edit_entry&weblog_id={weblog_id}&entry_id={entry_id}">{title}</a>{if:else}<a href="http://{DetailPageURL}">{title}</a>{/if} {if 7_rating != "Not Rated"}
<img src="http://www.hippoiathanatoi.com/Graphics/im_stars-{7_rating}.gif" alt="" />{/if}
<div class="Indent">{if {current_weblog_id}_part}Part {{current_weblog_id}_part} of {/if}{if {current_weblog_id}_series}{{current_weblog_id}_series}{/if}</div>
<div class="Indent">by {{current_weblog_id}_creator_first} {{current_weblog_id}_creator_last} {if {current_weblog_id}_aka}(aka {{current_weblog_id}_aka}){/if} {if {current_weblog_id}_co-creator}(with {{current_weblog_id}_co-creator}){/if}</div>
{if FormattedPrice != ""}<div class="Indent">Amazon Price: {FormattedPrice}.</div>{/if}
</div>
{if 7_rating != "Not Rated"}{if img_medium != ""}
<div class="Book"><a href="http://{DetailPageURL}">{MediumImageURL}</a></div>
{/if}{/if}
<div class="EEEntryBody">
{exp:acronym acronym_group_name="Special"}
{{current_weblog_id}_review}
{/exp:acronym}
{if {current_weblog_id}_links}
{{current_weblog_id}_links}
{/if}
<div class="EEEntryInfo">
Posted at {entry_date format="%H:%i"} CET by {author}
{categories backspace="4"}<a href="http://{path=">{category_name}</a> > {/categories}
</div>
</div>
{/exp:cjm_amazon:item}
Cool, glad it’s working for you now.
Btw, looking at the various tags that can be used to display data, might it be possible to update these with some sort of prefix in the future? That way, its easier to pick them out when scanning through a page.
That is a good idea. I think someone suggested something along those lines a while ago in this thread. I’ll have a play and maybe include it in the next release.
Cheers,
Chris
Hi,
Sorry I haven’t replied for a little while. I am extremely busy at the moment and haven’t had much time to look in to this much. I haven’t used the module in this way before and I think it may be a limitation of how EE works although I am not definite on that as I would expect to be able to do what you are trying. There may be a way to update the module so it does allow what you want, but after having a quick look just now I couldn’t see anything standing out. I dont have time just now to look in to this further but I’ll try when I’m not so busy.
Cheers,
Chris
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.