Function asa2_render_asin
Renders a single product based on an ASIN and optional country code like shortcode [asa2] would do.
Example:
// with default template: echo asa2_render_asin('B01A9EN4YU', array('country_code' => 'DE')); // with custom tempalte: echo asa2_render_asin('B01A9EN4YU', array( 'country_code' => 'DE', 'tpl' => 'my_template' ));
Package: Renderer
Since: 1.8.0
Link: http://docs.getasa2.com/php_functions_shortcode_rendering.html#asa2-renderer-asin-render
Located at functions.php
Since: 1.8.0
Link: http://docs.getasa2.com/php_functions_shortcode_rendering.html#asa2-renderer-asin-render
Located at functions.php
Parameters summary
string |
$asin |
Amazon ASIN |
array |
$options = array() |
Optional. An array of options. Supports the same values as the [asa2] shortcode. |
array |
$isCacheOptions = array() |
Optional. Array of options that should be used for generating a cache token. If empty, ASIN an options are used. |
array |
$debug = array() |
Optional. Additional information for cache debug logger. |
Return value summary
string
|
The generated output |