How To Create Product Attributes

How To Create Product Attributes

   A lot of times there is information that you want to show on the product's page that isn't there by default whether it is a color, category, where an item is from, etc. We can create product attributes in Counterpoint to sync to your website. For this how-to, we will show you how to get the products category on the product page.


Creating Product Attribute in Magento

1. Log into the Magento Admin Panel and navigate toStores>Attributes>Product. Once you are here, there is a button that creates a new attribute in the top right that says "Add New Attribute".


After clicking the button to add a new attribute, you will see a page like this (click to enlarge).

There are a lot of different properties so let's go over what they mean.


  Attribute Properties

  • Default Label: This is what will appear on the product page. 
  • Catalog Input Type for Store Owner: Determines the data type and input control that is used to manage the productfrom the store Admin. See Input Types
  • Values Required: To require that a value be entered in this field before the record can be saved, set Values Required to Yes 

   Advanced Attribute Properties

  • Attribute Code: This property will be what we reference in Counterpoint to create a map. The Attribute Code must begin with a letter but can include a combination of lowercase letters (a-z) and numbers (0-9). The code must be less than thirty characters in length and cannot include any special characters or spaces, although an underscore (_) can be used to indicate a space.
  • Scope:Limits the use of an attribute to a specific store view or website. Options: Store View / Website / Global.
  • Unique Value: Assigns a starting value to the attribute to help during data entry.
  • Add to Column:Options: Determines if the column appears in the product grid. Options: Yes / No
  • Use in Filter Options: Determines if the attribute is used as a filter control at the top of columns in the grid. Options: Yes / No.Note: The filter control is only displayed whenAdd to Column Optionsis enabled. 


2. We are going to fill these properties out as follows:

  • Default Label:CP Category
  • Catalog Input Type for Store Owner:Dropdown
  • Values Required: No
  • Attribute Code: cp_category
  • Scope:Global
  • Unique Value:No
  • Add to Column Options: Yes
  • Use in Filter options: Yes