Skip to content

magento man

Stay away from StableHost

I was a StableHost customer since before it was sold to Miss Hosting. Before the sale it was an excellent supplier. Then it went into declin… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1885961&goto=newpost

How to assign a simple product in Configurable Product in Magento 2

Hello I am using given below code to add simple product in configurable product.but it is not properly working. $productId = 1; // Configurable Product Id $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $product = $objectManager->create(‘MagentoCatalogModelProduct’)->load($productId); // Load Configurable Product $attributeModel = $objectManager->create(‘MagentoConfigurableProductModelProductTypeConfigurableAttribute’); $position… Read More »How to assign a simple product in Configurable Product in Magento 2

How to fix issue when run Magento update command?

I changed php version and composer version.But run command “bin/magento setup:upgrade”, display error like this. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘584362’ for key ‘PRIMARY’, query was: ALTER TABLE `catalog_url_rewrite_product_category` ADD CONSTRAINT PRIMARY KEY (`url_rewrite_id`)

Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 when loading trying to view the site

I am getting this error when I am trying to view the my local website. 1 exception(s): Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 <pre>#1 MagentoCatalogModelCategoryRepository->get() called… Read More »Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 when loading trying to view the site