ssossossosso

Forums

Covering OroCommerce topics, B2B eCommerce trends, community updates and company announcements.

This topic contains 2 replies, has 1 voice, and was last updated by  mlozynskyy 2 months, 1 week ago.

  • Creator
    Topic
  • #4952

    mlozynskyy
    Participant

    Hello,
    How can I create product attribute programmatically. Below is my template of code:

    That code add attribute to Products->Product Attribute, but when I created my new Product based on new Family, I’ve got an error:

    Maybe I forgot to add something?! Could You help me?
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #4954

    mlozynskyy
    Participant

    The attribute has added successfully to the table: “oro_entity_config_field“,
    but there is no data in oro_entity_config, in “data” column for class_name “Oro\Bundle\ProductBundle\Entity\Product”

    #4981

    mlozynskyy
    Participant

    It is possible to create product attribute via install script (Schema). And after assign it to Group and Family:

    And add product to Family:

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.