The notifications page template
can help display short texts/messages to notify customers with the latest updates regarding their orders.Example#
Variables#
Components#
This page extends the default layout master.twig
, and accordingly, it takes the unified look-and-feel. For example, all of the header's
and footer's
components will be added automatically to this page.In addition, the User
model is accessible automatically on this page because it's included in the master.twig
layout file.JS Web Components#
Customer's Notification page may include the following JS Web Components, which are ready-made designs and style-sets of web components for Salla stores.Hooks#
Usage#
This page receives an array of notifications
as an object. This array contains all of the notification's data for the currently logged-in user. Each notification can be displayed using a for-loop
statement.A common implementation for this page, is to display each notification as a link, which the user can click to open and view the details of the notification he wants to see. Modified at 2025-03-04 12:54:02