WordPress.org

Ready to get started?Download WordPress

Forums

Amazon Link
[resolved] Get product by his name (4 posts)

  1. cartouche699
    Member
    Posted 1 year ago #

    Hello,

    Is it possible with this plugin to get amazon product by his name not by his AMAZONPRODUCT .

    I would like to add an amazon link to my website wich is an ad mobile site.

    when a customer looks to an iphone on my website i would like to have a link to iphone amazon, same for each mobile.

    thank you

    http://wordpress.org/extend/plugins/amazon-link/

  2. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You can't uniquely link to a product by name or get the plugin to populate a template based on a search result. However you can manually populate the product items and then link to amazon using 'search links'.

    I would do this by:

    • In the amazon link Settings Page copying the template you want to use and give it a new name 'named links'
    • Change all the %LINK_OPEN% strings in the template to %SLINK_OPEN%, and UPDATE the template.
    • Make sure the 'Default Search String' option contains something like %TITLE%

    Now create a shortcode along the lines of:

    [amazon template=named links&title=iphone&manufacturer=apple&thumb=http://ecx.images-amazon.com/images/I/41weDFA6ZAL._SL75_.jpg.jpg]

    This should now contain links like this:

    http://www.amazon.co.uk/mn/search/?_encoding=UTF8&linkCode=ur2&camp=1634&creative=19450&tag=livpauls-21&field-keywords=iphone

    It would be quiet slow to get the plugin to automatically search for an item then retrieve the details of the top result to populate the link/template details.

    Hope that helps,

    Paul

  3. cartouche699
    Member
    Posted 1 year ago #

    Thank you very much i will try this.

  4. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    If you don't mind delving into the PHP code in your theme files you might be able to do something better along the lines of what is posted here:

    http://wordpress.org/support/topic/implementing-live-search-product-link#post-3515849

    But I still think it might slow your page load times too much.

    Paul

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic