Difference between revisions of "Using a custom field for Amazon affiliate links"
(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: | ||
− | + | 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 | + | 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): |
− | + | [[File:amazon-affiliate.png]] | |
− | + | Replace the default '''{FIELDTEXT}''' with this: | |
− | <pre><a | + | <pre><a href="http://www.amazon.com/gp/product/{FIELDTEXT}?ie=UTF8&tag=AFFILIATEID&creativeASIN={FIELDTEXT}">Buy From Amazon</a></pre> |
− | + | 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):
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.