free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





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.

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha