Magento: Add custom attribute to Magento’s PDF invoice

Add custom attribute to Magento’s PDF invoice
Add custom attribute to Magento’s PDF invoice

Hello everyone! Today I’ll show you how to add custom attribute to Magento’s generated PDF invoice in just a few steps. Since this article is pretty straight-forward, here we go.

One of my recent tasks was to create a custom attribute for products called inchoo_warehouse_location, and output it when click on “Print” (invoice in admin section) occurs. Since PDF generation is Magento’s core functionality, we’ll have to rewrite it a bit.
(more…)

Continue ReadingMagento: Add custom attribute to Magento’s PDF invoice

How to tar/untar, compress/uncompress files/folders using php script

  • Post category:SSH
  • Post comments:0 Comments

How to tar/untar, compress/uncompress files/folders using php script
How to tar/untar, compress/uncompress files/folders using php script

Uploading and downloading files is a chore every webmaster has to cope with on daily basis, but if you do this by compressing the files, uploading the tar or zipped and uncompressing them on server, life becomes a little easier.

Similarly taking backup on a server becomes easier if you just compress the files/folder on server and download the tar.gz file. Usually these commands are run over SSH, but if you do not have SSH access, you can place the commands in php script too.
(more…)

Continue ReadingHow to tar/untar, compress/uncompress files/folders using php script

CakePHP – jQuery Autocomplete Tutorial

CakePHP – jQuery Autocomplete Tutorial
CakePHP – jQuery Autocomplete Tutorial

In this tutorial, i will show you how to implement jQuery UI’s autocomplete widget in cakephp. The script in this tutorial is copy paste from tutorialzine article “A Simple Movie Search App w/ jQuery UI” . We are using a MySql database containing a users table. When you start typing a user name in the text box of the search form, an AJAX request is sent to controller. The controller returns a JSON object with suitable user name.

This is what we’re going to create:

CakePHP – jQuery Autocomplete Tutorial
CakePHP – jQuery Autocomplete Tutorial

(more…)

Continue ReadingCakePHP – jQuery Autocomplete Tutorial

Magento 1.7 Upgrade Errors with Solutions

Magento 1.7 Upgrade Errors with Solutions
Magento 1.7 Upgrade Errors with Solutions

Upgrading Magento sometimes becomes very tedious. You may receive errors like 500 internal error, getAlloptions(), two navigation bars, Reindex error, “CONNECT ERROR: Package ‘Mage_All_Latest’ is invalid” etc. while upgrading to 1.7 version. In this blog we have shared some errors of magento 1.7 upgrade with their solutions.
(more…)

Continue ReadingMagento 1.7 Upgrade Errors with Solutions

Magento: Tutorial- How to Upgrade Magento to 1.7 via FTP

Magento: Tutorial- How to Upgrade Magento to 1.7 via FTP
Magento: Tutorial- How to Upgrade Magento to 1.7 via FTP

Many of you might not like the previous method of Upgrade which was via connect manager. Sometimes when you have huge no. of products, then upgrading through Connect Manager, becomes a tedious task. In such a situation, we would like to suggest Magento Users to upgrade magento through FTP.

In this Tutorial, we will provide you steps to be followed while upgrading to Magento 1.7:
(more…)

Continue ReadingMagento: Tutorial- How to Upgrade Magento to 1.7 via FTP