New answers tagged

0

Note there is a huge mistake between Mage_Catalog_Model_Resource_Category_Indexer_Product::_refreshAnchorRelations() and Mage_Catalog_Model_Resource_Category_Indexer_Product::reindexAll() methods, which will obviously lead to some strange behaviors: In _refreshAnchorRelations(): $position = 'MIN('. $adapter->getCheckSql( 'cp.category_id = ce....


0

Haven't tested, but this might work: Let's say $product is the product instance. and $code is the attribute code for which you need the label. and $storeId the id of the store you need. $attribute = $product->getResource()->getAttribute($code); $attribute->setStoreId($storeId); $text = $attribute->getSource()->getOptionText($product->...


2

You can try this.. <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productId = 2; //Product ID $storeId = 1 //Store ID $product = $objectManager->get('Magento\Catalog\Model\Product')->load($productId); $attributeValue = $product->getResource()->getAttributeRawValue($product->getId(),'...


0

For configurable product check product type ID using simple code. if($_product->getTypeId() == 'configurable'){ echo 'This is a configurable product'; }else{ echo 'This is not a configurable product'; } Thanks


0

I could solve this issue by myself. It was caused after Data-Migration. We have to update Attribut-Sets with "Category IDs" to solve it. For all with the same Problem: In backend go to Stores-> Attributes -> attribute set From there select the first attribute and go editing. Now you can see on the right block "unassigned Attributes". Search and assign "...


0

I have found the sollution of Magento2.3.3 Products not Save Once Imported If Products imported using csv issue. In database table named 'cataloginventory_stock_item' column named 'use_config_max_sale_qty' affect the save functionality. While importing using csv as per magento import/export functionalities It must be '1',not blank or '0'. So if import ...


0

On Magento 1.9 the feeds generation do not fail when there is problems with variables. In my case the tax variable was configured for France but not for Switzerland.


1

You just need to create one root file and paste below code in that file and run file in browser or you can also create module <?php ini_set('memory_limit', '512M'); set_time_limit(0); require __DIR__ . '/app/bootstrap.php'; $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $...


Top 50 recent answers are included