:::: MENU ::::

Magento Tutorial | Magento Blog | Learn Magento 2

Cookies Consent Popup

First you need to create your cron file in `Cron` directory as belowapp/code/Vendor/Module/Cron/Mycron.php    <?php       namespace Vendor\Module\Cron;       class Mycron        {          protected $logger;          public function __construct(        \Psr\Log\LoggerInterface $loggerInterface          ) {        $this->logger = $loggerInterface; ...
"catalog_product_save_before" This event gets called for every product save action, including new products.In order to use it you could do the following in your module:**app\code\Vendor\Module\etc\webapi_rest\events.xml**    <?xml version="1.0"?>    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">        <event name="catalog_product_save_before">            <observer...
Magento 2 Database Missing Table Error "inventory_stock_1"Error:Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'inventory_stock_1' doesn't exist, query was: INSERT INTO `search_tmp_5c4f24124efa61_76233970` SELECT `main_select`.`entity_id`, SUM(score) AS `relevance` FROM (SELECT DISTINCT `search_index`.`entity_id`, (((0) + (0)) * 1) AS `score` FROM `catalog_product_index_eav` AS `search_index` INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = search_index.entity_id INNER...