SuiteCommerce Components and Their API Functions

SuiteCommerce and SuiteCommerce Advanced include components allowing customization through an extensibility API, enhancing the user shopping experience.

·2 min read·View Oracle Docs

SuiteCommerce and SuiteCommerce Advanced leverage a powerful extensibility API, enabling developers to enhance and customize the user experience on their eCommerce platforms. This API provides several components, including vital functionalities for managing the shopping cart.

What Are SuiteCommerce Components?

SuiteCommerce components are integral to both SuiteCommerce and SuiteCommerce Advanced, facilitating various interactions vital to eCommerce operations.

Cart Component Overview

The Cart component connects directly with the LiveOrder and enables essential functions such as:

  • Adding, updating, and removing items from the order
  • Applying promotions and selecting shipping methods
  • Associating billing and shipping addresses with the order
  • Adding payment methods

This component is accessible across all three ssp applications: shopping, myaccount, and checkout.

Cart Component Details

AttributeDescription
IDCart

Methods

The API provides the following methods for interacting with the cart:

  • addLine()
  • addLines()
  • addPayment()
  • addPromotion()
  • clearEstimateShipping()
  • estimateShipping()
  • getAddresses()
  • getBillAddress()
  • getLatestAddition()
  • getLines()
  • getPromotions()
  • getPurchaseOrderNumber()
  • getShipAddress()
  • getShipMethod()
  • getShipMethods()
  • getSummary()
  • removeLine()
  • removePromotion()
  • removeShipping()
  • setPurchaseOrderNumber()
  • setShipMethod()
  • setTransactionBodyField()
  • submit()
  • triggerAddToCartConfirmation()
  • updateLine()

Events

The cart also supports various events, which developers can hook into:

  • beforeAddLine
  • afterAddLine
  • beforeAddPayment
  • afterAddPayment
  • beforeAddPromotion
  • afterAddPromotion
  • ... (and many more)

Why Does This Matter?

Using the SuiteCommerce Extensibility API allows for seamless customization without interfering with the underlying application code. This approach ensures that future updates do not compromise existing customizations, thus maintaining the integrity and functionality of the eCommerce platform.

Conclusion

Understanding the SuiteCommerce components, especially the cart functionalities, is crucial for developers looking to enhance user interactions and streamline shopping experiences. For further details on utilizing the SuiteCommerce Extensibility API for building extensions, developers can refer to SuiteCommerce documentation and specific API reference guides.

Frequently Asked Questions (4)

Does the Cart component in SuiteCommerce work in all ssp applications?
Yes, the Cart component is accessible and functions across shopping, myaccount, and checkout ssp applications.
What are some methods available for managing promotions in the Cart component?
The Cart component provides methods such as addPromotion(), getPromotions(), and removePromotion() to manage promotions.
Can developers hook into events when modifying cart items in SuiteCommerce?
Yes, developers can hook into various events such as beforeAddLine, afterAddLine, beforeAddPromotion, and afterAddPromotion, among others, to customize behavior when modifying cart items.
Will using SuiteCommerce Extensibility API customizations interfere with the underlying application code?
No, using the SuiteCommerce Extensibility API allows developers to customize and enhance functionalities without affecting the underlying application code, ensuring stability during updates.
Source: SuiteCommerce and SuiteCommerce Advanced 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 →