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

From JReviews Documentation
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
You can create a <span style="color: blue">Text custom field</span> 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<br />
 
ASIN is a unique identification number assigned by Amazon. Example: B001U3Y8PO<br />
For books, the ISBN number is used instead.
 
  
 +
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):
  
To display the affiliate link instead of the ASIN or ISBN number on your site, you will need to replace the field's default output format.
+
[[File:amazon-affiliate.png]]
When you click on <span style="color: red">[Click here for Advanced Options]</span> advanced field options will slide down.
+
  
 +
Replace the default '''{FIELDTEXT}''' with this:
  
Under the '''Output Format''' replace:
+
<pre><a href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATEID&creativeASIN={FIELDTEXT}">Buy From Amazon</a></pre>
<pre>{FIELDTEXT}</pre>
+
  
 +
Then this field will be displayed as a "Buy From Amazon" link.
  
with this:
+
Replace AFFILIATEID with your affiliate ID that Amazon generated in your account.
<pre><a href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATEID&linkCode=as2&camp=1789&creative=9325&creativeASIN={FIELDTEXT}">Buy From Amazon</a></pre>
+
 
+
 
+
Now this field will be outputted as a "Buy From Amazon" link.
+
 
+
  
 
If you want to display Image button instead of text link, use this:
 
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&linkCode=as2&camp=1789&creative=9325&creativeASIN={FIELDTEXT}"><img src="images/amazon.gif" /></a></pre>
+
<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 should upload the amazon.gif image into the Joomla's "images" folder in the root.
Line 28: Line 22:
 
You can use this image:<br />
 
You can use this image:<br />
 
[[File:Amazon.gif]]
 
[[File:Amazon.gif]]
 +
  
  
 
[[Category:JReviews]]
 
[[Category:JReviews]]
 
[[Category:Fields]]
 
[[Category:Fields]]

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