New answers tagged

0

you can set cron job for reindexing /opt/cpanel/ea-php71/root/usr/bin/php /home/user/public_html/bin/magento setup:cron:run >> /home/user/public_html/var/log/setup.cron.log


0

I solved it by copying the file vendor/magento/theme-frontend-luma/module-catalog/web/css/source/module/_listings.less to my theme at THEME/Magento_Theme/web/css/source/module/_listing.less and adding my code under the media-width mixin: .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) { ... // // Change ...


1

The answer you linked to is correct, but you're looking in the wrong place. You need to look in the theme folder, for example, if you are using Luma: vendor/magento/theme-frontend-luma/module-catalog/web/css/source/module/_listings.less You should really be creating/editing this file in your local theme.


0

Find the ID of the shared catalog you need to assign to the products. If you know the shared catalog name, you can use a custom resource model that extends the Magento\SharedCatalog\Model\ResourceModel\SharedCatalogresource model, then add the following method: public function getSharedCatalogIdBySharedCatalogName(string $catalogName): int { $stmt = $...


1

Create the following layout file app\design\frontend\my_theme\Magento_Catalog/layout/catalog_category_view.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"&...


Top 50 recent answers are included