Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9119787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:28:43+00:00 2026-06-17T05:28:43+00:00

I have spend hours trying to figure out but failed. I need to extract

  • 0

I have spend hours trying to figure out but failed. I need to extract a label and value for ‘manufacturer’ attribute in Magento. BUT I need to get the description which is in admin field – not the one which is store specific.

I have found many methods how to get store-specific, also I could extract all of the options for the attribute, but couldn’t get just a combination of current article from product page + admin value + admin label (no matter from which store I am accessing it).

Would anyone be able to help on that?

This gives an array of all values+labels, but not for a concrete article:

<pre><code>
$attribute = $_product->getResource()->getAttribute('manufacturer');
foreach ( $attribute->getSource()->getAllOptions(true, true) as $option){
$attributeArray[$option['value']] = $option['label'];
}
</code></pre>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:28:45+00:00Added an answer on June 17, 2026 at 5:28 am

    Just get the value of the product manufacturer and get the label from your array of options like this:

    $manufacturerOfProduct = $product->getManufacturer();
    $attribute = $_product->getResource()->getAttribute('manufacturer');
    foreach ( $attribute->getSource()->getAllOptions(true, true) as $option){
       $attributeArray[$option['value']] = $option['label'];
    }
    var_dump("Product manufacturer value is ".$manufacturerOfProduct." and label is ".$attributeArray[$manufacturerOfProduct]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an issue that I've spent hours trying to figure out, but since
I have spend about 3 hours trying to figure this out and it seems
I have spent the last 3 hours trying to figure this out but I
I am new to XSLT and have spent hours trying to figure out a
I have now spent several hours trying to figure this out. I have this
I have spent 8 hours or so today trying to figure this out. I
I'm sorry to ask this question but I have spent hours trying to understand
I know this is an old question, but I have spend any hours on
I've spent hours trying to figure out what the problem could be. As I
Alright, I've spent about 5 hours trying to figure this out. Absolutely none of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.