Magento2
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
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 Read more…
Linux
Ubuntu: Apache switch Php Version
Switch From PHP 7.1 => PHP 7.3 Switch From PHP 7.1 => PHP 7.2 Switch From PHP 7.2 => PHP 7.1 Switch From PHP 7.3 => PHP 7.1 Switch From PHP 5.6 => PHP 7.2 Switch From PHP 7.2 => Read more…
Git
Git :: status shows files as changed even though contents are the same
I have resolved this problem using following stpes 1) Remove every file from Git’s index. 2) Rewrite the Git index to pick up all the new line endings.
Wampp/Xampp
Wampp: maento 2 Internal Server Error
Step1:: Please make sure that LoadModule version_module modules/mod_version.so is loaded from httpd.conf file to resolve Invalid command ‘
Magento
Magento :: Shopping Cart Rule Causing Internal Sever Error 500
Copy Subselect.php:. From: app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php To: app/code/local/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php Based on comments on @kalpesh link this also solved the problem for me. (adding the fix here for future reference) There is a patch for this https://gist.github.com/piotrekkaminski/54529dadb0bc01a62a2d It is marked for EE but the Read more…
Magento
Magento: pagination with custom collection
1.In the main block that calls your collection to render, add the following: 2.Then, from your template phtml associated to your collection, add the pager controls by echoing the output of our other method, getPagerHtml: