skip to Main Content

Get product name and price from product collection – Magento

I am trying to get product(s) name and price from product collection for that I have created a custom script for test. $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $state = $objectManager->get('MagentoFrameworkAppState'); $state->setAreaCode('adminhtml'); $collection = $objectManager->create('MagentoCatalogModelResourceModelProductCollectionFactory')->create(); try { echo $collection->addAttributeToSelect(['name','sku'])->getSelect();…

VIEW QUESTION

unable to add new products in magento2

Unable to add new product in magento2.After click on add new product loader keeps running.(sometimes it works fine)i found that issue "Uncaught TypeError: component.getPreview is not a function" in import-handler.js file line no 44.Is there any solution for fix this…

VIEW QUESTION

Magento 2.4: Unable to apply data patch MagentoCatalogRuleSampleDataSetupPatchDataInstallCatalogRuleSampleData

Getting the below error while trying to install sample data and upgrading the setup in Magento 2.4.2-p1 Error: Unable to apply data patch MagentoCatalogRuleSampleDataSetupPatchDataInstallCatalogRuleSampleData for module Magento_CatalogRuleSampleData. Original exception message: Rolled back transaction has not been completed correctly. Please help.

VIEW QUESTION
Back To Top
Search