pos. product-details. action. menu-item. render
Renders a single interactive button component as a menu item in the product details action menu. Use this target for product-specific operations like inventory adjustments, product analytics, or integration with external product management systems.
Extensions at this target can access the product identifier through the Product API to perform product-specific operations. Menu items typically invoke to launch the companion modal for complete product workflows.
Create a product details action menu item
jsx
Examples
Create a product details action menu item
Description
Add an interactive menu item to the product details action menu for product-specific operations. This example shows how to create a menu item that accesses product data and launches modal workflows for tasks like inventory adjustments, product analytics, or integration with external systems.
jsx
import {render} from 'preact'; export default async () => { render(<Extension />, document.body); }; const Extension = () => { return ( <s-button onClick={() => shopify.action.presentModal()} /> ); };