adminhtml

404 error in Custom Magento configuration in admin

落花浮王杯 提交于 2019-12-10 02:14:17
问题 I'm developing a custom SMS module in Magento 1.6. I've setup the system.xml file to manage the related custom configuration fields. The menu entry shows up, but when I click it, a 404 error page is shown instead of the expected configuration fields list. Can you see any errors in my code? <config> <tabs> <mynew_tab translate="label"> <label>SMS Gateway Integration</label> <sort_order>100</sort_order> </mynew_tab> </tabs> <sections> <smsconfig translate="label"> <label>SMS Gateway Integration

Accessing Object of Magento Admin Grid via Java-Script

若如初见. 提交于 2019-12-08 09:56:19
问题 I would like to access the JavaScript Object of the Magento Adminhtml Grid. I want to reload the Grid after my Dialog is closed an the Ajax-Request to the Controller has finished. If i modify the grid.js this is easy to make. But i don't want to modify the grid.js of magento itself. Any ideas how i can access that object? 回答1: Late answer, but maybe it will help someone If you setup the grid in Grid.php like this: parent::__construct(); $this->setId('your_grid_id'); . . . from javascript,

Magento select field disables row in related products

混江龙づ霸主 提交于 2019-12-06 11:22:25
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 product gets unchecked and the row is disabled. I found that this line was commented in magento:

404 error in Custom Magento configuration in admin

家住魔仙堡 提交于 2019-12-05 01:22:46
I'm developing a custom SMS module in Magento 1.6. I've setup the system.xml file to manage the related custom configuration fields. The menu entry shows up, but when I click it, a 404 error page is shown instead of the expected configuration fields list. Can you see any errors in my code? <config> <tabs> <mynew_tab translate="label"> <label>SMS Gateway Integration</label> <sort_order>100</sort_order> </mynew_tab> </tabs> <sections> <smsconfig translate="label"> <label>SMS Gateway Integration</label> <sort_order>200</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in

Magento add block to sales order create

倖福魔咒の 提交于 2019-12-04 15:48:28
问题 I am trying to add a block to the admin create order screen. Im my layout xml I have <adminhtml_sales_order_create_index> <reference name="head"> <action method="addItem"><type>skin_js</type><name>js/fee/fee.js</name></action> </reference> <reference name="data"> <block type="fee/adminhtml_insuranceselector" after="shipping_method" name="fee.insurance" template="fee/sales/order/insuranceselector.phtml" /> </reference> </adminhtml_sales_order_create_index> <adminhtml_sales_order_create_load

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

折月煮酒 提交于 2019-12-02 01:13:15
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 for rendering the dashboard calls out specific blocks to be rendered, and these blocks are nested

Magento admin grid sending data from Action to Controller

余生长醉 提交于 2019-12-01 20:33:54
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. Add this code to your Grid.php: $this->addColumn('action', array( 'header' => Mage::helper('yourmodulename')->__('Action'), 'width' => '100', 'type' => 'action', 'getter' => 'getId', 'actions' => array( array( 'caption' =>

Magento Grid Container Block not loading grid

喜欢而已 提交于 2019-11-30 13:25:46
问题 I just set up an admin module with a grid view using the module creator, and it works great, but now I need to add another grid view within the same module. I copied and renamed all the files relevant to the grid view(controllers and block files, but not models, as they are not needed for what I'm doing) , and added the newly created block to the layout xml under the handle for it's new controller. Using Firephp, I've worked out that everything loads fine for my new view up until the Grid.php