If we wanted to remove some words from any string, this snippet would be helpful: <?php…
To setup debugger for php bin/magento cli 1. make sure your xdebug is configured to accept external…
Today I will elaborate the intricacy of installing a Magento module with composer in Magento 1.x. To…
We need to use a install script for that and our script should extend the functionality of…
To restart, start or stop MySQL server from the command line, type the following at the shell…
The fix is to edit .htaccess file of wordpress documnet root # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine…
The following code lets you update dropdown product attribute value. Let’s say we have our dropdown product…
We can utilise the second argument of strtotime to specify the date to calculate “last Friday” and other relative…
The following might be useful for anyone who needs it. From PHP Version > 5 below new…