Skip to content

Get cost price on frontend

I’m trying to get the cost price attribute from the advanced pricing section to show on frontend. I’ve set the attribute to be visible on frontend but not sure on the code I need to use in the template.

Magento2 event using MSI

sales_order_item_save_after this event I have used when no MSI for detecting qty change. Now if I use MSI then which event I should use to detect that qty or stock status is changed for product from admin?