Global Models
Prodyflow provides global variables that are always available in your Twig templates. These variables give access to webshop data, request information, and localization settings generated by the backend.
Global models allow you to build dynamic templates without writing backend code — all core page and webshop values are accessible directly in Twig.
| Variable | Description |
|---|---|
| canonical_url | Canonical page URL for SEO |
| page_title | Title of the current page |
| page_description | Meta page description of the current page |
| request | request data |
| locale | Active locale details |
| supported_locales | All supported languages for the webshop |
| webshop | Webshop details |
| sale_channels | List of all webshop sale channel |
Locale
Prodyflow provides localization information for your webshop, including the currently active language and a list of all supported locales.
| Variable | Description | Comment |
|---|---|---|
code | Returns the currently active language code, e.g., en, hu. | Only for the current locale, for supported_locales this is the array key |
name | Returns the full name of the current locale, e.g., English. | |
native | Returns the native name of the current locale, e.g., Magyar. | |
script | Returns the script of the locale, e.g., Latn. | |
regional | Returns the regional variant of the locale, e.g., en_GB. |
request
| Variable | Description | Comment |
|---|---|---|
iso_code | The current locale code, e.g., en, hu. | Used for language-specific rendering. |
origin | The origin URL of the request. | Typically includes protocol + host, e.g., https://example.com. |
host | The host of the request, e.g., example.com. | Useful for multi-domain setups. |
path | The path of the request URI. | Example: /products/123. |
full_url | Full URL of the current request including query parameters. | Example: https://example.com/products/123?ref=homepage. |
query | Associative array of GET query parameters. | Example: ['ref' => 'homepage']. |
method | HTTP method of the request. | Example: GET, POST. |
scheme | Protocol of the request. | Example: http or https. |
country_code | Code of the country based of the visitor's IP address | Example: hu or de. |
route_name | Name of the current page | Example: product. |
webshop
| Variable | Description | Comment |
|---|---|---|
name | The display name of the webshop. | Example: My webashop. |
sale_channel | The sales channel object |
Webshop Sale Channel Properties
| Variable | Description | Comment |
|---|---|---|
name | Name of the sale channel | |
domain | Domain of the sale channel | |
slug | Slug used for URLs | Nullable |
favicon | Favicon URL | Nullable |
logo | Logo URL | Nullable |
currency | Default currency code (e.g., USD, EUR) | |
default_language | Default language code (e.g., en, hu) | |
is_change | Indicates if the webshop supports product/exchange changes | Boolean |
is_return | Indicates if the webshop supports returns | Boolean |
is_international_cod | Indicates if international cash-on-delivery (COD) is supported | Boolean |
return_allowed_days | Number of days allowed for returning products | Integer |
phone | Contact phone number | Nullable |
email | Contact email address | Nullable |