Crawlable aStore prototype

Discussion in 'Amazon' started by autoreverse, Sep 2, 2006.

  1. #1
    I've been playing around with automatically embedding Amazon's code in an aStore so it can be crawled by search engines.

    AdBabel's aStore at http://www.adbabel.com/astore.php is the result so far.

    Amazon's code is pulled in with a small PHP script (found at http://adabael.com/amazon_astore_script.php).

    The code works fine but is a bit clunky and the cart frequently rejects items. I think cart problem is related to the id code that looks like xxx-xxxxxxx-xxxxxxx. This is always the same when I use <iframes> but it changes often using my script.

    I'd appreciate any feedback but especially from programming gurus and Amazon pros. Any ideas about how can I get rid of the jumpy loading and get the cart working properly would be greatly appreciated. :)
     
    autoreverse, Sep 2, 2006 IP
  2. autoreverse

    autoreverse Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    692.2 in reply to 692.1

    UPDATE: The crawlable aStore now loads smoothly now and it works PERFECTLY with <iframe> enabled browsers.

    CORRECT PATH TO SCRIPT: http://adbabel.com/amazon_astore_script.php. :eek:

    How it now works: Amazon's code is loaded twice, once into the <iframe> and then as HTML into the <iframe>'s alternate text.

    The only glitch ATM is the xxx-xxxxxxx-xxxxxxx formatted code number in the alternate HTML needs to be replaced by the associate's (the associate ID code xxxxx-20 is no problem). I'd appreciate help with a regular expression to replace xxx-xxxxxxx-xxxxxxx using PHP :)
     
    autoreverse, Sep 3, 2006 IP