Skip to main content

pos.order-details.block.render
Target

Renders a custom section within the native order details screen

Was this section helpful?

Block

jsx

import {render} from 'preact';

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

const Extension = () => {
return (
<s-pos-block action={{title: 'Open action', onPress: () => shopify.action.presentModal()}}>
<s-pos-block-row>
<s-text>This is a block extension</s-text>
<s-text>Order ID: {shopify.order.id}</s-text>
</s-pos-block-row>
</s-pos-block>
);
};