0

I am getting the attribute set collection

$attributeCollection = $this->eavCollectionFactory->create();
$attributeSet=$attributeCollection->getItems();
foreach($attributeSet as $attSet){
print_r($attSet->getData());
}

its return the following result

   Array
(
    [attribute_set_id] => 1
    [entity_type_id] => 1
    [attribute_set_name] => Default
    [sort_order] => 2
)

Array
(
    [attribute_set_id] => 2
    [entity_type_id] => 2
    [attribute_set_name] => Default
    [sort_order] => 2
)

Array
(
    [attribute_set_id] => 3
    [entity_type_id] => 3
    [attribute_set_name] => Default
    [sort_order] => 1
)

Array
(
    [attribute_set_id] => 4
    [entity_type_id] => 4
    [attribute_set_name] => Default
    [sort_order] => 1
)

Array
(
    [attribute_set_id] => 5
    [entity_type_id] => 5
    [attribute_set_name] => Default
    [sort_order] => 1
)

Array
(
    [attribute_set_id] => 6
    [entity_type_id] => 6
    [attribute_set_name] => Default
    [sort_order] => 1
)

Array
(
    [attribute_set_id] => 7
    [entity_type_id] => 7
    [attribute_set_name] => Default
    [sort_order] => 1
)

Array
(
    [attribute_set_id] => 8
    [entity_type_id] => 8
    [attribute_set_name] => Default
    [sort_order] => 1
)

Array
(
    [attribute_set_id] => 10
    [entity_type_id] => 4
    [attribute_set_name] => attribute_set_name
    [sort_order] => 200
)

Why there are multiple occurrence of attribute_set_name="default" ? backend admin there is only one attribute set with name Default screenshot of backend list of attribute set attached

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.