Skip to content

magento2.4

Auto Added by WPeMatico

Magento 2.4.6 Opimize database tables

I’m using Magento 2.4.6, I want optimize the database, Some tables have large entries. report_viewed_product_aggregated_daily report_viewed_product_aggregated_monthly report_viewed_product_aggregated_yearly report_viewed_product_index What is the use of these tables? Can I truncate these tables from live site?

Magento 2 category shows all catalog products instead of its actual products after setting its layout to a custom layout

I have the following issue with a magento 2.4.3 category: Using the default theme (having the category’s Design/[No layout updates] option selected), it properly shows its products and their number: but after updating the category’s Design/[Custom Layout Update] to a… Read More »Magento 2 category shows all catalog products instead of its actual products after setting its layout to a custom layout

Magento 2 – Get Stock Update Observer

My observer is not getting product information, this line is always printed $this->logger->info(‘Product object is always null.’); <?php namespace CustomModuleObserver; use MagentoFrameworkEventObserverInterface; use MagentoFrameworkEventObserver; use MagentoCatalogApiProductRepositoryInterface; use PsrLogLoggerInterface; class StockUpdate implements ObserverInterface { /** * @var ProductRepositoryInterface */ protected $productRepository;… Read More »Magento 2 – Get Stock Update Observer

How to parse widget in json format in magento 2.4.4?

Is it possible to parse widget code to JSON format? {{widget type=”MagentoCatalogWidgetBlockProductProductsList” template=”Magento_CatalogWidget::product/widget/content/grid.phtml” anchor_text=”” id_path=”” show_pager=”0″ products_count=”5″ condition_option=”category_ids” condition_option_value=”675″ type_name=”Catalog Products List” conditions_encoded=”^[1:^[aggregator:all,new_child:“,type:Magento||CatalogWidget||Model||Rule||Condition||Combine,value:1^],1–1:^[operator:==,type:Magento||CatalogWidget||Model||Rule||Condition||Product,attribute:category_ids,value:675^]^]” sort_order=”position”}} Any way to convert? Please help me on this