Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 4329

Questions about extending the Magento admin panel and the admin theme

3 votes
Accepted

magento Adminhtml Users Grid by Role Id add column

Replace following code. $collection->getSelect()->join( array('ar' =>'admin_role'), 'ar.user_id = main_table.user_id', array('role_id') ); So _prepareCo …
Sohel Rana's user avatar
  • 36.1k
1 vote
Accepted

Trying to hide order with specific status from the sales order grid in Adminhtml

Try following way: protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); $collection->addFieldToFilter('status', array('neq' => 'epay …
Sohel Rana's user avatar
  • 36.1k
1 vote
Accepted

Why _isAllowed() is being ignored?

So replace your code following code namespace Training\Test\Controller\Adminhtml\Action; class Index extends \Magento\Backend\App\Action { public function execute() { $content = $this …
Sohel Rana's user avatar
  • 36.1k
1 vote
Accepted

Magento 1x Sales Order Grid Source

sales/order_grid_collection collection load data from sales_flat_order_grid table sales/order_collection collection load data from sales_flat_order table. This table has no Bill and Ship to Name fiel …
Sohel Rana's user avatar
  • 36.1k
0 votes

Magento 1.9 Modifying Admin Customer Grid

So my overwrite grid looks like: app/code/local/SR/MagentoCommunity/Block/Adminhtml/Customer/Grid.php <? …
Sohel Rana's user avatar
  • 36.1k
1 vote
Accepted

Magento 2 - Custom user edit tab not displaying

Modify layout by following code: app/code/SR/MagentoCommunity/view/adminhtml/layout/adminhtml_user_edit.xml <?xml version="1.0"? … Note: Make sure your module name start with an uppercase character [Update] Add the following method in your block class which will sorting your tab [Testing/test/Block/Adminhtml/User/Tab/Test.php] …
Sohel Rana's user avatar
  • 36.1k
0 votes

Custom grid displays an empty string

inside this file /Block/Adminhtml/Attachment.php. $this->_controller = 'adminhtml_product_uploader'; this line should be $this->_controller = 'adminhtml_attachment'; Try now. …
Sohel Rana's user avatar
  • 36.1k
4 votes

Magento 2 - What is the LayoutProcessor for addresses in the admin panel?

For admin, you need to add field through ui_component form. Magento uses the following form by default. vendor/magento/module-customer/view/base/ui_component/customer_form.xml So in your case cr …
Sohel Rana's user avatar
  • 36.1k
5 votes
Accepted

Show data from two different tables in Magento Grid.php

You can try with following code. protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); $collection->getSelect()->joinLeft( 'sal …
Sohel Rana's user avatar
  • 36.1k
1 vote
Accepted

Invalid product id. Should be numeric value greater than 0

\Product\Edit\Button\Custom </item> </argument> </form> Button class [SR/StackExchange/Block/Adminhtml/Product/Edit/Button/Custom.php] namespace SR\StackExchange\Block\Adminhtml\Product … /Stackexchange/Custom.php] namespace SR\StackExchange\Controller\Adminhtml\Stackexchange; class Custom extends \Magento\Catalog\Controller\Adminhtml\Product { /** * @var \Magento\Catalog\ …
Sohel Rana's user avatar
  • 36.1k
4 votes

Magento Add Condition Rule In A Custom Form in magento 2

="sortOrder" xsi:type="number">10</item> </item> </argument> <htmlContent name="html_content"> <argument name="block" xsi:type="object">Magento\SalesRule\Block\Adminhtml
Sohel Rana's user avatar
  • 36.1k
2 votes
Accepted

How does the CMS page admin form data provider gets its data?

Check following function /** * {@inheritdoc} */ public function getDataSourceData() { $dataSource = []; $id = $this->getContext()->getRequestParam($this->getContext()->getDataProvider()-> …
Sohel Rana's user avatar
  • 36.1k
2 votes

Magento 2 : add custom JavaScript to CMS page create/edit in admin

Try following way: Vendor/Module/view/adminhtml/layout/cms_page_edit.xml <?xml version="1.0"? … referenceContainer> </body> </page> Vendor/Module/Block/Cms/Custom.php namespace Vendor\Module\Block\Cms; class Custom extends \Magento\Framework\View\Element\Template { } Vendor/Module/view/adminhtml
Sohel Rana's user avatar
  • 36.1k
1 vote
Accepted

Magento2 + UI component xml file stop working as mode of deployment change

Remove the comment section. Ex. <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ …
Sohel Rana's user avatar
  • 36.1k
16 votes
Accepted

Magento 2.1 Ui Component : Hide and show field base on dropdown field

name="validation" xsi:type="array"> <item name="required-entry" xsi:type="boolean">true</item> </item> </item> </argument> </field> NameSpace/ModuleName/view/adminhtml … ; $('div[data-index="monday_break_time"]').show(); $('div[data-index="monday_offbreak_time"]').show(); } }, }); }); NameSpace/ModuleName/view/adminhtml
Sohel Rana's user avatar
  • 36.1k

15 30 50 per page