Search Results
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 |
Questions about extending the Magento admin panel and the admin theme
22
votes
Accepted
Magento 2 System Configuration for Module issue
In your system.xml replace this
<tab>HelloWorldMVVM</tab>
with this
<tab>Pulsestorm</tab>
15
votes
Accepted
Adminhtml - How to add custom template for custom product attribute
<method>convertCustomValues</method>
</easylife>
</observers>
</adminhtml_catalog_product_edit_prepare_form>
</events>
</adminhtml … custom.phtml'); //set a template
}
public function render(Varien_Data_Form_Element_Abstract $element) {
$this->setElement($element);
return $this->toHtml();
}
}
app/design/adminhtml …
14
votes
Accepted
Detect default attribute set id
This should give you what you need:
Mage::getModel('catalog/product')->getDefaultAttributeSetId();
Additional info:
The default attribute set id is stored in the table eav_entity_type for each enti …
13
votes
Accepted
Move "Add new" button in product tab
This should be the block: {Namespace}/{Module}/Block/Adminhtml/{Entity}.php. … ()->createBlock('adminhtml/widget_button') //create the add button
->setData(array(
'label' => Mage::helper('adminhtml')->__('Add'),
'onclick' => "setLocation('". …
11
votes
Accepted
Magento 2 Ui Component Difference between <setting> & <argument> node
<settings> was introduced in version 2.2 and it serves only the purpose to have the ui components config files more readable and get autocomplete when defining something.
Basically what you add ins …
10
votes
Magento: add button on order view page with custom module
>
<rewrite>
<sales_order_view>CPT_TCS_Block_Adminhtml_Sales_Order_View</sales_order_view>
</rewrite>
</adminhtml>
</blocks>
</global>
</config>
Alternative
You don't need … Under the <global> tag add this:
<models>
<cpttcs>
<class>CPT_TCS_Model</class>
</cpttcs>
</models>
Then create the observer class CTP/TCS/Model/Adminhtml/Observer.php
<? …
9
votes
Accepted
Products grid in admin - add custom attribute(select drop-down) column
Add this above your column defnition:
$weight = Mage::getModel('eav/config')->getAttribute('catalog_product', 'custom_weight');
$options = $weight->getSource()->getAllOptions(false);
$weights = array …
9
votes
Accepted
Custom button in Admin Form
When defining a form element you have the option of specifying after_element_html. what you put there will be shown after the element itself. Here is an example:
$fieldset->addField('some_field', 'te …
9
votes
Add custom grid to custom tab in admin panel
Add the following to your config.xml file inside the <adminhtml> tag.
<events>
<core_block_abstract_prepare_layout_after> <! … = '-1') {
$post = Mage::helper('adminhtml/js')->decodeGridSerializedInput($post);
$product = Mage::registry('product');
$articleProduct = Mage::getResourceSingleton( …
8
votes
Accepted
Breadcrumb definitions for backend pages
I've been wondering the same thing for a while.
Here is my conclusion: This is just an other unfinished Magento feature like there are others (see the <layout version="0.1.0"> discussion for example). …
8
votes
Accepted
Is there an event for after a product is saved only in admin?
There is no special event for saving the product from the admin interface, but you can use the general catalog_product_save_after and add a constraint to it based on the request.
Something like this:
…
8
votes
Accepted
Got confused with custom Adminhtml controller
To get the url for your page (including the key) you need to call this Mage::helper('adminhtml')->getUrl('adminhtml/framexport/index'). …
7
votes
Accepted
Add a filtering column in admin grid
The value of your column is not joined automatically to the collection listed in the grid.
The collection listed in the grid is an instance of Mage_Review_Model_Resource_Review_Product_Collection.
You …
7
votes
Accepted
Right way to create butons in uiComponent form in Magento 2
can declare buttons inside the
<argument name="data" xsi:type="array"> tag as this
<item name="buttons" xsi:type="array">
<item name="back" xsi:type="string">[Namespace]\[Module]\Block\Adminhtml … \Button\Back</item>
<item name="delete" xsi:type="string">[Namespace]\[Module]\Block\Adminhtml\Button\Delete</item>
<item name="save" xsi:type="string">[Namespace]\[Module]\Block\Adminhtml …
6
votes
Accepted
Magento 'adminhtml/session' addError / addSuccess rendering on incorrect pages
This is somehow a feature. Here is how addError, addSuccess, addNotice, addWarning work.
The message you give as a parameter for those methods are added to the session.
when a page is viewed, Magento …