Stock Notifications

The 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 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.

Stock Notifications
Important:

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

Note:

Extensions require SuiteCommerce or the Aconcagua release of SCA or later.

This topic explains how to:

Before You Begin

To take advantage of the Stock Notifications extension, you must set the Out of Stock Behavior field to a setting that fits your needs for this extension. You can choose this setting for each item, so Stock Notifications does not have to behave the same for each item. You can find the Out of Stock Behavior field on the Web Store tab of the Item record.

Refer to the table below for the Out of Stock Behavior field options and the resulting Stock Notifications behaviors.

Out of Stock Behavior

Does Stock Notifications Appear on the PDP?

Default

No

Disallow back orders but display out-of-stock message

Yes

Allow back orders but display out-of-stock message

Yes

Remove item when out-of-stock

No

The item is removed from the web store.

Allow back orders with no out-of-stock message

No

If you switch to this option after previously using an option in which Stock Notifications appears on the PDP, an email is sent to subscribers notifying them that the item is ready to order.

For more information about out of stock behavior, see Item Inventory.

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 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 about modifying an email template, see 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 required. For more information about modifying a template with FreeMarker, see 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 Commerce 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 Commerce > Websites > Configuration.

    For more information about 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. Go 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

Sets the title for the Stock Notifications option to display on the Product Details page (PDP).

Section Text - Items

Determines the description for the Stock Notifications section.

Subscribe to Matrix Options - Items

If checked, displays the option for users to subscribe to Stock Notifications for each variation of a matrix item.

Subscribe to Matrix Options Label - Items

Sets the label for the Subscribe To Matrix Options - Items box on the PDP.

User Information Fields:

Field

Description

Email Address Label

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

Sets the placeholder text to display in the Email field.

Mandatory First Name

Determines if the First Name field is required.

First Name Label

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

Sets the placeholder text to display in the First Name field.

Default Lead First Name

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

Determines if the Last Name field is required.

Last Name Label

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

Sets the placeholder text to display in the Last Name field.

Default Lead Last Name

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

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

Submit Button Label

Sets the label for the signup submit button.

Success Message

Determines the message to display upon successful form submission.

Error Message

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

My Account Fields:

Field

Description

Subscriptions Page Title - My Account

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

Subscriptions Empty State - My Account

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

Item Column Label - Subscriptions Table

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

Determines if the item SKU is displayed.

Price Column Label - Subscriptions Table

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

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

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

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

Sets the label for the Cancel Subscription button to display for each active item in the Subscriptions table.

Subscription Canceled Message - Subscriptions Table

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

Undo Cancel Subscription Label - Subscriptions Table

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

Cancel All Subscriptions Button Label - Subscriptions Table

Sets the label for the Cancel All Subscriptions button to display for each active matrix item in the Subscriptions table.

Undo Cancel All Subscriptions Button Label - Subscriptions Table

Sets the label for the button to undo all canceled Stock Notifications for a matrix item.

Date Format - Subscriptions Table

Determines the format in which the date appears.

Email Fields:

Field

Description

Email Template (Required)

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

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 enabling you to gather information that can 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 about how to view or use a saved search, see Accessing a Saved Search.

Related Topics

General Notices