Removing Or Editing Copyright Notice From The Footer In Magneto 2

Magento2
The copyright notice footer is the brand mark of the company which includes the year and the website identification mark in the footer area of the webpage. The notice is recognized by company law and reserves the right to the website to use the content by that brand mark. A Magneto development company can usually help you out in this regard. You can also follow these steps to remove the copyright footer notice on the Magneto 2 platform. These steps are as follows :   Step 1 Make sure that you are logged into the back end of your magneto editor. Go to the admin sidebar and go to Store. In the store, option-click on Settings. Click on configuration to proceed to the next step. After that click on General…
Read More

Automate your SEO setting By Powerful Magento 2 SEO Extension

Magento2
Whether you are running small store or big eCommerce website. If your targeted niche is competitive, you must have to do SEO for rank in SERPs. SEO(Search Engine Optimization) plays a vital role in your sales performance. Before starting to know about extension let me explain why SEO need for an eCommerce store. Suppose you have a store with the 10k product list and you want to set all product unique detail for on-page SEO optimization i.e set unique Meta information, Dynamic internal Linking, Set canonical Tag for the product as well category page, Generate Site map, etc. Now think that if you are doing all things individually then it will take approx 2 months and after you will not get the proper result. Then What is the solution? These…
Read More

Get Current Category and Current Product Detail Magento2

Magento2
There are two ways to get or find the current category and current product detail any phtml file. [php] <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Framework\Registry')->registry('current_product');//get current product echo $product->getId(); echo $product->getName(); ?> [/php] Or you can try to get other way using your custom module block file. app/code/JWD/WelcomeWorld/Block/WelcomeWorld.php [php] <?php namespace JWD\WelcomeWorld\Block; class WelcomeWorld extends \Magento\Framework\View\Element\Template { protected $_registry; public function __construct( \Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, array $data = [] ) { $this->_registry = $registry; parent::__construct($context, $data); } public function _prepareLayout() { return parent::_prepareLayout(); } public function getCurrentCategory() { return $this->_registry->registry('current_category'); } public function getCurrentProduct() { return $this->_registry->registry('current_product'); } } ?> [/php] Look at output or print using below code: [php] <?php // print current category data $currentCategory = $block->getCurrentCategory(); echo $currentCategory->getName() . ' '; echo $currentCategory->getUrl() . '…
Read More

Magento 2 Useful Commands

Magento2
Here you see list of some use full command for magento2 development and customization. For these commands you need to have SSH access to your server or use the Command Line for local access. These commands are run within the /magento2 folder and reference the /magento2/bin folder.   Magento 2 Cache Commands To flush Magento 2 cache: Go to Magento root directory php bin/magento cache:clean php bin/magento cache:flush Magento 2 cache status php bin/magento cache:status Magento 2 cache clean php bin/magento cache:clean Magento 2 disable cache Command will disable all cache types php bin/magento cache:disable Disable specific cache type php bin/magento cache:disable CACHE_TYPE Like: php bin/magento cache:disable config Magento 2 Enable cache All cache types php bin/magento cache:enable Specific cache type php bin/magento cache:enable CACHE_TYPE Like: php bin/magento cache:enable layout…
Read More

Reindex using Command line in Magento2

Magento2
Here Explain how to handle reindex using command line in magento2. In root magento directory [sourcecode language="plain"]php bin/magento indexer:reindex[/sourcecode]   in root/bin directory [sourcecode language="plain"]php magento indexer:reindex[/sourcecode]   To get the index name to run index one by one first write below command to get info in magento root directory [sourcecode language="plain"]php bin/magento indexer:info[/sourcecode]   To run single reindexing command [sourcecode language="plain"]php bin/magento indexer:reindex indexer_name[/sourcecode]   indexer name which we received name from indexer:info   [JWD-Magento-Development]
Read More

How to create simple module magento2

Magento, Magento2
Here we go to create your first or very simple module in magento2. We are going to create module with Namespace is "Jwd" and Module Name is "WelcomeWorld". Step1: Create a module.xml file in app/code/Jwd/WelcomeWorld/etc/module.xml [sourcecode language="plain"] <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> <module name="Jwd_WelcomeWorld" setup_version="1.0.0"> </module> </config> [/sourcecode]   Step2: Create app/code/Jwd/WelcomeWorld/registration.php [php] <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Jwd_WelcomeWorld', __DIR__ ); ?> [/php]   Step3: Create a frontend router in app/code/Jwd/WelcomeWorld/etc/frontend/routes.xml [sourcecode language="plain"] <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd"> <router id="standard"> <route id="welcomeworld" frontName="welcomeworld"> <module name="Jwd_WelcomeWorld"/> </route> </router> </config> [/sourcecode]   Step4: Create the file index.php for controller action in app/code/Jwd/WelcomeWorld/Controller/Index. This will map to http://127.0.0.1/magento2/welcomeworld/index/index welcomeworld: front name index: name of controller folder index: name of action file – index.php Each action is its own class extending \Magento\Framework\App\Action\Action. In every action file,…
Read More