ASA2 Functions
  • Package
  • Function

Packages

  • API
  • Helper
  • i18n
  • Options
  • OptionsShortcuts
  • Renderer
  • Repo

Functions

  • asa2_render_asin
  • asa2_render_collection
  • asa2_render_image
  • asa2_render_smart_collection

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

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
ASA2 Functions API documentation generated by ApiGen