Hot answers tagged

1

In the command line for Magento 2, you need to install the Migration Tool. To Find out your version of Magento 2 php <magento_root>/bin/magento --version To install Migration Tool (change version number on the end to match yours) composer require magento/data-migration-tool:2.4.1 Once you have ran this, you then need to run these: php bin/magento ...


1

Using object manager $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Framework\Registry')->registry('current_product'); echo $product->getId(); ?>```


1

We can say it was an issue with older version less than 2.4.x That fix has been available with PR vendor/magento/module-catalog/Model/Product/Option/SaveHandler.php public function execute($entity, $arguments = []) { if ($entity->getOptionsSaved() || !$entity->getCanSaveCustomOptions()) { return $entity; } ...


Only top voted, non community-wiki answers of a minimum length are eligible