Before creating products class attributes, ensure the related product class exists. Details of the product class creation you can find in the Creating Product Classes guide.


To add attributes to an existing product class via the "Classes & Attributes" section, follow the steps below:

  1. In your store's Admin area, go to the "Classes & Attributes" section (Catalog > Classes & attributes).

  2. In the list of product classes, locate the product class that you need to add an attribute to, and click on the Edit attributes (N) link opposite it:


    It opens a page where you will be able to manage attributes for this product class:

  3. On this page, click "New attribute":

    pc-attr-add-attribute-2.png


    A popup titled "New attribute" appears:

  4. Use the fields of the "New attribute" popup to provide information about the new attribute. Specify the following information:

    • Attribute: Attribute name.

    • Attribute group: Select a group name from the drop-down if this is applicable.


      Use the Attribute Groups guide in X-Cart Help Center to learn how to join attributes into groups.


    • Type: Attribute value type (Plain field, Textarea, Yes/No).


      To choose a proper attribute value type for your attribute, refer to the guides from Attribute Value Field Types.


    • Display as: A display mode for multivalue attributes in the storefront. The property is available for a plain type of attribute only, starting with X-Cart 5.4.1.x.

      541-new-attribute-popup.png

  5. Click "Next." The popup extends with an option to add attribute values.

    The popup also adds the "Display option above the price" toggle that can display an attribute in the storefront if enabled. The setting applies to the newly created products only.


    For the multi-valued attributes and editable Textarea attributes (product options), the "Display option above the price" toggle is enabled by default and can not be disabled.



    If the "Display option above the price" toggle is enabled, the attribute will display in the storefront on the product details page:

  6. Click "New value" to configure the attribute options depending on the chosen attribute value field type. Add as many attribute options as you need.

    The screen below demonstrates adding a plain field value:

  7. The check-mark icon opposite the name of an attribute option allows its automatic application to all newly-created products in this product class. The enabled check-mark icon turns green.

  8. After you completed editing attribute options, click the "Save changes" button.
    The new items will be added to the product class attribute list.

You can add as many attributes to one product class as you need. Once all required attributes have been created, you can start assigning products to this product class in your store.

Related pages:


Did this answer your question?