Answer the question
In order to leave comments, you need to log in
How to overwrite ui component of magento catalog module?
It was necessary to make changes to the product template from recently viewed - "last viewed".
I was surprised to understand that the implementation here differs from the usual layout - templates - rendering here is implemented in the ui component.
The xml file to be edited is vendor/magento/module-catalog/view/frontend/ui_component/widget_recently_viewed.xml.
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
// вот сюда хочу внести изменения
<column name="addtocart-button" component="Magento_Catalog/js/product/addtocart-button" displayArea="action-primary-area">
<settings>
<label translate="true">Add To Cart</label>
<bodyTmpl>Magento_Catalog/product/addtocart-button</bodyTmpl>
</settings>
</column>
<column name="addtocompare-button" component="Magento_Catalog/js/product/addtocompare-button" sortOrder="2" displayArea="action-secondary-area">
<settings>
<label translate="true">Add To Compare</label>
<bodyTmpl>Magento_Catalog/product/addtocompare-button</bodyTmpl>
</settings>
</column>
<column name="learn-more" component="Magento_Catalog/js/product/learn-more" displayArea="description-area">
<settings>
<label translate="true">Learn more</label>
<bodyTmpl>Magento_Catalog/product/link</bodyTmpl>
</settings>
</column>
</columns>
</listing>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question