How to Set Product final price using catalog_product_get_final_price Event in Magento 2.

You can modify the final price value by define events in your XML file with Magento 2.

catalog_product_get_final_price the event defined under the Magento\Catalog\Model\Product\Type\Price class.

You can also interested to check,  A Complete List of all events in Magento 2.
Continue reading “How to Set Product final price using catalog_product_get_final_price Event in Magento 2.”

How to Get Catalog Price Rule collection by Rule name Magento 2?

You can get catalog price rule data by Rule name or title using Magento 2.

You need to get a rule name from the Catalog rule Grid from the admin panel and you can filter the collection of catalog rule by the name field. Continue reading “How to Get Catalog Price Rule collection by Rule name Magento 2?”

How to Delete Catalog Price Rule by rule id Magento 2?

You can delete catalog rule by rule id in Magento 2 using delete by id method of catalog rule repository interface.

You can see a list of available Catalog Price rules from the admin panel by Marketing -> Promotions -> Catalog Price rule. Continue reading “How to Delete Catalog Price Rule by rule id Magento 2?”