Skip to content

List Loyalty Title

Use list_loyalty_title module to insert a title of the page with products exchangeable via the loyalty program.

Configuration parameters

none

Module source code

{% from "@macros/section_title.twig" import section_title %}

{% set seoProperties = ObjectApi.getSeoProperties() %}
{% set shopUrls = ObjectApi.getShopUrls() %}

{{ section_title(translate("Loyalty program products"), { cssClasses: "loyalty-list-title" }) }}

<script type="application/ld+json">
    {
        "@context": [
            "http://schema.org/",
            { "@base": "{{ shopUrls.mainPageUrl.absolute }}" }
        ],
        "@id": "{{ shopUrls.loyaltyProductsListUrl.relative }}",
        "@type": "Article",
        "name": "{{ seoProperties.description }}"
    }
</script>

The module uses JSON-LD and Microdata from schema.org to optimize search results in browsers.

Macros reference

Used Object Api methods

Module configuration schema

[
    {
        "state": "unfolded",
        "label": "General settings",
        "elements": [
            {
                "type":"infobox",
                "name":"infobox",
                "options": {
                    "type": "blank",
                    "message": "#### Related settings in the admin panel%s- changing phrases in [translations](%s)",
                    "placeholderValues": [
                        "\n",
                        "\/admin\/configLanguages\/list"
                    ]
                }
            }
        ]
    }
]