Skip to content

URLs

On this page all placeholders containing URLs are summarized.

AffiliateURL

This is the affiliate URL of the product. Either it was stored in the corresponding field of the product manually or obtained automatically via an API, e.g. the Amazon Product Advertisment API.

text
<a href="{{ AffiliateURL }}">{{ Title }}</a>

AmazonHomepage

The Amazon shop homepage, like "http://www.amazon.com/" or "http://www.amazon.de/". Depends on the country code of the product.

AmazonURL

This is an alias for Affiliate Url.

BuyPageURL

URL to the buy page of a product

text
<a href="{{ BuyPageUrl }}">{{ Title }}</a>

BuyButtonTargetURL

The URL the buy button should link to. Depens on the template option "button_target" which can be set globally in the template options or dynamically via shortcode.

text
<a href="{{ BuyButtonTargetURL }}" class="my_buy_button">{{ BuyButtonText }}</a>

DetailPageURL

This is an alias for Affiliate Url.

ImageTargetURL

The URL set in the template options to which product images should link to.

text
<a href="{{ ImageURL }}"><img src="{{ MainImageURL }}"></a>

TitleTargetURL

The URL set in the template options to which the product title should link to.

text
<a href="{{ TitleTargetURL }}">{{ Title }}</a>

PublicProductPageURL

Returns the permalink to the product page, if it exists and ASA2 product pages are set to public. This allows linking to the dedicated WordPress page for a product.

text
<a href="{{ PublicProductPageURL }}">View product details</a>

ASA2 - The Amazon Affiliate Plugin for WordPress