aneesahmadweb@gmail.com     03040836207

    Get Current product $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $registry = $objectManager->get(‘\Magento\Framework\Registry’); $currentProduct = $registry->registry(‘current_product’); $currentProduct->getId(); ?>

    Read More

    Three types of Plugins Before Plugin After Plugin Around Plugin To start adding plugin first creade di.xml file and paste below code. <config><typename=”{ObservedType}”><pluginname=”{pluginName}”type=”{PluginClassName}”sortOrder=”1″disabled=”false”/></type></config> Type name: Its a class, interface, or virtual type, that is observed by our plugin.Plugin name: plugin name.Plugin type: The name of a plugin’s class or virtual type.Plugin sortOrder: Order, in which the plugins calling the […]

    Read More