Results 1 to 4 of 4
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    41
    What is the coding to use to have the similar product results show into an existing webpage?

    Thanks

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    If you haven't already done so, upgrade your amazon-format directory to the latest version which can be found at http://www.c3scripts.com/amazon/release/ in the file amazon-format-######.zip (###### = 030314 as of today).

    Look in amazon-format/details6.html and search for "similar products". You'll find the following <script> tag that causes the display of similar products on a product's details page:

    <script SRC="{cfg.script.url}?script&asinsearch={details.similarProducts}&grid=c:3,p:990000,at&nocredit&lite">

    The formatting code {details.similarProducts} is a list of ASIN's of "similar products" for the currently displayed product. So the above script tag causes an ASIN search to be done for the specified "similar products" and the results are shown in a 3-column grid.

    As an example of what "Similar Products" look like on a product details page, see:
    http://www.bime.com/cgi-bin/amazon.p...rch=B00005RGNI

    Note: To cause amazon-format/details6.html to be used, you must edit amazon.ini and set: asinsearch.format detail6

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    41
    "To cause amazon-format/details6.html to be used, you must edit amazon.ini and set: asinsearch.format detail6"

    It is set this way and it produces the results.
    The script tag doesn't produce the results until there is a request.

    What I wanted to know what how do I place this script tag, making a request for a particular asin#, into an existing webpage.

    Placing this <script SRC="{cfg.script.url}?script&asinsearch={details.similarProducts}&grid=c:3,p:990000,at&nocredit&lite"> inside of an exisiting webpage produces nothing without the particular request.

    Thanks,

  4. #4
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    To show products that are similar to a particular product (that is, similar according to Amazon.com), use the similaritysearch= search type instead.

    For example to show items similar to Laura Pausini's "Surrender" CD http://www.bime.com/cgi-bin/amazon.p...rch=B00006LHYC in your existing webpage use something like the following:

    <script SRC="/cgi-bin/amazon.pl?script&similaritysearch=B00006LHYC&grid=c:3,p:990000,at&nocredit&lite">

    (Note: as you are viewing this posting, the above tag may show up on your screen as two lines; type it into your HTML as one continuous line without any spaces)

    If you want to limit the number of items, then add something like the following to the end of the SRC URL: &pagesize=9 (this would show 9 items in total; thus with c:3 this would show 3 rows). Using a pagesize URL parameter saves processing resources if its value is less than the value of the pagesize configuration variable in amazon.ini

    FYI, as with other search types, similaritysearch can be a link:
    http://www.bime.com/cgi-bin/amazon.p...rch=B00006LHYC

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Google showing their own product search in 'natural search' results?
    By simcat in forum Search Engine Optimization
    Replies: 6
    Last Post: May 15th, 2007, 04:25 PM
  2. Similar results missing
    By diverjones in forum Cusimano.com Scripts
    Replies: 2
    Last Post: June 28th, 2003, 03:53 PM
  3. new service/ similar to upromise but better!
    By jc101 in forum Virtual Family and Off-Topic
    Replies: 4
    Last Post: April 11th, 2003, 10:45 AM
  4. Upromise (and similar programs)
    By josephmonuit in forum Suspicious Activity!
    Replies: 7
    Last Post: April 9th, 2003, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •