How to add Buy Button in Wp Robot Amazon module

Discussion in 'Blogging' started by Irwanbee, Apr 28, 2010.

  1. #1
    Many of my friend (and of course some of this website loyal reader) ask me how to add buy button in Wp Robot Amazon module.

    To change the original affiliate link of wp robot amazon module, you can do it with two different way (you can choose which one is easier for you).

    1. You can change it via wp robot theme post option template, or
    2. You can change the amazon.php file inside your modules folder.

    Then, lets the tutorial begin,. :p

    Add buy button with modifying wp robot amazon module :

    * Open your amazon.php file inside modules folder
    * Find this script : $affl = ‘<a href=”‘ . $url . ‘” title=”‘.$title.’” rel=”nofollow”><b>’.$title.’</b></a>’;
    * Change all of that script above with this : $affl = ‘<a href=”‘ . $url . ‘” title=”‘.$title.’” rel=”nofollow” target=”_blank”><img src=”http://irwanbee.googlepages.com/buybutton.png” alt=”‘.$title.’” /></a>’;

    The idea is change the ‘.$title.’ that use to call amazon affiliate link product with an image (see the red colored script). On that script above, i also add target=”_blank” script (blue colored script) to make the product link that clicked will opened in new windows, so your visitor will not leaving your site.
     
    Last edited: Apr 28, 2010
    Irwanbee, Apr 28, 2010 IP
  2. BlastFree

    BlastFree Well-Known Member

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Irwanbee,

    Super tutorial, I'll have to try it sometime, do visitors convert better with a "buy button"?

    -BlastFree
     
    BlastFree, Apr 29, 2010 IP
  3. Irwanbee

    Irwanbee Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    i dunno bro,..
    because i always use buy button,..
    i still not analyze it.

    maybe its your time to analyze it,.. and share to the other about this
     
    Irwanbee, May 9, 2010 IP