Setup Shopify store on a sub domain
In some usecase, we might need to connect the shopify store in sub domain ( For example: shop.mydomain.com ) instead of root domain ( mydomain.com ) In shopify documentation, they have explained about that sub domain integration but I think some steps are missing in that documentation. I created this article to explain about those…
Add Free product to woocommerce cart automatically ( without a
One of our clients want to provide a free product ( Price: $0 ) to their customers if they have some products already in their cart. Custom code looked prominent solution for that use case. We have searched in google and found some logic with code and we have altered it as per our use…
Access violation error in Laravel 5.4 migration
When we setup a fresh laravel 5.4 and tried to run default user tables migration php artisan migrate then we got a below error [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_ unique`(`email`)) After searching for this…
How to install PHPMyAdmin in Amazon EC2 Linux
Logged into the server using putty 1) Go to apache folder: cd /var/www/html 2) Download the latest version phpmyadmin wget https://files.phpmyadmin.net/phpMyAdmin/4.6.6/phpMyAdmin-4.6.6-all-languages.zip Note: By time of writing, 4.6.6 is the latest version. You can get the latest version in https://www.phpmyadmin.net/downloads/ 3) Unzip the downloaded files unzip phpMyAdmin-4.6.6-all-languages.zip 4) Rename the folder mv phpMyAdmin-4.6.6-all-languages/phpMyAdmin-4.6.6-all-languages 5) Remove the…
Mail configuration in laravel 5
In Laravel 5, mail configuration need to be done in .env file and mail.php files. In one of our projects, we have used the thrid party mail server 'mailgun' for sending mail. In .env file: MAIL_DRIVER=sendmail MAIL_HOST=smtp.mailgun.org MAIL_PORT=587 MAIL_USERNAME=YOUR USERNAME MAIL_PASSWORD=YOUR PASSWORD MAIL_ENCRYPTION=tls In the above configuration, the issue which we have faced…