I got following error while running upgrade command Warning: Undefined array key "inventory_source" in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 153 Anyone please help
Magento1
I am using the Facebook for Magento 2 extension on a Magento 2.4.7-p7 store: https://github.com/facebookarchive/facebook-for-magento2 While testing with Meta Pixel Helper, I noticed that some standard Meta events are not being tracked correctly. Purchase Event Not Firing After an order is successfully placed, no Purchase event is sent to Meta. […]
Magento 2 relies heavily on cron jobs to automate critical background tasks such as sending transactional emails, updating indexes… Continue reading on Medium »
Managing product availability is an important part of creating a smooth shopping experience. While displaying unavailable products can… Continue reading on Medium »
I am getting following error but not sure how to debug. Please guide. Warning: foreach() argument must be of type array|object, null given in app/code/XYZ/ElasticSmile/Model/Product/Indexer/Fulltext/Datasource/CatalogExtra.php on line 494 Here the function is foreach ($product->getExtensionAttributes()->getConfigurableProductOptions() as $option) { $attributeCode = $option['product_attribute']->getAttributeCode(); $options[$attributeCode] = $child->getData($attributeCode); //If you want to display swatch image, […]
I have to update and checked checkbox for use default field for product status. But I do not know how to update and checked that checkbox ? here is my code $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productId = 1; $status = 1; $store = 1; $product = $objectManager->create('MagentoCatalogModelProduct')->load($productId); try { $product->setStoreId($store); $product->setStatus($status); […]
I’m trying to add a custom attribute to the customer_entity table and then sort the collection with that custom attribute. So far I’ve tried using etc/db_schema.xml to add a column to the table, and even though the column got added to the table, $collection->addAttributeToFilter('my_custom_attribute', '1') returned ‘attribute ‘my_custom_attribute’ is invalid’. […]
We are unable to set PHPSESSID secure and set sameSite value to Strict, does anyone have any idea how we can set this in Magento 2 EE. Thanks