Playing with Dates in Magento

Playing with Dates in Magento

Introduction Being a PHP developer, you are no way hiding from PHP’s date() function. In case of Magento, it makes use of timezone which is configured from the backend (System > Configuration > General > Locale Options > Timezone) for formatting/displaying date/time. And this makes the results obtained with the PHP’s date() function and the …

Read more

Adding new mass action to admin grid in Magento

Introduction You know Magento allows to have mass action on the selected grid listing items. The purpose of mass action is obvious that it allows having the mass/bulk operation on the selected rows at once. Some popular mass action is: Delete, Update Status, etc. This is often a requirement that you may need to add …

Read more

Unzipping archive files in Linux

Extracting archive file depends on the type. Here goes the list of extracting/unzipping command for various archive types: 1> Unzipping .zip file unzip filename.zip 2> Unzipping .tar file tar -xvf filename.tar 3> Unzipping .tar.gz or .tgz file tar -zxvf filename.tar.gz tar -zxvf filename.tgz 4> Unzipping .gz file gunzip file.gz 5> Unzipping .bz2 file bunzip2 file.bz2 …

Read more

Updating product qty in Magento in an easier & faster way

Updating product qty/stock in Magento

Introduction Product Qty can be updated via default import profile though but this is very slow and requires lots of CSV fields(besides SKU & qty) for updating. Today I am going to talk about updating product qty just by using CSV with two fields: SKU & qty(new) which is very fast enough even for thousands …

Read more