Viewing 5 replies - 1 through 5 (of 5 total)
  • TalAter,
    The search shortcode still needs to be documented, as it was added as a last minute item to the the plugin for the last update.

    In its simplest usage, it works almost identically like the amazon-elements shortcode, but with a few minor differences, The search code does not use an ASIN, but keywords, and you need to provide a few more items:

    1. keywords – required. Space or comma separated keywords to search.
    2. search_index – what search index to use (i.e., All, Jewelry, etc. – or any valid index for your locale). Default is All. See http://docs.aws.amazon.com/AWSECommerceService/latest/DG/SearchIndices.html for more info.
    3. item_page – default is 1. But if you want to return results for additional pages, you can specify the page number. There are 10 items per page in a normal request. I believe the highest page number request is 99 (so 1-99 are valid).

    Otherwise, everything else is like the amazon-elements shortcode – fields, labels, etc., except the shortcode value itself, which is amazon-product-search.

    Here is a sample usage:

    <div>Page 1:</div>
    [amazon-product-search keywords="meatball" search_index="All" fields="title,new-price,sm-image,button" item_page="1"]
    <div>Page 2:</div>
    [amazon-product-search keywords="meatball" search_index="All" fields="title,new-price,sm-image,button" item_page="2"]

    Hope this helps.
    Warm regards,
    Don

    Thread Starter TalAter

    (@talater)

    Thanks Don,

    A couple of issues.

    1. I couldn’t get results for any search index except all (I tried Baby).

    2. Is there a way to limit how many results are returned? Change the way results are returned?

    An ideal solution would be for me to be able to show the top 3 most popular products for a keyword in a search index. If I could also limit it to only products with at least 4 stars, that would be awesome.

    Thank you.

    What would be the short code to show the searches of, for example: the hard disks of the section of reconditioned products?

    The search shortcode currently only uses the condition of ALL so you cannot actually change that to Refurbished at the moment (this will be changed in the future).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Search Shortcode instructions missing’ is closed to new replies.