Skip to content

Product Details

The Product Details block renders the page that shoppers see when they view a single product: the image gallery, price, options, add-to-cart button, and more. Most shopper sessions go through the product page before a purchase, so it is one of the most important Commerce blocks on your site. Your storefront already includes this block, so you do not need to add it from scratch.

Product names, prices, images, and descriptions all come from your catalog, so you do not create or edit them here. Code controls the layout and what appears in each region, not the block table in Document Authoring.

A product detail page showing an image gallery on the left and product name, price, quantity selector, and add-to-cart button on the right.

A typical product page on a Commerce storefront.

How To

This is the task you’ll use most often. The document at /products/default is a template for every product page on your storefront, so changes you make there apply to all product URLs. Sample pages already include a defaultSku row. Set it to a SKU in your catalog and open the inline live-preview pane to see real product data while you edit.

  1. In Document AuthoringThe tooling for creating storefront pages as documents in Google Docs, SharePoint, or DA.live without writing code. Tables in documents define the blocks that appear on each page., open the document at /products/default.

  2. Add or update the product-details table with a defaultSku row that points to a SKU in your catalog.

    To find a SKU, go to Catalog → Products in Admin, or ask your integrator.

    product-details
    defaultSkuHOODIE-001
  3. Click the split-screen icon on the right sidebar to open the inline live-preview pane.

    The PDP renders using the SKU in the defaultSku row.

The defaultSku row applies only at /products/default in the inline live-preview pane. On real product URLs, the SKU comes from the URL, so you do not need to keep defaultSku in sync with catalog changes.

How To

To confirm that a real product page renders (not just the preview at /products/default):

  1. Find a product’s URL key and SKU in Catalog → Products in Admin, or open a category or search results page on your storefront and click any product.

  2. Open the product URL, which follows the pattern /products/<url-key>/<sku> (for example, /products/cool-hoodie/HOODIE-001).

  3. Confirm the product page loads with live catalog data.

How To

To highlight one product on a custom page (for example, a landing page for a campaign):

  1. Create your marketing page in Document Authoring at the path you want, for example, /campaigns/new-arrivals.

  2. Add the product-details block to the page. The block renders the product UI (gallery, price, options, and so on). You do not need any rows inside the block table. A header-only table is enough:

    product-details
  3. Add a sku row to your metadata table, or create one as shown here:

    metadata
    skuHOODIE-001

    If your page already has a metadata table, add a new sku row to it. You do not need a second table. For page metadata and its other properties, see Page metadata.

  4. Click the paper plane button, then click the Preview button to preview the page

    The block reads the sku from page metadata and renders that product in a new tab.

How To

Your storefront comes with several blocks already set up at /products/default. Each block is a separate table in the document, and the page renders them in the order they appear. That means you can add a banner, a carousel, or a Product Recommendations block by inserting a new table at the right spot.

  1. In Document Authoring, open the document at /products/default.

  2. Click above the product-details table and insert a new table for the carousel. Each row below the header is one slide. Add your campaign image in the left cell and a caption in the right:

    carousel
    imageSlide 1
    imageSlide 2
  3. Open the inline live-preview pane to confirm the carousel appears above the product details.

When you save, the carousel table sits above your product-details table. Shoppers see the carousel first, then scroll down to the product details. The same principle applies to any other companion block: add it where you want it to appear, and the page renders it there.