Difference between revisions of "Using a custom field for Amazon affiliate links"
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). | 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). | ||
− | ASIN is a unique identification number assigned by Amazon. Example: B001U3Y8PO | + | ASIN is a unique identification number assigned by Amazon. Example: B001U3Y8PO<br /> |
For books, the ISBN number is used instead. | For books, the ISBN number is used instead. | ||
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. | 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. | ||
− | When you click on <span style="color: red">[Click here for Advanced Options]</span> | + | When you click on <span style="color: red">[Click here for Advanced Options]</span> advanced field options will slide down. |
Line 18: | Line 18: | ||
Now this field will be outputted as a "Buy From Amazon" link. | 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: | ||
+ | <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> | ||
+ | |||
+ | You should upload the amazon.gif image into the Joomla's "images" folder in the root. | ||
+ | |||
+ | You can use this image: | ||
+ | [[File:Amazon.gif]] | ||
[[Category:JReviews]] | [[Category:JReviews]] | ||
[[Category:Fields]] | [[Category:Fields]] |
Revision as of 12:40, 13 August 2010
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).
ASIN is a unique identification number assigned by Amazon. Example: B001U3Y8PO
For books, the ISBN number is used instead.
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.
When you click on [Click here for Advanced Options] advanced field options will slide down.
Under the Output Format replace:
{FIELDTEXT}
with this:
<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>
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:
<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>
You should upload the amazon.gif image into the Joomla's "images" folder in the root.