Steps to Create the crontab : First, Open the Terminal and log in with the root user. After that go to Magento Root Path then run the below command: 1 bin/magento cron:install Output: Crontab is created and saved. 1 bin/magento cron:install —force Crontab is created and saved NOTE: Use –force to rewrite an existing Magento crontab.…
Magento2 Reindexing via SSH/CLI
Sometimes you need to issue reindex instantly. For that SSH/CLI method is more suitable. Here is what you need to do: You should see the following log, which shows, that reindex was successfully completed:
Unable to go back to Default Mode getting error Magento2
I was in production mode and was getting an error when trying to go back to default mode run below commands in sequence. and then try to det default mode again, it should work now bin/magento deploy:mode:set default rm -rf var/view_preprocessed/* var/cache/* pub/static/*
Update No Reach Results Page, Magento2
There are 2 templates being used for result, one for simple search ( using top search field ) and other is for advance search field : For Top search field result : module_catalog-search/view/frontend/templates/result.phtml For Advance Search result : module_catalog-search/view/frontend/templates/advanced/result.phtml And both search fields search data / record within product catalog,…
Easiest way to add Magento2 Goole Tag Manager Without Extensions
You can easily add GTM without third-party extensions. All you need is to add the GTM code to your active theme. The GTM code consist of two parts: script and noscript.You need to put the GTM snippet into these two phtml templates for head and body: New File#1 // YourTheme/Magento_Theme/templates/html/gtm_head.phtml<script>..</script>…
How to Properly set Production Mode and compilation in Magento2
In Magento 2, You do not need to run static:content:deploy command every time when your Magento mode is default or developer, but when you change Magento mode to production at that time Magento will not generate static content file automatically. So you need to run deploy commands in this sequence.. You can change your Magento mode from developer to production using…