Category : Magento

8 posts

Steps to add custom block in magento cms pages: Add the block code in content section of page Then goto system->permissions->block In block permission section add the block name  
To disabled notification in magento adminpanel follow the steps: In magento adminpanel from top menu select: System -> Configuration then at the bottom left side from advanced tab select advanced option  then find Mage_AdminNotification and select disabled option from dropdown then click on save config.  
Resolve “Please make sure your password match issue” in Magento 1.9
Recently i found issue “Please make sure your password match issue”  while login with facebook in magento, so i resolve this by the code below: $confirmation = $this->getConfirmation(); change it to with this $confirmation = $this->getPasswordConfirmation(); this is actually version compatible issue in magento, i found the error while debugging the extension because it was not …
$setId = 4; // Attribute set Id $groups = Mage::getModel('eav/entity_attribute_group')->getResourceCollection() ->setAttributeSetFilter($setId) ->setSortOrder() ->load(); echo "<pre>"; $attributeCodes = array(); foreach ($groups as $group) { echo $groupName = $group->getAttributeGroupName(); $groupId = $group->getAttributeGroupId(); $attributes = Mage::getResourceModel('catalog/product_attribute_collection') ->setAttributeGroupFilter($group->getId()) ->addVisibleFilter() ->checkConfigurableProducts() ->load(); if ($attributes->getSize() > 0) { foreach ($attributes->getItems() as $attribute) { /* @var $child Mage_Eav_Model_Entity_Attribute */ $attributeCodes[] = $attribute->getAttributeCode(); …
$entityType = Mage::getModel('catalog/product')->getResource()->getTypeId(); $collection = Mage::getResourceModel('eav/entity_attribute_set_collection') ->setEntityTypeFilter($entityType); $allSet = array(); foreach($collection as $coll){ $attributeSet['name'] = $coll->getAttributeSetName(); $attributeSet['id'] = $coll->getAttributeSetId(); $allSet[] = $attributeSet; } echo "<pre>"; print_r($allSet); echo "</pre>";  
Step 1. Go to Admin Panel then > System > Configuration > customer configuration > Login Options > set No to “Redirect Customer to Account Dashboard after Logging in” Step 2: Add the following code in your controller and set redirect as your need… const REFERER_QUERY_PARAM_NAME = 'referer'; public function preDispatch() { parent::preDispatch(); if(!Mage::getSingleton('customer/session')->isLoggedIn()){ $redirectUrl = …
I faced the same problem. I found solution add the following code in checkout/onepage.phtml checkout.gotoSection = function (section, reloadProgressBlock) { Checkout.prototype.gotoSection.call(this, section, reloadProgressBlock); $('opc-' + section).scrollTo(); };
PAGE TOP