We often need to list randomly chosen products on our Magento store. Lucky for us, Magento has provided this functionality, and this is easy to achieve from CMS block or CMS page. All we need to do is choose a category from which we’d like to list our products, and use following snippet in that […]
By default, Magento keeps track of complete “Comments History” on any order. This is a useful functionality that allows administrators to keep track of any internal communication as well as any comments left by a customer. The good news, for any developer is, it is easy to programatically add comment to any order in Magento. […]
Lets say that we’re writing bash script that should perform all the commands as a regular user, but it should also edit some files for which sudo command is needed. Writing sudo command won’t be much of a help as script might not ask for the password, and instead might just respond with “Permission denied”.
To import database dump into your PostgreSQL database, you can use following command: 1 pg_restore -i -h localhost -p 5432 -U username -d old_db -v database_backup.SQL Notice that port and username may be different for your PostgreSQL installation.
To create database dump from PostgreSQL, you can use following command: 1 pg_dump -i -h localhost -p 5432 -U username -F c -b -v -f database_backup.SQL Notice that port and username may be different for your PostgreSQL installation.
Magento uses md5 hashed values stored in the database as user’s password. This means that you can not retrieve the real password value no matter what and how important it is. And that’s actually really good since it protects user’s privacy and is more ethic way of storing personal data. And anyway, you can always […]
If .htaccess is not working on your Apache it is possible that it is not enabled. To enable .htaccess on Apache edit following file: /etc/apache2/sites-available/default Locate following line: AllowOverride None and replace it with: AllowOverride All Finally – run following two commands sudo a2enmod rewrite sudo /etc/init.d/apache2 restart Notice: This instruction on how to enable […]