How to Autocomplete tag.className in Visual Studio Code

By using the Ctrl + , (comma), it’ll open the setting panel of your Visual Studio Code. Click on “Emmet” from the left side and keep the following options checked (true):

If you are using the latest version of Visual Code. Keep the checkmark for the followings:
Emmet: Show Suggestions As Snippets
Emmet: Trigger Expansion On Tab

The file 'wp-config.php' already exists

Error: The file wp-config.php already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.

If you have recently updated WordPress to a newer version or installed the fresh setup of WordPress, you may face the issue of the site not working and show the below message instead.

The file wp-config.php already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.

Follow the below suggestions if it helps you. Personally, the first one is working fine for me.

Option 1:

  • Open Google Chrome and try to display the website first on the incognito tab. If it works correctly, do clear the browser cache.
  • Once the page refresh has been completed, the website will appear.
    You can use the following shortcuts to clear the browser cache.
    Windows: Ctrl + F5 Mac: CMD + Shift + R

Option 2:

The problem was there because of the following line in your wp-config.php. file. Please remove it and save your file.
Note: Please take the backup of your file before do any recommended changes to your files.

How to set India Time Zone to PHP

If your web application store the current date and time to your database when user fill the data or submit any form, you have to set the timezone to save date and time according to your timezone.

You can set the default timezone in following two ways in php.

1) Change to the php.ini file by the changing the default timezone
If you are not aware about to update the php.ini file, please follow the following instructions.

  • Open your php.ini file with the File Manager in cPanel
  • Locate and then open your php.ini file for editing.
  • Add the following line of code to top of your php.ini file

Once you update the php.ini file, please check your phpinfo.php page to verify the change took place. It should looks like below image

You can find the list of Supported Timezones, from the following link:
https://www.php.net/manual/en/timezones.asia.php

2) Add below line to your PHP file (It’s recommended to add it to your main PHP configuration file):
date_default_timezone_set(‘Asia/Kolkata’)

One day Picnic Place near Ahmedabad

If you are at Ahmedabad – the city of Heritage and want to spend some quality time for short duration picnic. Here is the list of best places near Ahmedabad for one day picnic.

  • Nal Sarovar
  • Indroda Nature Park
  • Adalaj ni Val (Adalaj Stepwell)
Continue reading “One day Picnic Place near Ahmedabad”

Magento 2 delete Related and Cross sell products

In Magento 2 you can remove the Related Items and Cross Sell items from backend manually. But what is the best way when your have large number of products and want to delete related items or cross sell items for all at once?

Continue reading “Magento 2 delete Related and Cross sell products”

Magento 2 products not showing in frontend

When you create your products to magento backend, please make sure that:

  • Product is set enable.
  • Product is assigned to websites
  • Product is assigned to categories
  • Product should be “In stock” status.
  • Product should be have proper Quantity set. Quantity must be 1 or greater than it.
  • Product visibility in Catalog, Search
Continue reading “Magento 2 products not showing in frontend”

Magento 2: Common Useful SSH Commands

Here you can find a list of essential Magento 2 commands to make your work faster and easier.

All magento 2 commands has to be executed from magento project root directory

Continue reading “Magento 2: Common Useful SSH Commands”

Disable Your Touchpad When Using a Mouse

How to disable touchpad when mouse is connected using Control Panel

Option 1:

  1. Open Control Panel.
  2. Click on Hardware and Sound.
  3. Under “Devices and Printers,” click on Mouse.
  4. On the “Device Settings” tab, select the “Disable internal pointing device when external USB pointing device is attached” option.
Continue reading “Disable Your Touchpad When Using a Mouse”