Skip to main content
Version: 3.x

Add a new attribute

Front-Commerce allows you to leverage Magento attributes in your application. This guide explains the different steps involved by going through a concrete example.

Let's say we want to add a new element to display on a product's page (for instance, a product's rate). You will have to:

  1. Add an attribute to your Magento 2.
  2. Expose the attribute in your GraphQL schema.
  3. Display it on screen.