WordPress.org

Support

Support » Plugins and Hacks » Amazon Link » [Resolved] Get product by his name

[Resolved] Get product by his name

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

    @paulstuttard

    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

    Thank you very much i will try this.

    Plugin Author paulstuttard

    @paulstuttard

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Get product by his name’ is closed to new replies.
Skip to toolbar