Skip to content

getNotificationSettings()

The getNotificationSettings method is used to get a NotificationSettings object that represents settings for notifications in the storefront.

Returned value

The NotificationSettings object.

Example

source
{% set notificationSettings = ObjectApi.getNotificationSettings() %}
{% if notificationSettings.getIsProductNotificationEnabled() %}
    <h4>Enabled</h4>
{% else %}
    <h4>Disabled</h4>
{% endif %}
output
<h4>Enabled</h4>