Difference between revisions of "Using a custom field for Amazon affiliate links"

From JReviews Documentation
Jump to: navigation, search
(Created page with "You can create a Text custom field to submit Amazon ASIN numbers and modify the field's output format to display the field as affiliate link instead of the default output (ASIN...")
 
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
You can create a Text custom field to submit Amazon ASIN numbers and  modify the field's output format to display the field as affiliate link  instead of the default output (ASIN number).
+
To display a "Buy from Amazon" affiliate link or button in your listings, you need to create a custom field (field type must be "text") that will store the Amazon ASIN number.
  
ASIN is a unique identification number assigned by Amazon. Example: B001U3Y8PO
+
ASIN is a unique identification number assigned by Amazon. Example: B001U3Y8PO<br />
  
To display the affiliate link instead of the ASIN number on your site, first replace the field's default output format with a certain affiliate  link.
+
To display the affiliate link instead of the ASIN or ISBN number in listing details, you will need to replace the field's default '''Output Format''' (under Advanced Options):
  
<pre><a  href="http://www.amazon.com/gp/product/B001U3Y8PO?ie=UTF8&tag=AFFILIATECODE&linkCode=as2&camp=1789&creative=9325&creativeASIN=B001U3Y8PO">Buy  From Amazon</a></pre>
+
[[File:amazon-affiliate.png]]
  
Next, replace ASIN numbers with {FIELDTEXT} tag:
+
Replace the default '''{FIELDTEXT}''' with this:
  
<pre><a   href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATECODE&linkCode=as2&camp=1789&creative=9325&creativeASIN={FIELDTEXT}">Buy From Amazon</a></pre>
+
<pre><a href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATEID&creativeASIN={FIELDTEXT}">Buy From Amazon</a></pre>
  
Now this field will be outputted as a link.
+
Then this field will be displayed as a "Buy From Amazon" link.
 +
 
 +
Replace AFFILIATEID with your affiliate ID that Amazon generated in your account.
 +
 
 +
If you want to display Image button instead of text link, use this:
 +
<pre><a href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATEID&creativeASIN={FIELDTEXT}"><img src="images/amazon.gif" /></a></pre>
 +
 
 +
You should upload the amazon.gif image into the Joomla's "images" folder in the root.
 +
 
 +
You can use this image:<br />
 +
[[File:Amazon.gif]]
  
  

Latest revision as of 08:48, 28 February 2014

To display a "Buy from Amazon" affiliate link or button in your listings, you need to create a custom field (field type must be "text") that will store the Amazon ASIN number.

ASIN is a unique identification number assigned by Amazon. Example: B001U3Y8PO

To display the affiliate link instead of the ASIN or ISBN number in listing details, you will need to replace the field's default Output Format (under Advanced Options):

Amazon-affiliate.png

Replace the default {FIELDTEXT} with this:

<a href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATEID&creativeASIN={FIELDTEXT}">Buy From Amazon</a>

Then this field will be displayed as a "Buy From Amazon" link.

Replace AFFILIATEID with your affiliate ID that Amazon generated in your account.

If you want to display Image button instead of text link, use this:

<a href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATEID&creativeASIN={FIELDTEXT}"><img src="images/amazon.gif" /></a>

You should upload the amazon.gif image into the Joomla's "images" folder in the root.

You can use this image:
Amazon.gif