[asa2_textlink]¶
Introduction¶
The shortcode [asa2_textlink]
lets you easily embed textlinks for ASA2 products in your WordPress pages.
All supported options are documented on this page.
Basic usage¶
The recommended approach is to use the product ID.
[asa2_textlink id="1404"]Anchor text[/asa2_textlink]
If you do not want to set a custom anchor text for each text link, you can just leave away the text and ASA2 will use the product title automatically.
[asa2_textlink id="1404" /]
For backward compatibility reasons, you can also reference an Amazon product directly by entering ASIN and Country Code.
[asa2_textlink asin="B00CMV3NWC" country_code="DE"]Check Amazon page[/asa2_textlink]
Options¶
asin¶
The ASIN of the product you want to create a textlink for. This is a mandatory option.
[asa2_textlink asin="B00CMV3NWC"]Amazon page[/asa2_textlink]
associate_id_set¶
Defines which Associate ID set to use for internationalized products. The Associate ID of the product’s country code will be used if it was found in the set.
Note
Option tracking_id
is dominant, meaning that if you set tracking_id
, this ID will be used and associate_id_set
will be ignored.
[asa2_textlink asin="B00CMV3NWC" country_code="DE" associate_id_set="my-i18n-ids"]B0094J2BZ0[/asa2_textlink]
class¶
Use class
to define a CSS class for the textlink.
[asa2_textlink asin="B00CMV3NWC" class="my_textlink_class"]Amazon page[/asa2_textlink]
country_code¶
If you want to create textlink for a product not in your default country store, you can place the country code of that store in the shortcode options.
[asa2_textlink asin="B00CMV3NWC" country_code="DE"]Amazon page[/asa2_textlink]
disabled¶
If you want to hide a text link temporarily but not to delete the whole shortcode, you can use option disabled
. If it is set to 1, the shortcode will not be rendered.
[asa2_textlink asin="B00CMV3NWC" disabled="1"]Amazon page[/asa2_textlink]
id¶
With this option, connect the shortcode to the product. The advantage is that the displayed product will change if you should change the article in your Products section section, e.g. if the original product is no longer available.
[asa2_textlink id="1404"]Buy here[/asa2_textlink]
// Also works without text. The product title will be used automatically
[asa2_textlink id="1404" /]
rel¶
Use rel
to define a “rel” parameter for the textlink.
[asa2_textlink asin="B00CMV3NWC" rel="lightbox"]Amazon page[/asa2_textlink]
target¶
Use target
to set a link target, like “_blank”.
[asa2_textlink asin="B00CMV3NWC" target="_blank"]Amazon page[/asa2_textlink]
title¶
Use title
to define a “title” parameter for the textlink.
[asa2_textlink asin="B00CMV3NWC" title="Shoppage"]Amazon page[/asa2_textlink]
tracking_id¶
Use option tracking_id
to embed a custom Associate ID in the textlink.
[asa2_textlink asin="B00CMV3NWC" tracking_id="123"]Amazon page[/asa2_textlink]