SuiteCommerce InStore Components for Effective Cart Management

SuiteCommerce InStore provides components for efficient cart management, including adding, removing, and updating cart lines.

·3 min read·View Oracle Docs

The SCIS (SuiteCommerce InStore) components within the extensibility API empower developers to create extensions that can manipulate cart contents and enhance user interactions. This includes functionalities for adding, removing, and updating items in the cart, alongside modal dialogs to confirm actions or deliver information.

Cart Component

The Cart component is pivotal for managing the shopping cart's contents within SCIS. It allows for extensive manipulation of the cart, including adding or removing items, and applying promotions. Here are the crucial aspects of the Cart component:

ID
Cart

Available Since
SuiteCommerce 2018.2

Methods

The following methods are available for the Cart component:

MethodDescription
addGlobalDiscount()Applies a global discount to the cart.
addLine()Adds a new line item to the cart.
addLines()Adds multiple line items to the cart.
addLineDiscount()Applies a discount to a specific line item.
addPromotion()Adds a promotional offer to the cart.
getLines()Retrieves the current line items in the cart.
getSummary()Provides a summary of the cart contents.
removeLineDiscount()Removes a discount from a line item.
removePromotion()Removes a promotion from the cart.
returnLine()Returns a line item to inventory.
setCustomer()Associates a customer with the cart.
unvoidLine()Restores a previously voided line item.
voidLine()Marks a line item as voided.

Events

The following events can be leveraged within the Cart component:

EventDescription
beforeAddGlobalDiscountTriggered before a global discount is added.
afterAddGlobalDiscountTriggered after a global discount is added.
beforeAddLineTriggered before a line is added.
afterAddLineTriggered after a line is added.
beforeAddLineDiscountTriggered before a line discount is added.
afterAddLineDiscountTriggered after a line discount is added.
beforeRemoveLineDiscountTriggered before a line discount is removed.
afterRemoveLineDiscountTriggered after a line discount is removed.
beforeReturnLineTriggered before a line item is returned.
afterReturnLineTriggered after a line item is returned.
beforeSetCustomerTriggered before a customer is set.
afterSetCustomerTriggered after a customer is set.
beforeUnVoidLineTriggered before a voided line is restored.
afterUnVoidLineTriggered after a voided line is restored.
beforeVoidLineTriggered before a line is voided.
afterVoidLineTriggered after a line is voided.

SCISLayout Component

The SCISLayout component provides functionalities to display modals to users for confirmations or messages. It has the following attributes:

ID
SCISLayout

Available Since
SuiteCommerce 2018.2

Methods

The SCISLayout includes two methods for modal dialogs:

MethodDescription
showConfirmationPopup()Displays a confirmation dialog to the user.
showMessagePopup()Shows a message dialog to the user.

Events

There are no specific events documented for the SCISLayout component. Developers can use the provided methods to create user-friendly interactions during the shopping experience.


These components enable sophisticated cart management and user interaction features, enhancing the overall performance and usability of the SuiteCommerce InStore platform, ultimately contributing to an improved customer experience.

Frequently Asked Questions (4)

What permissions are required to use SuiteCommerce InStore components for cart management?
The article does not specify any permissions required to use the SuiteCommerce InStore components for cart management. It's recommended to consult NetSuite's official documentation or your NetSuite administrator for accurate permissions guidance.
Is there a feature within SuiteCommerce InStore to apply both global discounts and line discounts concurrently?
Yes, the SuiteCommerce InStore Cart component allows for both `addGlobalDiscount()` to apply global discounts and `addLineDiscount()` for applying discounts to specific line items.
How can I restore a previously voided line item in SuiteCommerce InStore?
You can restore a previously voided line item in the SuiteCommerce InStore Cart component by using the `unvoidLine()` method.
How does the Cart component handle the return of line items to inventory?
The Cart component includes the `returnLine()` method, which returns a line item to inventory. This action can be tracked through `beforeReturnLine` and `afterReturnLine` events.
Source: SuiteCommerce InStore (SCIS) Components Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Commerce

View all Commerce articles →