type:
integration
supports-foxycart-version-from:
1.0
system:
FoxyCart
name:
Bulk Subscriptions Exporter
description:
Export your subscriptions in bulk as a single file
tag:
subscriptions, reports, export
date:
2017-06-28
version:
1.0
developer:
http://www.foxycart.com

Bulk Subscriptions Exporter

Description

At present, it's not possible to export subscription data from within the FoxyCart administration, just filter and alter them within the subscriptions section. It's possible to export transactions using the API, but not everyone is comfortable setting up a script to do that.

This script will allow you to export any number of subscriptions required, as a single file.

Installation

  1. Download the .zip file below
  2. Extract the contents, and edit settings.php
    1. Add your stores API Key (as found in the advanced page of your stores FoxyCart Administration)
    2. Set a custom passphrase
    3. Set the folder that exports will be added to
  3. Upload the extracted files and folders to your server, to a folder that is not linked to publicly, and create the export folder that you specified in settings.php inside that structure
  4. Navigate to where you uploaded the files in a browser, and follow the prompts

Requirements

  • FoxyCart version 1.0+
  • PHP
  • Curl (PHP Library)

Notes

When you load up the tool, you'll see a form to specify your store domain, passphrase and the filters you'd like to apply to this export. After submitting the form, a dialog will appear which will give you an update of how the export is going, including a rough timeframe of how much longer the export will take. It should also error nicely and display any errors to you within that dialog.

Once the export is complete, a button will appear to download the file, once clicked and the download has completed, another button will appear to delete the existing file. This is a safety precaution to help prevent whole exports of customers data from sitting on your server where you may forget about it. Make sure you click that button to delete the file from your server once you've downloaded it.

The security of this script and the exported customers data is up to you. Please note the risks involved with having full exports of customers data on your server and proceed accordingly.

Code

Site Tools