How to Get all active Catalog Rules collection Magento 2?

Magento 2 You can retrieve the active catalog rules of the system. Using Active rules, You can identify a number of rules that are active and working for the catalog category pages.

To identify, an active rule you need to filter the catalog collection by is_active field. Value 1 contains the active and 0 used to disable the rule in the system. Continue reading “How to Get all active Catalog Rules collection Magento 2?”

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?”