A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

Filter by
Sorted by
Tagged with
2
votes
1answer
835 views

Add out of stock product to quote

I'm trying to add a product to a quote in admin (programmatically), the model of the quote is sales/quote, as seen in sales_order_place. Problem is the quote will not accept products which are out of ...
2
votes
0answers
271 views

Magento 1.8 some orders are giving white screen [closed]

After migrating from 1.7 to 1.8, i get a white screen with some orders. If i check for page source, at the very end i have "Fatal error: Call to a member function getProductOptions() on a non-...
2
votes
2answers
3k views

Admin Grid - Assign CSS class to new orders

I'd like to simply add a new-order class to an order row (or field, which seems simpler) if an order was placed in the last day. For testing, I haven't moved anything to an overridden class, I'm ...
0
votes
1answer
73 views

Debugging instantiated classes in Magento

In PHP there get_object_vars, get_class and methods that return information about the class, we can use the Magento Zend_Debug::dump(), Mage::log() and up XDebug, but during module development in ...
3
votes
1answer
256 views

Admin field type with arbitrary number of subfields

I'm making some custom module for magento and need backend settings for my custom entity. So far all was ok, I made a section through xml, made general CRUD actions and some settings that are ...
1
vote
1answer
1k views

where to place the templates of an adminhtml block?

I have a custom design called mydesign and a custom extension (My_Testmodule). if i create the following block in my own module: class ...
1
vote
0answers
2k views

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'sfoa.postcode' in 'field list' [closed]

I am getting the above error on the Customer/Orders tab in Magento admin which is related to a module that is adding columns to the sales_order_grid. I chosen the Observer method since there is ...
0
votes
2answers
871 views

Add status to category product listing tab

When in categroy admin, products tab don't show their status in any way. How to add that kind of feature? What files should I edit? I think solution could be either: Add status field to listing ...
0
votes
2answers
681 views

Modify the Order Grid with Customer Information

I am trying to modify the order grid in which I require the customer information like active or deactivate which is my custom customer attribute so how can I display it in grid. I have also required ...
2
votes
1answer
996 views

Use Website/Default checkbox for Mage_Adminhtml_Block_Widget_Form field

I have a form in the admin section that is dealing with a custom entity. This entity has a main table and then a table to store options on a store level. I am wondering if it is possible to use the ...
4
votes
1answer
705 views

show extra column items grid order

I have added a extra column in sales_flat_quote_item table. Populating the column during checkout works fine. But showing the values of the extra column on the order details page in admin does not ...
0
votes
1answer
406 views

Display image in system configuration? [closed]

I want to display a image for radio button value in system configuration. As well i want to show that selected image in my front-end. Help me to do this. Thanks
0
votes
1answer
963 views

Custom Adminhtml Grid - Set Global Width

I've created my own adminhtml grid for a module and was wondering if somebody could point out how I can adjust the width of the whole grid itself? (I.E to only utilize 80% of the page width). Please ...
1
vote
1answer
1k views

delete an image from media folder

