Product Details Page (PDP) Methods and Events in SuiteCommerce
Product Details Page (PDP) includes essential methods and events for managing item interactions in SuiteCommerce.
The Product Details Page (PDP) is a crucial component in SuiteCommerce, specifically designed for interaction with the Product Details view. Its methods and events enhance user experience by managing various interactions effectively.
Key Methods of PDP
The following methods are available in the PDP component, each serving a distinct purpose:
| Method Name | Description |
|---|---|
getAllMatrixChilds() | Retrieves all child items in a matrix configuration. |
getItemInfo() | Fetches detailed information about the item. |
getPrice() | Obtains the current price of the item. |
getSelectedMatrixChilds | Returns the currently selected matrix child items. |
setOption() | Sets options for the selected product. |
setQuantity() | Adjusts the quantity of the selected item. |
getStockInfo() | Retrieves stock information for the item. |
Key Events of PDP
The PDP component also defines various events that enhance its functionality:
| Event Name | Description |
|---|---|
beforeOptionSelection | Triggered before an option is selected. |
afterOptionSelection | Triggered after an option is selected. |
beforeQuantityChange | Triggered before the quantity changes. |
afterQuantityChange | Triggered after the quantity changes. |
beforeImageChange | Triggered before the product image changes. |
afterImageChange | Triggered after the product image changes. |
These methods and events provide developers with the tools necessary to create a responsive and dynamic shopping experience on the Product Details Page.
Best Practices
- Ensure to utilize
beforeandafterevents properly to prevent conflicts with user selections. - Always validate product quantities and options before finalizing user choices to enhance user satisfaction.
By leveraging these features, developers can offer seamless interactions on the PDP.
Frequently Asked Questions (4)
Do I need to handle any events for changes in product options on the PDP?
How can I retrieve stock information for an item on the Product Details Page in SuiteCommerce?
What should developers consider when using quantity change events on the PDP?
Is it possible to obtain the current price of an item via PDP methods?
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.
