You should be able to do something like: $entity = 'catalog_product'; $code = ' status'; $attr = Mage::getResourceModel('catalog/eav_attribute') ...
Thanks for sharing. Just would like to add that once you did return ($attr && $attr- >getId()), adding ? true : false is not necessary as it already will ...
Try this way: if($eavSetup->getAttributeId(\Magento\Catalog\Model\Product:: ENTITY, 'attr_code')) { //Create the attribute }. This will attempt to ...
A customer can start an order on one device and complete it on another.
$entityType in your case is the 'catalog_product' as its a product attribute; It will throw an exception ...
SalesSetup Class doesn't support RemoveAttribute method so you cant delete already exist attribute ...
Ensure the attribute exists under Catalog->Manage Attributes->Attributes. If the attribute
The main functionality of custom attributes in your Order Management System
EDIT: this is not the correct answer. $product->offsetExists('pricekg');. See Varien_Object::offsetExists() (link).
This page describes how to install and configure the Magento Order