How do I get attribute set name?

Whenever you have a product object, you can access its attribute set like this: $attributeSetModel = Mage::getModel(“eav/entity_attribute_set”); $attributeSetModel->load($product->getAttributeSetId()); $attributeSetName = $attributeSetModel->getAttributeSetName(); This will give you the name of the attribute set, which you can then compare using strcmp: if(0 == strcmp($attributeSetName, ‘My Attribute Set’)) { print $product->getAttributeText(‘attribute’); }

Please enter a valid URL. Protocol is required (http://, https:// or ftp://) in Magento 1.9.2 installing?

Resolve this issue by the following methods (from good to worse): 1) Inspect the url field and delete the class ‘validate-url’ to stop validation from the field and proceed the process. have a good Luck guys. OR 2) just mark the “Skip Base URL Validation Before the Next Step” checkbox. OR 3) use 127.0.0.1 instead … Read more

How do I create a simple ‘Hello World’ module in Magento?

First and foremost, I highly recommend you buy the PDF/E-Book from PHP Architect. It’s US$20, but is the only straightforward “Here’s how Magento works” resource I’ve been able to find. I’ve also started writing Magento tutorials at my own website. Second, if you have a choice, and aren’t an experienced programmer or don’t have access … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)