I have loaded the category and sub-category, now I need to load image as well but I’m not sure how to do that. Below is the code I have used: In block file: public function getStoreCategories($sorted = false, $asCollection = false, $toLoad = true) { return $this->_categoryHelper->getStoreCategories($sorted , $asCollection, $toLoad); […]
Magento1
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 […]
I recently installed a new Magento that was originally 2.2.2 . However the theme i am using then just came out with a updated theme for 2.3.2 so I uploaded that one and upgraded my Magento to 2.3.2 however now when I try to go to the site i get […]
I have recently install Magento 2.3. The app/design/frontend/magento/ is empty. I want to modify the product detail page and catalog detail pages. I am new to Magento can anybody help me in this