Displayed properties
Introduction
As a prerequisite, you need to ensure that the fields you want to display are actually retrieved in the query. For more information, click here Retrieving data from pages
What we call ‘displayed properties’ is the information displayed on all Store App display blocks, at different levels (orders, lines, parcels, etc) as well as in the popins.
You can find the displayed properties configuration in the Configuration > Store App > Page settings > {Page name} > Displayed properties section of your admin backoffice.
The default configuration is displayed, but it can be overwritten. In general, property blocks are organised into 3 lines, each of which can be overloaded independently
Tip: to return to the default configuration, click on the wheel and then ‘return to default configuration’.
Entities table
In each page, the display blocks correspond to particular entities, and it is sometimes difficult to navigate. You can use the table below to find the names of the entities used page by page.
If the multi-parcel configuration is enabled, use the display property blocks named 'multi xx'
Display the correct field
It's not easy to find the right path for the field you want to display, especially as the logic depends on each page.
The best way is to use the paths configured by default on the entity, and try to reproduce the same path with the field you want to add.
Example:
containers.0.parcel.delivery.carrier.name displays the name of the carrier in the ‘order’ section of the pack page
Specific formatting
Syntax
Properties often need to be formatted for aesthetic reasons.
It is possible to use one or more formats with the following syntax field|formatter1:option|formatter2|formatter3.
In the absence of parentheses, formats are applied from left to right.
Examples:
to capitalize the first letter of the delivery type, use
delivery.type|capitalizeto retrieve the 3rd element of an array (index 2), I'll use
delivery.destination.address.lines|arrayelement:2
The format |rawstring:must be applied to the left of the field, unlike the other
Parenthesis
A parenthesis syntax is available for the most complex expressions.
Properties that are nested within parentheses will be evaluated first.
Example:
The following property will display 1 / 2.
parcels|forcount:line_item_ids|concatraw: / |concatraw: (line_item_groups|length)
All formats available
Name | Description | Option | Example → Render |
|---|---|---|---|
| Retrieves the element of an array with index. | Element index |
|
| Replace all letters with lower case, except the first, which is upper case. |
| |
| Concatenates another property, without spaces. | Property to concatenate |
|
| Concatenates a string. | Defined string |
|
| Formats a number into a currency, with a symbol defined in another property. | Property containing the currency |
|
| Formats a number into a currency, with a symbol defined in the expression. | The currency to use |
|
| Format a date range. | Property corresponding to end date |
|
| Divides a value of a property by an another. | Divisor property |
|
| Returns a date in the color sent if expired. It is possible to pass a relative parameter (seconds to be subtracted from the expiry date). | The warning value to be subtracted from the current date for the calculation (in seconds) The color to be set if the date has expired. The value to be returned. |
|
| Scans an array and keeps the elements of this array whose property is worth one of the values provided. | Comma-separated list of values |
|
| Scans an array and counts the number of elements in the array whose property has one of the provided values. | Comma-separated list of values |
|
| Scans an array and counts the size of each property in the array. | Property |
|
| Scans an array and returns the element with the lowest index in the array defined in option . If nothing matches, does nothing. | Comma-separated list of values |
|
| Change the color of the text to red. |
|
|
| Calculates the total quantity of indexes in the supplied index ranges. |
|
|
| Returns the length attribute of an array or string. |
| |
| Formats the result as a link. |