Magento 2 Training : Unit 5 – Lesson A We will create 3 controllers in order to add/edit an element : – NewAction – Edit – Save The “New” controller is named “NewAction” because “new” is a PHP keyword. Our
Add massactions and paging on adminhtml grid
Magento 2 Training : Unit 4 – Lesson E Create massActions on adminhtml grid with Magento 2 We will add the massactions button. For department, we will add “mass delete”, which will delete all checked lines. Open our XML file
Filters creation on adminhtml grid with Magento 2
Magento 2 Training : Unit 4 – Lesson D Add filters on a adminhtml grid On this grid, we will have 2 filters : – ID – Name These filters are added on our XML after the node <container name=”columns_controls”>
Checkboxes, bookmarks and actions on adminhtml grid
Magento 2 Training : Unit 4 – Lesson C Checkboxes and Bookmarks I think you saw the “Bookmarks” button (With the eye icon and the text “Default view”) You can choose, filters, sort and columns to display, and save the
Create adminhtml grid with Magento 2
Magento 2 Training : Unit 4 – Lesson B Now, the file we will modify is the uiComponent : app/code/Maxime/Jobs/view/adminhtml/ui_component/jobs_department_listing.xml Add an “Add new” button We well create a new button at the top of our page in order to
Cancel addStatusHistory with an Observer
Create a new observer on the config.xml of your module : <events> <sales_order_save_before> <observers> <mypackage_mymodule_cancel_add_history> <class>mymodule/observer</class> <method>cancelAddHistory</method> </mypackage_mymodule_cancel_add_history> </observers> </sales_order_save_before> </events> Create this observer : <?php class Mypackage_Mymodule_Model_Observer { public function cancelAddHistory(Varien_Event_Observer $observer) { $order = $observer->getEvent()->getOrder(); // My logic
Create an uiComponent with Magento 2
Magento 2 Training : Unit 4 – Lesson A Layout declaration To create page content, we must declare it in a layout. Remember, the layout’s name is associated with the controller. Our action is jobs/department, so our layout name is
Admin controller creation with Magento 2
Magento 2 Training : Unit 3 – Lesson E Backend controller declaration In the last Unit, we learnt how to create a frontend controller, now let’s create an admin controller. Create the file : app/code/Maxime/Jobs/etc/adminhtml/routes.xml You can put this content
Admin menu creation and access control list managment (ACL) on Magento 2
Magento 2 Training : Unit 3 – Lesson D Add menu in backoffice – On existing section We will add our menu on Magento BO. For this example, we will add it on “Content” section Create file app/code/Maxime/Jobs/etc/adminhtml/menu.xml And put
Magento 2.0.1, Magento CE 1.9.2.3, Magento EE 1.14.2.3 Updates (PATCH SUPEE-7405, PATCH SUPEE-7616)
Magento 2.0.1 update Go on the root folder of your Magento 2 installation and launch git pull If you have a message like : error: Your local changes to the following files would be overwritten by merge: [..] Please, commit