Skip to content

renderProduct

const renderProduct: (template, options) => Promise<PreparedProduct>

Defined in: @storesynk/react/dist/render.d.ts:83

A product page fragment’s prepared render: fetches the product, fills the template’s Storesynk tags via core’s server transform (titles, prices, images, options, thumbnails, metafields, bundle/volume/customer-pricing widgets are in the HTML - SEO/no-JS ready), and embeds the raw product (plus any displayed metafields) as a JSON payload the client runtime adopts without re-fetching. Product not found ⇒ the template passes through untouched and the client behaves as on a static page.

ReactNode | string

RenderProductOptions

Promise<PreparedProduct>