Ez-PayPal

Show All | PDF

Migration Tools

Warning: This tool is meant for developers and system integrators. It requires editing the source code files and/or database manipulations.

The migration tools are sample scripts provided developers and integrators working on migrating data from an existing system to ezPayPal. These tools were originally developed for my own migration efforts. For a casual user with no existing data to migrate, they may be of limited use.

When you enter the migration tools window, you get four options, which are described below. As usual, there is ample tooltip help to guide you along.

  • Migrate/backup DB prefix: Use this tool to import data from a database schema with a given prefix, say, ezpp_ to a new one, say, mine_. Using this tool, you can back up your existing data into another set of DB tables. This tool can also update your DB tables during a package version upgrade.
  • Import sales from a DB table: Use this tool to import sales data from a database table, if you have sales data created by some other package in a DB table. You will have to modify the file migrate-ipnData.php to match your table schema.
  • Import PHP product definitions: If your old products are defined in PHP files, import them from the existing PHP files. You will have to modify the file migrate-products.php. [This tool is of limited use.]
  • Import PHP sales data: Import Sales info from existing PHP files. If your sales data was written to individual PHP files, this tool can import them into your database. You will have to modify the file migrate-sales.php. [This tool is of limited use.]
Since these tools are meant to be used after modification, clicking on the button to launch any one of them will bring up a warning and confirmation as shown below.

To ensure that you do go through and modify the scripts, all but the first one (DB Prefix Migration) will not do anything to your data unless you edit the scripts and comment out the error line as shown below. I know, it is a lot of confirmations, but direct database manipulation is dangerous and has to be carried out with extreme care, as any experience developer will tell you.

ezPayPal Help System.