Skip to content

Product Identifier app is responsible for showing a product identifier, such as: product reference, product ID, sku EAN or sku reference.

Notifications You must be signed in to change notification settings

vtex-apps/product-identifier

Repository files navigation

📢 Use this project, contribute to it or open issues to help evolve it using Store Discussion.

Product Identifier

All Contributors

The Product Identifier app is responsible for showing a product identifier, such as a product reference, product ID, SKU EAN, or SKU reference.

reference

Configuration

  1. Add the vtex.product-identifier app to your Store Theme's dependencies in the manifest.json file:

     ```json
     "dependencies": {
         "vtex.product-identifier": "0.x"
     }
     ```
    
  2. Add product-identifier.product block as a child of product-summary.shelf.

     ```json
     "product-identifier.product": {
       "props": {
         "label": "default", //'default' | 'custom' | 'hide'
         "customLabel": "teste", // text if label is custom
         "idField": "skuReferenceId" //'itemId' | 'productId' | 'productReference' | 'skuEan' | 'skuReferenceId'
       }
     },
     ```
    

The product-identifier interface can also be configured in the Site Editor. You can choose to display the following identifiers:

  • Product Reference
  • Product ID
  • SKU EAN
  • SKU Reference ID
  • Item ID

It's also possible to customize or hide the label text. In the following example, the "Reference" text was substituted by "Foo."

foo

Customization

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

CSS Handles
product-identifier
product-identifier__label
product-identifier__separator
product-identifier__value

Contributors ✨

Thanks goes to these wonderful people:


Gabriel Carafizi

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Product Identifier app is responsible for showing a product identifier, such as: product reference, product ID, sku EAN or sku reference.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published