aneesahmadweb@gmail.com     03040836207

    First need to alias mysql on locahost .See where you mysql.exe file is located in xampp folder.Make a correct path and add into below command and run it. $ alias php=’D://xampp/php/php.exe’ alias mysql=’D://xampp/mysql/bin/mysql.exe’ php -dmemory_limit=5G bin/magento setup:static-content:deploy -f php bin/magento fl32:minify:make php -dmemory_limit=5G bin/magento setup:di:compile export PATH=/opt/plesk/php/7.1/bin:$PATH; https://megan.ns.cloudflare.com/ https://cody.ns.cloudflare.com/ php bin/magento indexer:reindex mst_sorting Enable Dev […]
    Read More
    Lets say we have a table review and need to update a record there.I will add the date of a review. $created_at = $this->getRequest()->getParam('created_at'); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of object manager $resource = $objectManager->get('Magento\Framework\App\ResourceConnection'); $connection = $resource->getConnection(); $tableName = $resource->getTableName('review'); $sql= "Update $tableName Set created_at = '$created_at' where review_id = $reviewId"; $connection->query($sql);
    Read More
    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
    Load ...