aneesahmadweb@gmail.com     03040836207

    To give a user all permission on a database GRANT ALL PRIVILEGES ON nexushomecomlive.* TO ‘newuser’@’localhost’; To login as root user Su To login in mysql mysql To Copy cp –help cp source destination To remove directory rm directory or use rm -rf directory for recursive action rm -r directory

    Read More

    To add the command and register it: Create a Command class (the recommended location is <module_dir>/Console/Command). Your Command class extends base class (Symfony\Component\Console\Command\Command) and overrides two protected methods: You need to Declare you command through DI in command list Declare your Command class in Magento\Framework\Console\CommandList using dependency injection (<module_dir>/etc/di.xml):

    Read More

    To add a coloumn for any product attribute in CSV while exporting follow the below steps In vendor\magento\module-catalog-import-export\Model\Export\Product.php add custom attribute which you want to separate.

    Read More

    To check which EAV attributes are being uses https://github.com/magento-hackathon/EAVCleaner List of some usefull Modules https://github.com/magento-hackathon For regenerating the url (To fix catalog/product/id..) https://github.com/olegkoval/magento2-regenerate_url_rewrites

    Read More

    Adding and deleting static resources To add static resource in page like stylesheet (style.css) or external style sheet defaine a node <head> either in default.xml in your module or you can add it into theme xml file default_head_blocks.xml You_theme/Magento_Theme/layout/default_head_blocks.xml. You can add a css file using the following instruction: To add a locally hosted JavaScript […]

    Read More