Retrieve all additional parameters in an array:
For a product - {$params = shopAdvancedparamsPlugin::getProductParams($product.id)}
For a category - {$params = shopAdvancedparamsPlugin::getCategoryParams($category.id)}
For a page - {$params = shopAdvancedparamsPlugin::getPageParams($page.id)}
Now the $params variable contains all additional parameters.
Further access to a required parameter is done via the field key, for example, for a field with the key opis2
{$param = $params['opis2']}
For a product - {$param = shopAdvancedparamsPlugin::getProductParam($product.id, 'key')}
For a category - {$param = shopAdvancedparamsPlugin::getCategoryParam($category.id, 'key')}
For a page - {$param = shopAdvancedparamsPlugin::getPageParam($page.id, 'key')}
The $param variable will contain the parameter object
The following values are supported in the object:
Set field values are accessible using the key in variables:
Where key is the optional parameter key.
To correctly display parameters in store design themes, add a condition checking for the existence of a set value using:
{if isset( $variable_parameters.key )}
{ $variable_parameters.key }
{/if}
Note: For file-type fields, values will hold a file reference relative to the installation root.
For the FILE field, it is recommended to create a download link
<a href="{$wa_url}{$product.param.key}">Product instruction</a>
To display an image (field IMAGE), include the parameter value within the <img> tag.
<img src="{$wa_url}{$product.param.key}" />
