hey can u please guide me how to access the attribute if Input Type is choosen yes/no and how to access its value that’s Yes/No…so i want to set condition according to it on view.phtml page under product..
can u please guide me through this…….

Anupama

Hi,

Thanks.
This helps me to get attribute value.
Also want to add one more thing here,

If your attribute has select box, for example I have attribute “Metal” :

Gold
Silver
Platinum

By applying the following code :$attributeValue = Mage::getModel('catalog/product')
->load($_product->getId())
->getMetalType();

how to get configurable products attributes values and options. pls help it is urgent

codep

very elegant examples…

I’ve put code to get attribute value into product’s issalabe method (mage – catalog – model – product.php) and sometimes it returns attribute value but sometimes it doesn’t – i.e. when product->isSaleable() is called from list.phtml attribute value does not exist, but when is called from simple.phtml it returns attribute value normaly. Do you have any idea why is that?

http://magentoexp.blogspot.com ansh

@codep use this to get attribute value for any product
$attributeValue = Mage::getModel('catalog/product')
->load($product->getId())
->getAttributeText($attrb_code);

jarus

Hello , how can we delete attribute value without going to have to go to the attribute itself , is there a way to delete attribute value like we access attribute values?

http://www.bluehorse.in Md.Shawkat Alam

i have the attribute manufacturer.

i have a option of that attribute acer.

i want to know the id of that option.

i have to echo in magento admin panel.

help me

nate

any help to set attributes when creating a product. I am able to pull up the attribute set and reference the option values in the array but I cant seem to set a attribute value when creating a product. This code creates a product but its color and size options are not set.

I would like to display all customer attribute labels (name,email,telephone,) in a drop down box.
Something Like Attributes – (dropdown list – Name,Telephone,Email,Created At,Customer Group, Company, ZipCode, country, Satte/Province, etc..)

How to do that. Please reply as soon as possible. this is very much needed for me to use in an application

Ivn

Hi there,

Is there any way I could display all customer attribute labels (name,email,telephone,) in a drop down list and then as per the value selected retrieve that particular attribute’s id, label, default value, etc ?

Alex Secutec

Thank you so much, that is very usefull, but I have a question:
Mage::getModel(‘catalog/product’)->load($_product->getId())->getAttributeText(‘icontags’);
allows us to display Attributes values but could you give me a tips if I want display the “id” of each values of the attribute.

http://www.facebook.com/oschmid Oliver Schmid

Hi, thanks a lot for sharing your knowledge!

I need to get the data of the field “admin” of a Dropdown Attribute. How can I get that?

Hello, I, instead, I need to export all attributes and attribute set in csv, you have an idea how can I do?

Carlos Cárdenas

Thanks a lot, this saved me a lot of time. But I have one question.
Is it possible to disable one value of one attribute in code? So, if I have 3 possible values for the attribute for one product, the user can only choose between the other two values, this based on certain logic Thanks :)

but its throwing error as “Integrity constraint violation: 1052 Column ‘option_id’ in where clause is ambiguous”

pls help me in that. I am using magento 1.7.0.0

cyril

+1

saravanan P

hey,can you please help
i need to list out attributes in the category page not for all. only category related attributes. Please help me to resolve it asap. Thanks in advance

Aliasse

One of the best article about Magento attributes ! So useful ! Thanks :)

Asra Shoaib

saved me !!

Manish Shrestha

Just what I was looking for. Thanks.

Pubblicità Milano

hi, in what files of magento will be added this code to display attribute values? could someone suggest pathfile? thank you!

About

Mukesh Chapagain is a graduate of Kathmandu University (Dhulikhel, Nepal) from which he holds a B.E. in Computer Engineering. Mukesh is a passionate web developer who has keen interest in open source technologies, social media, programming & blogging. more...