adminhtml

What is the proper way to add a custom dashboard “box” in the Magento backend without editing default templates?

谁都会走 提交于 2020-03-16 06:40:10
问题 I am working on creating what I hope one day will be a publicly available Magento extension (this part I mention because it's important to me that I do the "right thing" here). One of the things I would like to do is add a box in the default Magento dashboard, basically a new "box" exactly like "Top 5 Search Terms" except with my own content. I would like my new custom box to be the last box that is displayed (ideally). The issue that I'm running into is that the template that is responsible

Magento select field disables row in related products

北城余情 提交于 2020-01-02 19:16:10
问题 I have added a tab with functionality similar to related products, I have added a column with a dropdown like this: $this->addColumn('mycolumn', array( 'name' => 'mycolumn', 'header' => Mage::helper('catalog')->__('Display on current child page'), 'index' => 'mycolumn', 'type' => 'select', 'width' => '1', 'align' => 'center', 'options' => array( 1 => Mage::helper('catalog')->__('Yes'), 0 => Mage::helper('catalog')->__('No'), ), 'editable' => true )); Everytime i change the selection my

Adding new Tab to Order View page not displaying in Magento

我的梦境 提交于 2019-12-25 07:18:52
问题 Here is my config file: <?xml version="1.0"?> <!-- /** * MageWorx * Admin Order Editor extension * * @category MageWorx * @package MageWorx_OrdersEdit * @copyright Copyright (c) 2015 MageWorx (http://www.mageworx.com/) */ --> <config> <modules> <MageWorx_OrdersEdit> <version>2.0.3</version> </MageWorx_OrdersEdit> </modules> <admin> <routers> <adminhtml> <args> <modules> <MageWorx_OrdersEdit after="Mage_Adminhtml">MageWorx_OrdersEdit_Adminhtml</MageWorx_OrdersEdit> </modules> </args> <

Grid column filter not working with two models in magento custom module

烈酒焚心 提交于 2019-12-24 04:08:17
问题 I'm working with custom module for the magento backend, in this filter not working when using filter calback! Can anyone suggest me? Thanks! I have tried some codes like this, Grid.php protected function _prepareCollection() { $collection = Mage::getModel('listings/listings')->getCollection(); $this->setCollection($collection); return parent::_prepareCollection(); } protected function _prepareColumns() { $this->addColumn("item_id", array( "header" => Mage::helper("linkmanagement")->__("ID"),

magento tabbed backend like catalog/product for custom entity

北慕城南 提交于 2019-12-23 02:26:28
问题 I want to write a module with a custom entity. In the backend it shall look like the backend from products (tabs on the left, forms on the right). I tried many variants and inspected/copied many things from the core to understand it... well I don't. Knows anyone a tutorial or the neccessary key points to realize this? Many thanks Edit: well, it's not the problem to create own entities, this is well known. I need help to create the backend, so that the result looks like the tabbed form when

Magento admin grid sending data from Action to Controller

别说谁变了你拦得住时间么 提交于 2019-12-20 01:43:53
问题 I'm trying to write a custom action to run off of an admin grid that I have built. Is it possible to send a value from a column in the grid to the controller via either get or post? I've tried googling, but I cannot find a proper explanation for this anywhere. A link to an explanation of the column settings ('getter', 'type' etc.) would also be useful if this is available. 回答1: Add this code to your Grid.php: $this->addColumn('action', array( 'header' => Mage::helper('yourmodulename')->__(

Magento Adminhtml override module not working

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 00:24:50
问题 Stemming from my last question, I am stumped trying to do an override. I am doing exactly what MudithaE's answer here did, too. I want to implement my own _prepareColumns() as found in the file app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php . I set up my module's directories and the files as below. While researching, I saw a lot of developers like to do Dev_Module_Block_Adminhtml_blah , so I tried changing the directory structure and class names everywhere in my code. No change. My

Admin route in custom modules

谁都会走 提交于 2019-12-11 12:37:09
问题 All stock magento modules have URL path in backend which has 'admin' (by default) part. However I was not able to achieve that for a custom module. Is this not possible or done on a purpose? Thanks 回答1: The first part of the URL is known as the "frontName". http://example.magento.com/frontName/controllerName/actionName Magento only allows a single module to claim a particular frontName. For the admin frontname, that's Adminhtml . However , Magento 1.3 introduced a configuration syntax that

Magento custom module adminhtml/base/default

爱⌒轻易说出口 提交于 2019-12-11 08:16:44
问题 My custom module is generating this error on the system log everytime I try to view the indexController. 2012-01-25T17:23:08+00:00 CRIT (2): Not valid template file:adminhtml/base/default/template/page/2columns-right.phtml I've been fishing through my module code for hours, just can't seem to find anything wrong. What could cause this? The base/default folder doesn't even exist under adminhtml. 回答1: The " base/default " package/theme is the final folder Magento will look for template files in

Magento Email Templates: Blocks not rendering from adminhtml

元气小坏坏 提交于 2019-12-10 23:13:53
问题 I fear I've stumbled into unknown Magento territory. I have exhausted what's left of my Googling abilities and have come up short, so I thought I'd try my luck here. Our platform is Magento Enterprise 1.9.1.1. We use an archaic print solution that reads orders via ODBC. As such, we can't have it read from Magento's MySQL database directly (thanks to the high likelihood of change). What I've done is extend Mage_Sales_Model_Order to intercept the _beforeSave() function with direct SQL queries