Magento 2 : Study Notes

Cacheable and uncacheable pages To create an uncacheable page, mark any block on that page as uncacheable in the layout using cacheable=”false”. Example: Note During theme development, when you change any files stored here, you need to clear pub/static (preserving the `.htaccess` file in place) and var/view_preprocessed directories, and then Read more…

Magento 2 : How to Override Model

Configuration of Module: Create module.xml in app/code/Techievolve/Product/etc and add the following code to it: Module Registration: Create registration.php in app/code/Techievolve/Product and add the following code to it: Override Product.php Run the following commands using ssh or terminal:

Magento2: After install run the following commands

Magento Fresh install 2 No Css Js After Install cd /var/www/html/magento2/ sudo chmod 777 -R /var/www/html/magento2/ php bin/magento cache:flush php bin/magento indexer:reindex php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush For Remove version from css url: We can disable it in Admin: Stores > Configuration Read more…