Blog
How I can add a IP field in contact form email? I added this field to the email template {{IP}} {{var data.ip}} but where I can get the data? in magento 1 I used this in indexController.php: // Add the IP.. $postObject->setData( 'ip', $_SERVER['REMOTE_ADDR'] ); Any help would be appreciated.
I have an issue with the cataloginventory_stock index. Base table or view already exists: 1050 Table '/cataloginventory_stock_status_outdated' already exists, query was: RENAME TABLE cataloginventory_stock_status TO cataloginventory_stock_status_outdated,cataloginventory_stock_status_replica TO cataloginventory_stock_status,cataloginventory_stock_status_outdated TO cataloginventory_stock_status_replica Can anyone help me for this? Any help would be appreciated Thanks
I would like to write some custom code product actions in a controller is executed. When I have click on the product than showing multiple brands and after that click on brand then show product detail page. I am not able to how to achieve this functionality Please give me […]
our items are no longer showing for each category page on the frontend. I have checked lots of items on the admin: Enabled = yes Product in website = yes Product in category = yes Stock status in stock = yes Visibility = catalog, search Reset index, Reindex and flush […]
I am trying to create and delete categories in Magento 2 but am facing some issues while doing it when Flat Categories option is enabled. The weird thing is, my code works fine when called from a bootstrap file like this. < ?php use MagentoFrameworkAppBootstrap; require __DIR__ . '/app/bootstrap.php'; $bootstrap […]