i need to create a observer that will change all products prices on category page
this is my events.xml code <?xml version=”1.0″ encoding=”UTF-8″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <event name=”catalog_product_price_change”> <observer name=”product_collection” instance=”ObserverPriceObserverProduct”/> </event> <event name=”product_price_change”> <observer name=”set_custom_price” instance=”ObserverPriceObserverProduct” /> </event> </config> this is my ObserverToChangePrice.php code : <?php namespace ObserverPriceObserver; use MagentoFrameworkEventObserver as EventObserver; use MagentoFrameworkEventObserverInterface;… Read More »i need to create a observer that will change all products prices on category page