SuiteCommerce InStore Components for Effective Cart Management
SuiteCommerce InStore provides components for efficient cart management, including adding, removing, and updating cart lines.
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:
| Method | Description |
|---|---|
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:
| Event | Description |
|---|---|
beforeAddGlobalDiscount | Triggered before a global discount is added. |
afterAddGlobalDiscount | Triggered after a global discount is added. |
beforeAddLine | Triggered before a line is added. |
afterAddLine | Triggered after a line is added. |
beforeAddLineDiscount | Triggered before a line discount is added. |
afterAddLineDiscount | Triggered after a line discount is added. |
beforeRemoveLineDiscount | Triggered before a line discount is removed. |
afterRemoveLineDiscount | Triggered after a line discount is removed. |
beforeReturnLine | Triggered before a line item is returned. |
afterReturnLine | Triggered after a line item is returned. |
beforeSetCustomer | Triggered before a customer is set. |
afterSetCustomer | Triggered after a customer is set. |
beforeUnVoidLine | Triggered before a voided line is restored. |
afterUnVoidLine | Triggered after a voided line is restored. |
beforeVoidLine | Triggered before a line is voided. |
afterVoidLine | Triggered 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:
| Method | Description |
|---|---|
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?
Is there a feature within SuiteCommerce InStore to apply both global discounts and line discounts concurrently?
How can I restore a previously voided line item in SuiteCommerce InStore?
How does the Cart component handle the return of line items to inventory?
Was this article helpful?
More in Commerce
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
- Commerce Extensions in NetSuite 2026.1
Commerce Extensions in NetSuite 2026.1 enhance performance and user experience in eCommerce.
- Convert Multiple Transaction Line Items into Configured Items in
Enhance transaction processing in NetSuite by converting multiple line items into configured items with improved session handling.
- New SuiteCommerce Features in NetSuite 2026.1
New SuiteCommerce features in NetSuite 2026.1 enhance user experience and improve eCommerce efficiency.
