Skip to main content

pos.return.post.action.render

Renders a full-screen modal interface launched from post-return menu items. Use this target for complex post-return workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.

Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.

Create a post-return action modal

jsx

import {render} from 'preact';

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

const Extension = () => {
return (
<s-page heading="Return Post Action">
<s-scroll-box>
<s-text>Order ID: {shopify.order.id}</s-text>
</s-scroll-box>
</s-page>
);
};
Was this page helpful?