WEB SYSTEMS PRO
E-commerce platform
€19.80

* Price excluding VAT

SKU:WSP-207-PL
License
Web Systems Pro
Version
2025.05.25.1.wsp
Update
11/13/2026


Displaying parameters on the website

Outputting additional parameters using a helper in any location of the storefront

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']}


Retrieving a specific parameter by field key

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:

  • Value of an optional parameter - {$param->getValue()}
  • Field name - {$param->getTitle()}
  • All possible values of the field (for selectable-type fields) - {$param->getValues()}
  • Default value of the field (for selectable-type fields) - {$param->getDefault()}

Set field values are accessible using the key in variables:

  • For a product - {$product.param.key}
  • For a category - {$category.param.key}
  • For a page - {$page.key}

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}" />