Skip to main content

pos.product-details.action.render
Target

A full-screen extension target that renders when a pos.product-details.action.menu-item.render target calls for it

Was this section helpful?

Action

jsx

import {render} from 'preact';

export default async () => {
render(<Extension />, document.body);
};

const Extension = () => {
return (
<s-page heading="Product Details">
<s-scroll-box>
<s-text>Product ID: {shopify.product.id}</s-text>
</s-scroll-box>
</s-page>
);
};