For Clients
For Geeks

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 […]

Continue reading

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. […]

Continue reading

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”.

Continue reading

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.

Continue reading

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.

Continue reading

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 […]

Continue reading

Apache enable htaccess

In: Apache

20 Aug 2013

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 […]

Continue reading

Although front end validation is not an only form of validation you should do, you’d still want to validate forms on front end. As forms usually have email address of the person filling it in, it could be useful to do JavaScript email validation. Therefore, I have just focused on single JavaScript method. You will […]

Continue reading

Page 1 of 2012345...1020...Last »