Product Summary Name is a block exported by the Product Summary app responsible for rendering the product name.

name-examplename-example

Configuration

  1. Import the vtex.product-summary app to your theme's dependencies in the manifest.json:
  dependencies: {
    "vtex.product-summary": "2.x"
  }
  1. Add the product-summary-name block to your store theme as a child of product-summary.shelf. For example:
   "product-summary.shelf": {
    "children": [
      "product-summary-image",
+     "product-summary-name",
      "product-summary-space",
      "product-summary-column#1"
    ]
  },
  1. Then, declare the product-summary-name and configure its behavior using the props stated below.
Prop nameTypeDescriptionDefault value
showFieldsPropsobjectDefines the visibility on certain properties.{ showProductReference: false, showBrandName: false, showSku: false }
tagstringHTML tag used. It can be: div, h1, h2, h3.h1
  • showFieldsProps object:
Prop nameTypeDescriptionDefault value
showSkuBooleanShow product SKUfalse
showProductReferenceBooleanShow product referencefalse
showBrandNameBooleanShow brand namefalse

Customization

To apply CSS customizations in this and other blocks, follow the Using CSS Handles for store customization guide.

CSS Handles
nameContainer
nameWrapper
brandName
skuName
productReference
productNameLoader

Did this page help you?