1

I am working on Admin Actions Log Extension. For the reference i am using link below

https://amasty.com/admin-actions-log-for-magento-2.html

I want to get old and new data of products while we save product data in admin.

I've tried to make plugin for product, but it's not calling.

app/code/Vendor/Module/etc/adminhtml/di.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
      <type name="Magento\Catalog\Api\ProductRepositoryInterface">
            <plugin name="catalog_product_around_save" type="
            [vendorname]\[modulename]\Plugin\ProductSave" sortOrder="1"/>    
      </type>
</config>

if anyone has a solution please let me know.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.