Using a custom field for Amazon affiliate links
From JReviews Documentation
Revision as of 12:25, 13 August 2010 by Jreviews (Talk | contribs) (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...")
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
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.
<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>
Next, replace ASIN numbers with {FIELDTEXT} tag:
<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>
Now this field will be outputted as a link.