Stock Notifications

This topic applies to

Applies to

SuiteCommerce Web Stores

The SuiteCommerce Stock Notifications extension lets users sign up for an email notification alerting them when an out-of-stock item again becomes available. If enabled, users see a stock notification option on the Product Details and Product Listings Pages. Logged in users can visit the Stock Notifications tab of their My Account page to view details of the items to which they are subscribed, the notification statuses, and the option to cancel a notification.

Important

SuiteCommerce extensions are only available if provisioned, installed, and activated for a selected domain in your account. For more information, see NetSuite SuiteCommerce Extensions.


Note

If you are a SuiteCommerce Advanced customer, you must be implementing the Aconcagua release or later to take advantage of extensions.


This topic explains how to:

Set Up the Stock Notifications Email Template

After installing the Stock Notifications bundle, create the email template used to notify users that their item is back in stock. You must create an email template in order for the extension to work. To set up the notification email, create a new email template in NetSuite using a file included in the Stock Notifications bundle. For more information on modifying an email template, see the help topic Customizing Templates for System-Automated Email.

Note

For advanced users experienced in HTML and FreeMarker, you can use the variables defined in the header of the included file to further customize the email template as you wish. For more information on modifying a template with FreeMarker, see the help topic Scriptable Templates.


To set up the email template:

  1. In NetSuite, go to File Cabinet > SuiteBundles > [BUNDLE ID] > com.netsuite.backinstocknotification100 > Email Templates.

    In the path above, [BUNDLE ID] equals the Stock Notifications bundle ID. For the bundle ID, see NetSuite SuiteCommerce Extensions.

  2. Click Download next to the stock_notifications_email.template.ftl file.

  3. Use this file to create a new email template:

    1. In NetSuite, go to Documents > Templates > Email Templates > New.

    2. In the Name field, give your new template a name.

      This name displays as an option in the Email Template field of the SC Configuration Record, which you select to configure the extension’s email template.

    3. In the Record Type field, select Custom Record.

    4. In the Template tab, perform the following steps:

      1. In the Subject field, enter a message to display as the subject of the stock notification email.

        For example:

        ${customRecord.custrecord_ns_sc_ext_sn_s_item?split(":")?last} is back in stock!

        If you are experienced with HTML and FreeMarker you can adjust this subject to meet your needs.

      2. In the Create Template From: field, select File.

      3. Click the New icon to add a file.

      4. In the Select File field, choose the stock_notifications_email.template.ftl file downloaded from the File Cabinet.

      5. Click Save.

    5. Click Save to create the email template.

Configure Properties

To determine how Stock Notifications displays on your website, configure the properties on the SuiteCommerce Configuration record. You can choose section titles, placeholder texts, feedback messages, and more.

To configure properties:

  1. After activating the Stock Notifications extension in a NetSuite Account, go to Setup > SuiteCommerce Advanced > Configuration.

    For more information on activating an extension, see Manage Themes and Extensions.

  2. Select the website and domain where the Stock Notifications extension is activated and click Configure.

  3. Navigate to the Extensions tab.

  4. In the Stock Notifications subtab, fill out the listed fields for each category, using the tables below as references.

  5. Click Save.

General Fields:

Field

Description

Section Title – Items

This sets the title for the Stock Notifications option to display on the Product Detail Pages (PDP).

Section Text - Items

This sets the description for the Stock Notifications section.

Product List Link - Items

This sets the label for the Stock Notifications option to display on the Product Listings Page (PLP).

This link appears with the product on the PLP and leads to the quick view window with a Stock Notification subscription option.

User Information Fields:

Field

Description

Email Address Label

This sets the label for the Email field.

Users are asked to enter an email address when signing up for a stock notification.

Email Address Placeholder

This sets the placeholder text to display in the Email field.

Mandatory First Name - Items

This determines if the First Name field is mandatory.

First Name Label

This sets the label for the First Name field.

Users are asked to enter a first name when signing up for a stock notification.

First Name Placeholder

This sets the placeholder text to display in the First Name field.

Default Lead First Name

This sets the default text to display in the First Name field of the Lead record if a first name is not supplied by the user.

Mandatory Last Name

This determines if the Last Name field is mandatory.

Last Name Label

This sets the label for the Last Name field.

Users are asked to enter a last name when signing up for a stock notification.

Last Name Placeholder

This sets the placeholder text to display in the Last Name field.

Default Lead Last Name

This sets the default text to display in the Last Name field of the Lead record if a first name is not supplied by the user.

Submission Fields:

Field

Description

Subscription Agreement Label

This sets the label for the Subscription Agreement field that asks users to subscribe to marketing emails.

Submit Button Label

This sets the label for the signup submit button.

Success Message

This sets the message to display upon successful form submission.

Error Message

This sets the message to display when there is an error during form submission.

My Account Fields:

Field

Description

Subscriptions Page Title - My Account

This sets the title for the Subscriptions page and menu item associated with My Account.

Subscriptions Empty State - My Account

This sets the message to display on a Subscriptions page with no current Stock Notifications subscriptions.

Item Column Label - Subscriptions Table

This sets the label for the Item column in the Subscriptions Table, which gives the name of the item to which the user subscribed.

Show Item SKU

This determines if the item SKU is displayed.

Price Column Label - Subscriptions Table

This sets the label for the Price column in the Subscriptions Table, which gives the price of the item to which the user subscribed.

Status Column Label - Subscriptions Table

This sets the label for the Status column in the Subscriptions Table, which gives the notification status of the item to which the user subscribed.

Active Subscription Label - Subscriptions Table

This sets the label to display in the Status column of the Subscriptions Table if the stock notification is active for the item.

Subscription Date Label - Subscriptions Table

This sets the label for the subscription date to display in the Status column of the Subscriptions Table if the stock notification is active.

Cancel Subscription Button Label - Subscriptions Table

This sets the label for the Cancel Subscription button to display for each Active item in the Subscriptions Table.

Subscription Canceled Message - Subscriptions Table

This sets the message to display when stock notifications are canceled for an item.

Undo Cancel Subscription Label - Subscriptions Table

This sets the label for the button to undo canceled stock notifications for an item.

Email Fields:

Field

Description

Email Template (Required)

This sets the email template used for stock notification emails to users.

Select the email template you created in the Set Up the Stock Notifications Email Template section.

Email Employee Sender

This determines from which employee the stock notification email originates.

View Saved Searches for Stock Notifications

After setting up the extension, you can view the saved searches associated with Stock Notifications. The following saved searches are created automatically when you install the extension:

  • Stock Notifications Customers Waitlist — You can check which customers are currently waiting on an item.

  • Stock Notifications TOP 10 Requested items — You can find out which products have been requested the most.

  • Stock Notifications Sent Mails — You can see which stock notification emails have been sent.

  • Stock Subscriptions Newsletter — You can learn which customers elected to subscribe to the newsletter when signing up for a stock notification.

These saved searches can teach you more about your customers while also compiling information to be used for marketing and inventory purposes.

To view a saved search:

  1. In NetSuite, go to Reports > Saved Searches > All Saved Searches.

  2. Click View next to the saved search you want to see.

For more information on how to view or use a saved search, see the help topic Accessing a Saved Search.