Show error message when adding a product of price 0.
To restrict products having price zero from shopping we need to create a observer on
checkout_cart_product_add_after event such that on every add to cart it will check the
product price and then add to cart.
Create a module and in etc/config.xml define the observer under event node.
Here Our module name is zeroprice under Letsknowit namespace.
File path : app/code/local/Letsknowit/zeroprice/etc/config.xml
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.