free
web stats

Fill the form & Get Installation Support

We don't monkey around your business.

GET IN TOUCH WITH US NOW





captcha

How to add some logic when product added from backend in Magento?

We will achieve this functionality through EventObserver.

Here, I have used the event which is called

“controller_action_catalog_product_save_entity_after”

Step 1: Create event.xml in /etc/adminhtml folder in your module.

Step 2: Create a SaveProduct.php Observer in Observer Folder.

After creating the above module, please run the upgrade, compile and static:content:deploy command to implement this module.