If you are facing a problem like in magento admin you can’t save acl information for api / admin user, here is the solution :-
For Api User overwrite the constructor of the block Mage_Adminhtml_Block_Api_Tab_Rolesedit with following function :
If you are facing a problem like in magento admin you can’t save acl information for api / admin user, here is the solution :-
For Api User overwrite the constructor of the block Mage_Adminhtml_Block_Api_Tab_Rolesedit with following function :
When i have open products in edit mode in Magento 1.5 Admin then categories tree for product does not expand to show product sub-categories… Only Root categories were visible…
I couldn’t find proper solution for this problem… But i did patch which worked perfectly for me. Hope this will help to someone else too…
Solution:
There is some change in Categories.php file of magento 1.4.2 and 1.5.x
So,i have backed up old Categories.php in:
Magento allows us to create custom form in admin panel by creating our own custom module. We can create almost any field in the admin form by creating a class that extends the base class Mage_Adminhtml_Block_Widget_Form. The _prepareForm method allows to define our form elements.
Sometimes we may need to upload a file in the adminform, the default file field doesn’t provide the image preview when we upload an image file. For this purpose we need to use image field type as shown in the below snippet
$fieldset->addField('filename', 'image', array( 'label' => Mage::helper('customform')->__('Image'), 'required' => false, 'name' => 'filename', ));Magento Provides the Grid Based Layout in adminpanel pages for most of the pages like manage customers,manage products etc. The default row limit options are 20,50,100,200 etc per page. But for the stores with more than 1000 products and customers these options are not sufficient to display the records in less no. of pages.
Step 1: For this example we are going to add an additonal row limit count as 500. To do this locate the file which is reponsible for showing row count dropdown. The file is located in
app/design/adminhtml/default/default/template/widget/grid.phtml
Step 2: Around line 81 the code is located as shown below
Magento has a Newsletter Module that allows the storeowner/admin to send messages to the newsletter subscribers.
The customers/vistors can subscribe to the newsletter by filling the subscription form with their email id. However a small feature is missing in this module, Whenever a customer or visitor is subscribed to the newsletter the admin doesn’t get any notification/alert about the subscription. We can add this feature through our custom module. Our custom module will hook through the newsletter save event and triggers a function in our model class that will send the notification email to admin.
Step 1: Create an email template in html and save it app/locale/en_US/template/email directory. Our email template looks as shown