• Resolved deesebs

    (@deesebs)


    Hello,
    First off, thank you for all the work on this incredible plugin!

    I am having trouble getting the media library feature to work.

    Here is my setup and an example:
    1. Using media library I upload this file: b006i2h084.jpg
    2. I setup and use this template:
    %LINK_OPEN%<img src="%IMAGE%" alt="Product Picture" class="pulse-grow">%LINK_CLOSE%
    [amazon asin=b006i2h084&template=mytemplate
    3. I go to Amazon Link settings and check “Use Media Library”
    4. I view the page, and instead of b006i2h084.jpg I get the Amazon API response’s image url instead

    Other things to note:
    – I have Amazon Link Extra – Images installed
    – I use prefetch data and live data and I have properly authenticated amazon id’s for pulling things like the product title in other templates

    Any idea what I am doing wrong?

    Thank you!

    https://wordpress.org/plugins/amazon-link/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    Thanks for trying the plugin, the problem I think is the way you uploaded the image.

    Currently the item in the media library has to be tagged with some metadata which contains the ASIN of the item, this is only done if the image is uploaded using the plugins own search function.

    To do this:

    1. You need your own Amazon Advertising API AWS keys, put them in the plugin settings.
    2. Go to the Post/Page edit screen and scroll down to the ‘Insert Amazon Link’ box.
    3. Type in the items Title and/or Author select the appropriate product index then hit search
    4. A list of products should be displayed, each with buttons to:
    • ‘+’ add the ASIN to the list of ASINs
    • ‘Insert’ the product shortcode for the item in the post
    • ‘Upload’ the image shown to the Media Library
    • This last option (Upload) will insert the Amazon image into your media library with the special MetaData needed.
    • ————–

      I could add an option to the media library so that you can do this yourself if you want to use your own images?

      An alternative approach is you can specify the image location in the shortcode using the ‘image’ or ‘thumb’ argument. To do this:

    1. In the Post/Page edit screen open up the standard WordPress ‘Add Media’ window (button at the top of the page).
    2. Select the media item you want to use as the shortcode image, in the ATTACHMENT DISPLAY SETTINGS section bottom right, select Link To: Media File, then highlight and copy the URL in the box below.
    3. Close the Insert Media Window, and in your shortcode add the argument ‘&image=’ to the end and paste the URL

    Your shortcode should now be something like:

    [amazon asin=b006i2h084&template=mytemplate&image=.../wp-content/uploads/2014/07/b006i2h084.jpg]

    Sounds harder than it really is!

    Good luck with your site,

    Paul

    Thread Starter deesebs

    (@deesebs)

    Thank you for such a quick reply.
    Now I understand how the feature works, I see no reason to change it. I can just modify how I am doing this to fit my needs.
    I’m going to try something like this in the template:
    <img src=”wp-content/uploads/%ASIN%.jpg”>

    This way I can use my library of jpgs that are already named after each asin.

    Thank you for the clarification, I am all ready to go.

    Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    Yep that should!

    Paul

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Use Media Library’ is closed to new replies.