For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hi Devs .
I am trying to get current order data and print it to console in shopify post purchase extension like this Please let me Know if its possible and if its possible how can i make it correct
extend("Checkout::PostPurchase::ShouldRender", async ({ storage }) => {
console.log(JSON.stringify(Shopify));
const initialState = await getRenderData();
const render = true;
if (render) {
await storage.update(initialState);
}
return {
render,
};
});