Primarily
Rate what you want to import into Magento. The clearer the answer to the qestion question, the easier it will be to evaluate your options.
( ), script ( script ), SQL ( , SQL) ( ).
, csv , / opencart CSV, - . ( ).
, , , , . XLS, CSV , .
script
, script Magento. , :
<?php
require_once('app/Mage.php');
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$data = ...
foreach ($data as $new_product) {
$product = Mage::getModel('catalog/product');
$product->setData('sku', $new_product['sku']);
$product->setData('name', $new_product['name']);
.
.
.
try {
$product->save();
}
catch(Exception $e) {
Mage::logException($e);
continue;
}
}
Mage_Catalog_Model_Product, Mage_Sales_Model_Order Mage_Customer_Model_Customer . Magento :
Mage_Catalog_Model_Product Mage::getModel('catalog/product')Mage_Catalog_Model_Category Mage::getModel('catalog/category')Mage_Customer_Model_Customer Mage::getModel('customer/customer')Mage_Sales_Model_Order Mage::getModel('sales/order')
- Magento.
, ./app/code/core/Mage/ Model, , . Mage_Catalog_Model_Product ./app/code/core/Mage/Catalog/Model/Product.php.
init, _construct ( PHP __construct!), , Mage::getModel().
. Magento.
, Magento. , .
The're - Magento. , Magento, .
SQL
SQL Magento.
. SQL Magento, script, Magento.
, , script, , . , , Magento Connect. , , .
.
script, Magento. , .
- , :)