Skip to content

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

Duplicate the page.main.title

I wanted to duplicate the “page.main.title” element on the product pages, so I added this block to my catalog_product_view.ml <block class=”MagentoThemeBlockHtmlTitle” name=”title.additional2″ template=”Magento_Theme::html/title.phtml”> <arguments> <argument name=”css_class” xsi:type=”string”>product</argument> <argument name=”add_base_attribute” xsi:type=”string”>itemprop=”name”</argument> </arguments> </block> I want to add this block because I… Read More »Duplicate the page.main.title

Is possible to add instructions

What is this request and how to do it? And this is in the admin section. I’m trying to understand the request and understand how to do it but it’s not working yet.