Skip to content

Instantly share code, notes, and snippets.

View jaseclamp's full-sized avatar

Jase Clamp jaseclamp

  • Brisbane, Australia
View GitHub Profile
@jaseclamp
jaseclamp / pinnacle2magento-phase3.php
Created April 15, 2013 06:02
Migrate data from pinnacle cart to magento. Put script in magento root and update db connection details. This script migrates product relationships / recommendations. It's the third out of three scripts because you need the products to be there before relating them.
<?php
require_once 'app/Mage.php';
Mage::app(0); // best to leave as default as prods are created in admin and you can apply to stores as needed
//connect to your pinnacle cart database
mysql_connect("host", "user", "pass") or die(mysql_error());
//your pinnacle cart database name
mysql_select_db("db") or die(mysql_error());
@jaseclamp
jaseclamp / pinnacle2magento-phase1.php
Created April 15, 2013 05:59
This script migrates data from pinnacle cart to magento. Put this file in Magento root and edit db connection details. This script migrates categories. It's script one of three.
<?php
//this script migrates categories from pinnacle cart to magento
//it's part one of three
require_once 'app/Mage.php';
Mage::app('default'); // Default or your store view name.
mysql_connect("host", "user", "pass") or die(mysql_error());
mysql_select_db("db") or die(mysql_error());
@jaseclamp
jaseclamp / pinnaclecart2magento-phase2.php
Created April 15, 2013 05:55
Migrates data from Pinnacle Cart to Magento. Put this script in your Magento root and edit DB connection details to point to Pinnacle Cart site. This is script 2 of 3.
<?php
//Migrate data from Pinnacle Cart to Magento Part TWO
require_once 'app/Mage.php';
Mage::app(0); // best to leave as default as prods are created in admin and you can apply to stores as needed
include_once('simple_html_dom.php');
include_once('import-filter.php');