Is there any method to delete files in magento? I have a custom module using which I can upload images to the folder media. Now I am planning to provide a delete option under each uploaded images(...
0
votes
2answers
210 views

What's the best practice for Magento dependencies?

Synopsis I have a question regarding the best practices with Magento dependencies. Essentially I have a custom module that overrides Mage_Adminhtml_Catalog_ProductController this currently works ...
3
votes
0answers
2k views

How to add Form Fields to a custom Report? [closed]

I'm new to Magento and PHP in general. I made a simple extension with a custom report based on the Products/Ordered report that shows a few extra fields and does some simple calculations based on ...
1
vote
2answers
1k views

Credit memo only working some of the time

I have issues with executing the credit memo functionality in Magento. Sometimes it works and sometimes it doesn't. So far I have been able to narrow it down to a call to this function $order->...
1
vote
1answer
374 views

Add mailto functionality in admin field

How can i new field in admin filed that contain mailto functionality $fieldset->addField('email', 'link', array( 'label' => Mage::helper('mumodule')->__('Email'), "target"=>"...
0
votes
2answers
442 views

Custom grid displays an empty string

Synopsis I have a custom module which is designed to allow attachments to be uploaded for a specific product. I have done some research and lot's of trial and error, but I think my lack of ...
0
votes
1answer
78 views

adminhtml mis-configuration

When I click a link to go to my admin module I receive an empty content area with a 404 page not found message. I am assuming this is due to the module being misconfigured. But I cannot find where the ...
0
votes
2answers
6k views

How to change attributes of a magento admin form field label

I want to change the css class of a admin field's label. As I have found out there is not setter method such as setLabelHtml, I am not able to change the class. At last I override the ...
4
votes
2answers
3k views

How to display only the Inventory Tab in admin Product edit section?

The Product edit section (Catalog->Manage Products -> edit) I want to display only the Inventory tab for a particular admin user role. For instance an admin user with "test" as user role should only ...
7
votes
2answers
16k views

Override a controller in Adminhtml

Currently I'm trying to override the GroupController of Mage_Adminhtml_Customer so I can add some code for saving my custom field in the Customer Groups menu. As you can think it doesn't really work ...
0
votes
1answer
2k views

Append block to admin login form

I need to append a input field to the admin log in page. I have created an Observer.php hoping to do so. I simply want to add an input to the login form on the admin side. app\code\local\Wsu\...
3
votes
1answer
208 views

Varien_Profiler and _redirect in Adminhtml

I want to profile a particular slow admin action that we have, but it calls _redirect at the end, is there an in-built way of seeing this profile information, or will I have to manually create an ...
2
votes
1answer
3k views

Call to a member function append()

I am getting an error Call to a member function append()....Mage/Adminhtml/Controller/Action.php on line 122 . I have worked out it is down to my indexAction in the controller public function ...
5
votes
1answer
853 views

Breadcrumb definitions for backend pages

I have often seen breadcrumb definitions in controllers that solely manage backend pages, e.g. /app/code/core/Mage/Adminhtml/controllers/CatalogController.php But I have never actually seen a ...
0
votes
2answers
959 views

Can't share data across modules with Mage::getSingleton

I have used Mage::getSingleton to share data across and within Modules before, but I'm coming across a problem where its not working in this specific scenario. My module asks questions at checkout ...
0
votes
2answers
2k views

Is it possible to display the gross profit of a product as an attribute in the admin page of a product?

Simply looking to create an area/block in the admin area of a product page that displays what the current gross profit is on that product. I.e. calculating the difference between the cost price and ...
3
votes
3answers
2k views

Observer for Admin Order Grid

I would like to restrict order based on an Admin user. So for example the admin user would have an attribute that is assigned to a certain region (Group of Zipcodes). When the user logs in they could ...
1
vote
1answer
559 views

Making an adminhtml rewrite work

I have followed this tutorial from inchoo.net to get a test module to override a frontend module and it worked. I am now trying to override an adminhtml module, but without much less success. <...
6
votes
3answers
4k views

Why is the default js files outside the theme package?

I am developing a new admin module and needs to customize the magento admin panel. i've created a new theme in default package of adminhtml. In the skin folder (skin/default/mytheme) i've included my ...
1
vote
1answer
2k views

Add custom module Tab(gird) in admin Dashboard

I've build a custom extension but now I would like to add some data from this extension to the dashboard page. To be precise I would like to add it to the tabs you see in the image attached. Can ...
0
votes
1answer
2k views

Magento show dropdown menus in the admin dashboard from custom module?

I am just a newbie to magento. I want to add two menus in the top menu section of admin dashboard. The menu will be like this Storeinfo(parent) Store1(child menu level1/dropdown1) Store2(child ...
3
votes
2answers
7k views

Load Custom Admin Template

Developing a simple custom module, and the hardest part is getting the template to load in the admin. I'm sure I'm missing something simple (but important). The template will not load. I believe ...
0
votes
1answer
2k views

How to Overwrite magento app->design->adminhtml

I have modified app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml what is the quick process to overwrite the page?thanks
0
votes
1answer
2k views

setAttribute method for source model

I added a custom attribute to customer entity with a custom source model in which I defined my toOptionArray method but when I open the customer to edit, I am getting this error: Fatal error: Call to ...
1
vote
1answer
599 views

adding admin features to my module

My problem I have spent some time now learning the basics of magento in order to create my first Module. This module has now being completed and I would like to improve upon it by adding some ...
0
votes
1answer
247 views

Fetching an admin URL from frontend

I am trying to access an admin routed url from a frontend routed URL using curl. I do the following: $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, 'http://site.com/index....
5
votes
2answers
1k views

How do I make certain frontend pages accessible only by admin?

How do I make certain frontend pages accessible only by admin? I have tried using Mage::getSingleton('core/session') and Mage::getSingleton('admin/session') to no good end. Any suggestions? Oh, and ...
3
votes
1answer
5k views

Move “Add new” button in product tab

I have created a custom module that shows data in a grid. How do I move the 'add new rate' button from the module header to the grid? I have not tried anything yet as I have no idea where to start.
2
votes
2answers
72 views

Hide thumbnail of Backend file uploader

I am using magento's default file uploader in my custom modules. How can I hide the image thumbnail shown in image below?
0
votes
1answer
1k views

Admin crud - achievable by beginner?

I have a task where i must implement a relatively involved crud module. It will have a few different entities which will require a couple of different admin crud forms and the associated navigation ...
3
votes
1answer
3k views

Custom form template - yesno select box html

Is it possible either in a block or template (adminhtml) to render a yes/no select box directly? Without having to get the option array first and then build the select manually? I would have thought ...
0
votes
2answers
772 views

Images are not displaying

I am new to Magento. I have create one dummy page in Magento, when I display this page images are not showing. But this code works in an .html file. Could you tell me where I went wrong? public ...
0
votes
1answer
1k views

Add input fields as grid structure in cms page edit form

I added a custom tab in cms page edit form. In custom tab I create a form, and now I want to add/append a template(some input fields in grid structure) in this form in custom tab as a fieldset of cms ...
3
votes
1answer
158 views

Is it possible to add an event (hook) to a core action without overriding it?

I'd like to add a hook to a Magento core action (in this specific case Mage_Adminhtml_Sales_Order_CreateController::saveAction() but I hope there's a general solution). Just a hunch, but it seems to ...
4
votes
1answer
684 views

How to set maximum value of date attribute in Magento?

I want to set maximum value of "Date of Birth" (dob) attribute of the customer. I want to set this date only earlier than today (not for future). After change I want to have JS validation on ...
1
vote
1answer
2k views

save new tab data in separate table when save cms >> page data

I am developing a module in magento. I added a new Tab in CMS >> Page core module through my custom module. I want to save new tab data in separate table which one created by custom module. My problem ...
1
vote
1answer
3k views

Custom Backend Module showing blank Page

I am having a feeling this is a simple issue. I have a module I created for Magento 1.7.0.2, however it's just showing a blank page when clicked. Here are my module files: app/code/community/LAMP/...