Skip to main content

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.

VariableDescription
canonical_urlCanonical page URL for SEO
page_titleTitle of the current page
page_descriptionMeta page description of the current page
requestrequest data
localeActive locale details
supported_localesAll supported languages for the webshop
webshopWebshop details
sale_channelsList 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.

VariableDescriptionComment
codeReturns the currently active language code, e.g., en, hu.Only for the current locale, for supported_locales this is the array key
nameReturns the full name of the current locale, e.g., English.
nativeReturns the native name of the current locale, e.g., Magyar.
scriptReturns the script of the locale, e.g., Latn.
regionalReturns the regional variant of the locale, e.g., en_GB.

request

VariableDescriptionComment
iso_codeThe current locale code, e.g., en, hu.Used for language-specific rendering.
originThe origin URL of the request.Typically includes protocol + host, e.g., https://example.com.
hostThe host of the request, e.g., example.com.Useful for multi-domain setups.
pathThe path of the request URI.Example: /products/123.
full_urlFull URL of the current request including query parameters.Example: https://example.com/products/123?ref=homepage.
queryAssociative array of GET query parameters.Example: ['ref' => 'homepage'].
methodHTTP method of the request.Example: GET, POST.
schemeProtocol of the request.Example: http or https.
country_codeCode of the country based of the visitor's IP addressExample: hu or de.
route_nameName of the current pageExample: product.

webshop

VariableDescriptionComment
nameThe display name of the webshop.Example: My webashop.
sale_channelThe sales channel object

Webshop Sale Channel Properties

VariableDescriptionComment
nameName of the sale channel
domainDomain of the sale channel
slugSlug used for URLsNullable
faviconFavicon URLNullable
logoLogo URLNullable
currencyDefault currency code (e.g., USD, EUR)
default_languageDefault language code (e.g., en, hu)
is_changeIndicates if the webshop supports product/exchange changesBoolean
is_returnIndicates if the webshop supports returnsBoolean
is_international_codIndicates if international cash-on-delivery (COD) is supportedBoolean
return_allowed_daysNumber of days allowed for returning productsInteger
phoneContact phone numberNullable
emailContact email addressNullable