Transferring one opensource database to other is a common headache.Recently i faced this problem when i need to move the…
Classic Blog List
Here, I will show you, how you can change your order status programmatically (with PHP coding). First, you need to…
Display Top Level Categories Only <?php $_helper = Mage::helper(‘catalog/category’) ?><?php $_categories = $_helper->getStoreCategories() ?><?php if (count($_categories) > 0): ?><ul><?php foreach($_categories…
$productId = ‘SOME_PRODUCT_ID’; $product = Mage::getModel(‘catalog/product’)->load($productId); $productMediaConfig = Mage::getModel(‘catalog/product_media_config’); $baseImageUrl = $productMediaConfig->getMediaUrl($product->getImage()); $smallImageUrl = $productMediaConfig->getMediaUrl($product->getSmallImage()); $thumbnailUrl = $productMediaConfig->getMediaUrl($product->getThumbnail());
$entityTypeId = Mage::getModel(‘eav/entity’)->setType(‘catalog_product’)->getTypeId();$attributeSetName = ‘Default’; //Edit with your required Attribute Set Name$attributeSetId = Mage::getModel(‘eav/entity_attribute_set’)->getCollection()->setEntityTypeFilter($entityTypeId)->addFieldToFilter(‘attribute_set_name’, $attributeSetName)->getFirstItem()->getAttributeSetId();$attributesInfo = Mage::getResourceModel(‘eav/entity_attribute_collection’)->setEntityTypeFilter($attributeSetId) //4 = product…
here is the process to enable the error printing in magento 1. go to magentoRoot/errors folder and make the copy…
Use below 2 magneto event to dispatch event in magento <controller_action_predispatch><observers><pioc_backoffice_shipping_observer><class>PIOC_Backoffice_Model_Shipping_Observer</class><method>hookToControllerActionPreDispatch</method></pioc_backoffice_shipping_observer></observers></controller_action_predispatch> <controller_action_postdispatch><observers><pioc_backoffice_shipping_observer><class>PIOC_Backoffice_Model_Shipping_Observer</class><method>hookToControllerActionPostDispatch</method></pioc_backoffice_shipping_observer></observers></controller_action_postdispatch> The below are 2 custom event that we…
ALTER TABLE `admin_assert` ENGINE=InnoDB;ALTER TABLE `admin_role` ENGINE=InnoDB;ALTER TABLE `admin_rule` ENGINE=InnoDB;ALTER TABLE `admin_user` ENGINE=InnoDB;ALTER TABLE `adminnotification_inbox` ENGINE=InnoDB;ALTER TABLE `api_assert` ENGINE=InnoDB;ALTER TABLE…