questions

2 Answers

How to assign all the attributes to an attribute group?

Asked by: Geneva King 2111 views , ,
Questions

I am focusing on an import module for magento. I have to discover if the attribute goes for an attribute group. I’ve got the attribute loaded, along with the

attribute group. I have attempted the following code:

$attributeCollection = $attributeGroup->getAttributes();

The idea was which I could consider the collection, and see set up attribute continues to be designated towards the attribute group.

Need assistance if anything wrong with my code?

2 Answers

  1. Best Answer


    Magento Expert on Jul 24, 2013

    Hi Geneva,

    If there were external attributes or a custom attribute from an extension then you need to include them.

    Try to use this simple codes below to check if the attribute does exist.
    var_dump($attributeCollection);

    Please post the attribute details and the result here, I need to see it for my assessment.
    Cheers!

    Regards,
    Rex

    +2 Votes Thumb up 3 Votes Thumb down 1 Votes



    • Geneva King on Jul 30, 2013

      Hi Rex,

      Your code is working fine and my problem is gone as i feel like i never got any issue with this.

      Thank you for your guidance.

      Best Regards
      Geneva

      +3 Votes Thumb up 3 Votes Thumb down 0 Votes


Answer Question