Admin and Frontend icon fonts missing after installing Magento2.O
1. Open file app/etc/di.xml in and editor
How to delete a product in Magento2 Programatically
To delete a product from frontend
Magento Events and Observers
To separate your custom code from the core code we use event driven programming where an event is fired and an observer is listening for specific events and executing certain logics on specific event. These events have certain class objects attached as function parameter .Observers (Class functions) runs when the event is fired and receive the cla... Read More
Export list of products that have no category in magento
To get the list products have no category we need to retrieve the product collection and then filter the result with category check , filtered result will make to export in csv format.
Save contact us queries in database magento and view it's listing in admin panel
To save contact us queries we need to override the Contacts_IndexController and put the insert queries by overriding Post function. Also we need to create a module to show the customer queries listing in Admin Panel and create a table with relevant field to save the contact us query.