Version Notes
- Added Video Tutorial
- Fixed Apostrophe problem in some sql sentence
- Added osCommerce language id selection in the configuration
- Fixed problem with delete product
Download this release
Release Info
| Developer | ezMage |
| Extension | Ezmage_OscommerceImport |
| Version | 1.7.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7.4 to 1.7.5
- app/code/community/Ezmage/OscommerceImport/controllers/IndexController.php +28 -14
- app/code/community/Ezmage/OscommerceImport/etc/config.xml +1 -1
- app/code/community/Ezmage/OscommerceImport/etc/system.xml +24 -11
- app/design/frontend/default/default/template/ezmage/oscommerceimport/step0.phtml +2 -2
- app/design/frontend/default/default/template/ezmage/oscommerceimport/step1.phtml +6 -1
- package.xml +8 -5
app/code/community/Ezmage/OscommerceImport/controllers/IndexController.php
CHANGED
|
@@ -12,7 +12,8 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 12 |
Mage::register('image_status4','check-no.jpg');
|
| 13 |
Mage::register('image_status5','check-no.jpg');
|
| 14 |
Mage::register('image_status6','check-no.jpg');
|
| 15 |
-
Mage::register('image_status7','check-no.jpg');
|
|
|
|
| 16 |
|
| 17 |
//check if configuration has values
|
| 18 |
$conf_hostname = Mage::getStoreConfig('oscommerceimportconf/oscconfiguration/conf_hostname',Mage::app()->getStore());
|
|
@@ -33,7 +34,7 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 33 |
Mage::register('conf_db',$conf_db);
|
| 34 |
Mage::register('conf_db_username',$conf_db);
|
| 35 |
Mage::register('conf_db_password',$conf_db_password);
|
| 36 |
-
Mage::register('conf_table_prefix',$conf_table_prefix);
|
| 37 |
Mage::register('conf_website',$conf_website);
|
| 38 |
Mage::register('conf_category',$conf_category);
|
| 39 |
Mage::register('conf_attribute',$conf_attribute);
|
|
@@ -88,6 +89,7 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 88 |
Mage::unregister('image_status7');
|
| 89 |
Mage::register('image_status7','check-ok.jpg');
|
| 90 |
}
|
|
|
|
| 91 |
|
| 92 |
// Layout Out Put
|
| 93 |
$this->loadLayout();
|
|
@@ -301,12 +303,12 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 301 |
$readConnection = $resource->getConnection('core_read');
|
| 302 |
$writeConnection = $resource->getConnection('core_write');
|
| 303 |
$_connection_remote = Mage::getSingleton('core/resource')->createConnection('oscommerce_conection', 'pdo_mysql', $_config);
|
| 304 |
-
|
| 305 |
|
| 306 |
////////////////
|
| 307 |
// categories //
|
| 308 |
////////////////
|
| 309 |
-
$query = 'select categories.categories_id ,categories.categories_image, categories.parent_id, categories_description.categories_name from categories LEFT JOIN categories_description on categories_description.categories_id = categories.categories_id and categories_description.language_id =
|
| 310 |
$results = $_connection_remote->fetchAll($query);
|
| 311 |
foreach($results as $row) {
|
| 312 |
// check if category exist
|
|
@@ -327,15 +329,19 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 327 |
//////////////
|
| 328 |
// products //
|
| 329 |
//////////////
|
| 330 |
-
$query = 'select products_id,products_name from products_description where language_id =
|
| 331 |
$results = $_connection_remote->fetchAll($query);
|
| 332 |
foreach($results as $row) {
|
| 333 |
// check if category exist
|
| 334 |
$sql = "select osc_product_id from ezmage_products where osc_product_id=".$row['products_id'];
|
| 335 |
$list = $readConnection->fetchAll($sql);
|
| 336 |
if (sizeof($list) == 0){
|
| 337 |
-
|
| 338 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 339 |
$writeConnection->query($sql);
|
| 340 |
}
|
| 341 |
}
|
|
@@ -587,6 +593,7 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 587 |
|
| 588 |
$storeId = Mage::getStoreConfig('oscommerceimportconf/mageconfiguration/conf_website',Mage::app()->getStore());
|
| 589 |
$parent_cat = Mage::getStoreConfig('oscommerceimportconf/mageconfiguration/conf_category',Mage::app()->getStore());
|
|
|
|
| 590 |
|
| 591 |
$_config = $this->setRemoteConectionConfig();
|
| 592 |
// Stop Indexes
|
|
@@ -612,7 +619,7 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 612 |
foreach($results as $row) {
|
| 613 |
//print $row['osc_product_id'].' => '.$row['osc_product_name'].' => '.$row['mage_product_id'].'<br>';
|
| 614 |
|
| 615 |
-
$product_osc = $this->getProductFromOSC($row['osc_product_id'],$readConnection,$_connection_remote);
|
| 616 |
$product_categories_osc = $this->getCategoriesProductFromOSC($row['osc_product_id'],$readConnection,$_connection_remote,$parent_cat);
|
| 617 |
|
| 618 |
// some validation
|
|
@@ -635,6 +642,9 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 635 |
$product_osc['products_model'] = $product_osc['products_model'].rand(1111,9999);
|
| 636 |
}
|
| 637 |
|
|
|
|
|
|
|
|
|
|
| 638 |
|
| 639 |
//$product = Mage::getModel('catalog/product');
|
| 640 |
$product = new Mage_Catalog_Model_Product();
|
|
@@ -1009,13 +1019,17 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 1009 |
}
|
| 1010 |
|
| 1011 |
}
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
// get import status
|
| 1015 |
$sql = "select osc_order_id from ezmage_orders where order_imported='y'";
|
| 1016 |
$list = $readConnection->fetchAll($sql);
|
| 1017 |
$importedOrdersTotal = sizeof($list);
|
| 1018 |
-
Mage::getSingleton('core/session')->setimportedOrdersTotal($importedOrdersTotal);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1019 |
}
|
| 1020 |
catch (Exception $ex) {
|
| 1021 |
Mage::register('conection_status','Oscommerce Order ID:'.$row['osc_order_id'].' - '.$ex->getMessage());
|
|
@@ -1782,8 +1796,8 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 1782 |
}
|
| 1783 |
|
| 1784 |
// Get product Information from oscommerce
|
| 1785 |
-
public function getProductFromOSC($osc_product_id,$readConnection,$_connection_remote){
|
| 1786 |
-
$query = 'select products_description.*,products.* from products left join products_description on products.products_id=products_description.products_id where products.products_id = '.$osc_product_id.' and products_description.language_id =
|
| 1787 |
$results = $_connection_remote->fetchAll($query);
|
| 1788 |
if (sizeof($results) == 1){
|
| 1789 |
$product = $results[0];
|
|
@@ -1865,7 +1879,7 @@ class Ezmage_OscommerceImport_IndexController extends Mage_Core_Controller_Front
|
|
| 1865 |
|
| 1866 |
// Generate category tree
|
| 1867 |
public function tep_get_subcategories(&$categories_array = '', $parent_id = '0',$readConnection) {
|
| 1868 |
-
|
| 1869 |
if (!is_array($categories_array)) $categories_array = array();
|
| 1870 |
$sql = "select * from ezmage_categories where osc_cat_parent=".(int)$parent_id;
|
| 1871 |
$results = $readConnection->fetchAll($sql);
|
| 12 |
Mage::register('image_status4','check-no.jpg');
|
| 13 |
Mage::register('image_status5','check-no.jpg');
|
| 14 |
Mage::register('image_status6','check-no.jpg');
|
| 15 |
+
Mage::register('image_status7','check-no.jpg');
|
| 16 |
+
Mage::register('image_status8','check-no.jpg');
|
| 17 |
|
| 18 |
//check if configuration has values
|
| 19 |
$conf_hostname = Mage::getStoreConfig('oscommerceimportconf/oscconfiguration/conf_hostname',Mage::app()->getStore());
|
| 34 |
Mage::register('conf_db',$conf_db);
|
| 35 |
Mage::register('conf_db_username',$conf_db);
|
| 36 |
Mage::register('conf_db_password',$conf_db_password);
|
| 37 |
+
//Mage::register('conf_table_prefix',$conf_table_prefix);
|
| 38 |
Mage::register('conf_website',$conf_website);
|
| 39 |
Mage::register('conf_category',$conf_category);
|
| 40 |
Mage::register('conf_attribute',$conf_attribute);
|
| 89 |
Mage::unregister('image_status7');
|
| 90 |
Mage::register('image_status7','check-ok.jpg');
|
| 91 |
}
|
| 92 |
+
|
| 93 |
|
| 94 |
// Layout Out Put
|
| 95 |
$this->loadLayout();
|
| 303 |
$readConnection = $resource->getConnection('core_read');
|
| 304 |
$writeConnection = $resource->getConnection('core_write');
|
| 305 |
$_connection_remote = Mage::getSingleton('core/resource')->createConnection('oscommerce_conection', 'pdo_mysql', $_config);
|
| 306 |
+
$conf_language_id = Mage::getStoreConfig('oscommerceimportconf/oscconfiguration/conf_language_id',Mage::app()->getStore());
|
| 307 |
|
| 308 |
////////////////
|
| 309 |
// categories //
|
| 310 |
////////////////
|
| 311 |
+
$query = 'select categories.categories_id ,categories.categories_image, categories.parent_id, categories_description.categories_name from categories LEFT JOIN categories_description on categories_description.categories_id = categories.categories_id and categories_description.language_id = '.$conf_language_id;
|
| 312 |
$results = $_connection_remote->fetchAll($query);
|
| 313 |
foreach($results as $row) {
|
| 314 |
// check if category exist
|
| 329 |
//////////////
|
| 330 |
// products //
|
| 331 |
//////////////
|
| 332 |
+
$query = 'select products_id,products_name from products_description where language_id = '.$conf_language_id;
|
| 333 |
$results = $_connection_remote->fetchAll($query);
|
| 334 |
foreach($results as $row) {
|
| 335 |
// check if category exist
|
| 336 |
$sql = "select osc_product_id from ezmage_products where osc_product_id=".$row['products_id'];
|
| 337 |
$list = $readConnection->fetchAll($sql);
|
| 338 |
if (sizeof($list) == 0){
|
| 339 |
+
//$row['products_name'] = str_replace('\"','',$row['products_name']);
|
| 340 |
+
//$row['products_name'] = str_replace('"','',$row['products_name']);
|
| 341 |
+
//$row['products_name'] = str_replace('"','',$row['products_name']);
|
| 342 |
+
$products_name = mysql_escape_string($row['products_name']);
|
| 343 |
+
//print $row['products_name'].' - '.mysql_escape_string($row['products_name']);exit;
|
| 344 |
+
$sql = 'insert into ezmage_products values('.$row['products_id'].',"'.$products_name.'","","")';
|
| 345 |
$writeConnection->query($sql);
|
| 346 |
}
|
| 347 |
}
|
| 593 |
|
| 594 |
$storeId = Mage::getStoreConfig('oscommerceimportconf/mageconfiguration/conf_website',Mage::app()->getStore());
|
| 595 |
$parent_cat = Mage::getStoreConfig('oscommerceimportconf/mageconfiguration/conf_category',Mage::app()->getStore());
|
| 596 |
+
$conf_language_id = Mage::getStoreConfig('oscommerceimportconf/oscconfiguration/conf_language_id',Mage::app()->getStore());
|
| 597 |
|
| 598 |
$_config = $this->setRemoteConectionConfig();
|
| 599 |
// Stop Indexes
|
| 619 |
foreach($results as $row) {
|
| 620 |
//print $row['osc_product_id'].' => '.$row['osc_product_name'].' => '.$row['mage_product_id'].'<br>';
|
| 621 |
|
| 622 |
+
$product_osc = $this->getProductFromOSC($row['osc_product_id'],$readConnection,$_connection_remote,$conf_language_id);
|
| 623 |
$product_categories_osc = $this->getCategoriesProductFromOSC($row['osc_product_id'],$readConnection,$_connection_remote,$parent_cat);
|
| 624 |
|
| 625 |
// some validation
|
| 642 |
$product_osc['products_model'] = $product_osc['products_model'].rand(1111,9999);
|
| 643 |
}
|
| 644 |
|
| 645 |
+
if ($product_osc['products_quantity'] < 0){
|
| 646 |
+
$product_osc['products_quantity'] = 1;
|
| 647 |
+
}
|
| 648 |
|
| 649 |
//$product = Mage::getModel('catalog/product');
|
| 650 |
$product = new Mage_Catalog_Model_Product();
|
| 1019 |
}
|
| 1020 |
|
| 1021 |
}
|
| 1022 |
+
|
|
|
|
| 1023 |
// get import status
|
| 1024 |
$sql = "select osc_order_id from ezmage_orders where order_imported='y'";
|
| 1025 |
$list = $readConnection->fetchAll($sql);
|
| 1026 |
$importedOrdersTotal = sizeof($list);
|
| 1027 |
+
Mage::getSingleton('core/session')->setimportedOrdersTotal($importedOrdersTotal);
|
| 1028 |
+
|
| 1029 |
+
// clean table sales_flat_quote if not we can't delete a product
|
| 1030 |
+
$sql = "DELETE FROM sales_flat_quote WHERE customer_is_guest = 0";
|
| 1031 |
+
$writeConnection->query($sql);
|
| 1032 |
+
|
| 1033 |
}
|
| 1034 |
catch (Exception $ex) {
|
| 1035 |
Mage::register('conection_status','Oscommerce Order ID:'.$row['osc_order_id'].' - '.$ex->getMessage());
|
| 1796 |
}
|
| 1797 |
|
| 1798 |
// Get product Information from oscommerce
|
| 1799 |
+
public function getProductFromOSC($osc_product_id,$readConnection,$_connection_remote,$conf_language_id){
|
| 1800 |
+
$query = 'select products_description.*,products.* from products left join products_description on products.products_id=products_description.products_id where products.products_id = '.$osc_product_id.' and products_description.language_id = '.$conf_language_id;
|
| 1801 |
$results = $_connection_remote->fetchAll($query);
|
| 1802 |
if (sizeof($results) == 1){
|
| 1803 |
$product = $results[0];
|
| 1879 |
|
| 1880 |
// Generate category tree
|
| 1881 |
public function tep_get_subcategories(&$categories_array = '', $parent_id = '0',$readConnection) {
|
| 1882 |
+
//$languages_id = $conf_language_id;
|
| 1883 |
if (!is_array($categories_array)) $categories_array = array();
|
| 1884 |
$sql = "select * from ezmage_categories where osc_cat_parent=".(int)$parent_id;
|
| 1885 |
$results = $readConnection->fetchAll($sql);
|
app/code/community/Ezmage/OscommerceImport/etc/config.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Ezmage_OscommerceImport>
|
| 6 |
-
<version>1.7.
|
| 7 |
</Ezmage_OscommerceImport>
|
| 8 |
</modules>
|
| 9 |
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Ezmage_OscommerceImport>
|
| 6 |
+
<version>1.7.5</version>
|
| 7 |
</Ezmage_OscommerceImport>
|
| 8 |
</modules>
|
| 9 |
|
app/code/community/Ezmage/OscommerceImport/etc/system.xml
CHANGED
|
@@ -85,7 +85,20 @@
|
|
| 85 |
<show_in_store>1</show_in_store>
|
| 86 |
<validate>required-entry validate-url</validate>
|
| 87 |
<comment><![CDATA[osCommerce Image Folder url ex: http://yourstore.com/images/ ]]></comment>
|
| 88 |
-
</conf_imageurl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
</fields>
|
| 90 |
</oscconfiguration>
|
| 91 |
|
|
@@ -122,12 +135,12 @@
|
|
| 122 |
<conf_attribute translate="label">
|
| 123 |
<label>Default Attribute Set</label>
|
| 124 |
<frontend_type>select</frontend_type>
|
| 125 |
-
|
| 126 |
<sort_order>2</sort_order>
|
| 127 |
<show_in_default>1</show_in_default>
|
| 128 |
<show_in_website>1</show_in_website>
|
| 129 |
<show_in_store>1</show_in_store>
|
| 130 |
-
|
| 131 |
</conf_attribute>
|
| 132 |
|
| 133 |
<conf_totalperimportcat translate="label">
|
|
@@ -137,8 +150,8 @@
|
|
| 137 |
<show_in_default>1</show_in_default>
|
| 138 |
<show_in_website>1</show_in_website>
|
| 139 |
<show_in_store>1</show_in_store>
|
| 140 |
-
|
| 141 |
-
<comment><![CDATA[We recommend to do 20
|
| 142 |
</conf_totalperimportcat>
|
| 143 |
|
| 144 |
<conf_totalperimport translate="label">
|
|
@@ -148,7 +161,7 @@
|
|
| 148 |
<show_in_default>1</show_in_default>
|
| 149 |
<show_in_website>1</show_in_website>
|
| 150 |
<show_in_store>1</show_in_store>
|
| 151 |
-
|
| 152 |
<comment><![CDATA[We recommend to do 50 products per batch]]></comment>
|
| 153 |
</conf_totalperimport>
|
| 154 |
|
|
@@ -159,8 +172,8 @@
|
|
| 159 |
<show_in_default>1</show_in_default>
|
| 160 |
<show_in_website>1</show_in_website>
|
| 161 |
<show_in_store>1</show_in_store>
|
| 162 |
-
|
| 163 |
-
<comment><![CDATA[We recommend to do 50
|
| 164 |
</conf_totalperimportcustomer>
|
| 165 |
|
| 166 |
<conf_totalperimportorder translate="label">
|
|
@@ -170,8 +183,8 @@
|
|
| 170 |
<show_in_default>1</show_in_default>
|
| 171 |
<show_in_website>1</show_in_website>
|
| 172 |
<show_in_store>1</show_in_store>
|
| 173 |
-
|
| 174 |
-
<comment><![CDATA[We recommend to do 50
|
| 175 |
</conf_totalperimportorder>
|
| 176 |
|
| 177 |
|
|
@@ -187,7 +200,7 @@
|
|
| 187 |
<show_in_default>1</show_in_default>
|
| 188 |
<show_in_website>1</show_in_website>
|
| 189 |
<show_in_store>1</show_in_store>
|
| 190 |
-
|
| 191 |
</oscommercebegin>
|
| 192 |
|
| 193 |
</groups>
|
| 85 |
<show_in_store>1</show_in_store>
|
| 86 |
<validate>required-entry validate-url</validate>
|
| 87 |
<comment><![CDATA[osCommerce Image Folder url ex: http://yourstore.com/images/ ]]></comment>
|
| 88 |
+
</conf_imageurl>
|
| 89 |
+
|
| 90 |
+
<conf_language_id translate="label">
|
| 91 |
+
<label>Language ID</label>
|
| 92 |
+
<frontend_type>text</frontend_type>
|
| 93 |
+
<sort_order>8</sort_order>
|
| 94 |
+
<show_in_default>1</show_in_default>
|
| 95 |
+
<show_in_website>1</show_in_website>
|
| 96 |
+
<show_in_store>1</show_in_store>
|
| 97 |
+
<validate>required-entry validate-number</validate>
|
| 98 |
+
<comment><![CDATA[By default use 1, but if you use a different language pls find in your oscommerce the id and update this value]]></comment>
|
| 99 |
+
|
| 100 |
+
</conf_language_id>
|
| 101 |
+
|
| 102 |
</fields>
|
| 103 |
</oscconfiguration>
|
| 104 |
|
| 135 |
<conf_attribute translate="label">
|
| 136 |
<label>Default Attribute Set</label>
|
| 137 |
<frontend_type>select</frontend_type>
|
| 138 |
+
<source_model>Ezmage_OscommerceImport_Model_Source_GetAttributeSets</source_model>
|
| 139 |
<sort_order>2</sort_order>
|
| 140 |
<show_in_default>1</show_in_default>
|
| 141 |
<show_in_website>1</show_in_website>
|
| 142 |
<show_in_store>1</show_in_store>
|
| 143 |
+
<validate>required-entry</validate>
|
| 144 |
</conf_attribute>
|
| 145 |
|
| 146 |
<conf_totalperimportcat translate="label">
|
| 150 |
<show_in_default>1</show_in_default>
|
| 151 |
<show_in_website>1</show_in_website>
|
| 152 |
<show_in_store>1</show_in_store>
|
| 153 |
+
<validate>required-entry validate-number</validate>
|
| 154 |
+
<comment><![CDATA[We recommend to do 20 categories per batch]]></comment>
|
| 155 |
</conf_totalperimportcat>
|
| 156 |
|
| 157 |
<conf_totalperimport translate="label">
|
| 161 |
<show_in_default>1</show_in_default>
|
| 162 |
<show_in_website>1</show_in_website>
|
| 163 |
<show_in_store>1</show_in_store>
|
| 164 |
+
<validate>required-entry validate-number</validate>
|
| 165 |
<comment><![CDATA[We recommend to do 50 products per batch]]></comment>
|
| 166 |
</conf_totalperimport>
|
| 167 |
|
| 172 |
<show_in_default>1</show_in_default>
|
| 173 |
<show_in_website>1</show_in_website>
|
| 174 |
<show_in_store>1</show_in_store>
|
| 175 |
+
<validate>required-entry validate-number</validate>
|
| 176 |
+
<comment><![CDATA[We recommend to do 50 customers per batch]]></comment>
|
| 177 |
</conf_totalperimportcustomer>
|
| 178 |
|
| 179 |
<conf_totalperimportorder translate="label">
|
| 183 |
<show_in_default>1</show_in_default>
|
| 184 |
<show_in_website>1</show_in_website>
|
| 185 |
<show_in_store>1</show_in_store>
|
| 186 |
+
<validate>required-entry validate-number</validate>
|
| 187 |
+
<comment><![CDATA[We recommend to do 50 orders per batch]]></comment>
|
| 188 |
</conf_totalperimportorder>
|
| 189 |
|
| 190 |
|
| 200 |
<show_in_default>1</show_in_default>
|
| 201 |
<show_in_website>1</show_in_website>
|
| 202 |
<show_in_store>1</show_in_store>
|
| 203 |
+
<comment><![CDATA[The URL will be http://www.<b>your-magento-domain.com</b>/oscommerceimport or http://www.<b>your-magento-domain.com</b>/index.php/oscommerceimport]]></comment>
|
| 204 |
</oscommercebegin>
|
| 205 |
|
| 206 |
</groups>
|
app/design/frontend/default/default/template/ezmage/oscommerceimport/step0.phtml
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
$image_status5 = Mage::registry('image_status5');
|
| 7 |
$image_status6 = Mage::registry('image_status6');
|
| 8 |
$image_status7 = Mage::registry('image_status7');
|
| 9 |
-
|
| 10 |
?>
|
| 11 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 12 |
<tr>
|
|
@@ -18,7 +18,7 @@
|
|
| 18 |
<tr>
|
| 19 |
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 20 |
<tr>
|
| 21 |
-
<td><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?>Ezmage/OscommerceImport/<?php echo $image_status1; ?>" /> <a href="<?php echo $this->getUrl('oscommerceimport/index/step1/')?>">1. Configuration</a> <br />
|
| 22 |
<br /></td>
|
| 23 |
</tr>
|
| 24 |
<?php if ( $image_status1 == 'check-no.jpg') {?>
|
| 6 |
$image_status5 = Mage::registry('image_status5');
|
| 7 |
$image_status6 = Mage::registry('image_status6');
|
| 8 |
$image_status7 = Mage::registry('image_status7');
|
| 9 |
+
$image_status8 = Mage::registry('image_status8');
|
| 10 |
?>
|
| 11 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 12 |
<tr>
|
| 18 |
<tr>
|
| 19 |
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 20 |
<tr>
|
| 21 |
+
<td><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?>Ezmage/OscommerceImport/<?php echo $image_status1; ?>" /> <a href="<?php echo $this->getUrl('oscommerceimport/index/step1/')?>">1. Configuration/Video</a> <br />
|
| 22 |
<br /></td>
|
| 23 |
</tr>
|
| 24 |
<?php if ( $image_status1 == 'check-no.jpg') {?>
|
app/design/frontend/default/default/template/ezmage/oscommerceimport/step1.phtml
CHANGED
|
@@ -22,7 +22,12 @@
|
|
| 22 |
|
| 23 |
<tr>
|
| 24 |
|
| 25 |
-
<td
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
</tr>
|
| 28 |
|
| 22 |
|
| 23 |
<tr>
|
| 24 |
|
| 25 |
+
<td>
|
| 26 |
+
<iframe width="560" height="315" src="http://www.youtube.com/embed/BuiR1SoJIfA" frameborder="0" allowfullscreen></iframe>
|
| 27 |
+
<br /><br />
|
| 28 |
+
<br />
|
| 29 |
+
|
| 30 |
+
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?>Ezmage/OscommerceImport/step1.png" width="598" height="514" /></td>
|
| 31 |
|
| 32 |
</tr>
|
| 33 |
|
package.xml
CHANGED
|
@@ -1,18 +1,21 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Ezmage_OscommerceImport</name>
|
| 4 |
-
<version>1.7.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Easily import categories/products/customers and orders from an osCommerce store into a Magento website! </summary>
|
| 10 |
<description>A tool that is designed for people who may have outgrown their current osCommerce platform or want to take the next step in e-commerce and move to an enterprise level platform. The osCommerce Categories / Products Migration tool allows you to easily export your products, images and product descriptions into a new Magento e-commerce store. Within minutes you can have your Magento store populated with the products you probably spent hours inserting into your osCommerce store!</description>
|
| 11 |
-
<notes
|
|
|
|
|
|
|
|
|
|
| 12 |
<authors><author><name>ezMage</name><user>ezosc</user><email>luis@ezosc.com</email></author></authors>
|
| 13 |
-
<date>2012-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Ezmage"><dir name="OscommerceImport"><dir name="Helper"><file name="Data.php" hash="001ce1cd0278e96f0ebf2bcde0f1f740"/><dir name="_notes"><file name="dwsync.xml" hash="92f5ab9f9ec159e4a9bfcdb426fa2101"/></dir></dir><dir name="Model"><dir name="Source"><file name="GetAttributeSets.php" hash="b9b1f50222887f9724419b2e81c8c9bf"/><dir name="_notes"><file name="dwsync.xml" hash="94d9ffa47bb72a83aa709a76d3cd6335"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Ezmage_OscommerceImport</name>
|
| 4 |
+
<version>1.7.5</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Easily import categories/products/customers and orders from an osCommerce store into a Magento website! </summary>
|
| 10 |
<description>A tool that is designed for people who may have outgrown their current osCommerce platform or want to take the next step in e-commerce and move to an enterprise level platform. The osCommerce Categories / Products Migration tool allows you to easily export your products, images and product descriptions into a new Magento e-commerce store. Within minutes you can have your Magento store populated with the products you probably spent hours inserting into your osCommerce store!</description>
|
| 11 |
+
<notes>- Added Video Tutorial
|
| 12 |
+
- Fixed Apostrophe problem in some sql sentence
|
| 13 |
+
- Added osCommerce language id selection in the configuration
|
| 14 |
+
- Fixed problem with delete product</notes>
|
| 15 |
<authors><author><name>ezMage</name><user>ezosc</user><email>luis@ezosc.com</email></author></authors>
|
| 16 |
+
<date>2012-07-11</date>
|
| 17 |
+
<time>05:53:15</time>
|
| 18 |
+
<contents><target name="magecommunity"><dir name="Ezmage"><dir name="OscommerceImport"><dir name="Helper"><file name="Data.php" hash="001ce1cd0278e96f0ebf2bcde0f1f740"/><dir name="_notes"><file name="dwsync.xml" hash="92f5ab9f9ec159e4a9bfcdb426fa2101"/></dir></dir><dir name="Model"><dir name="Source"><file name="GetAttributeSets.php" hash="b9b1f50222887f9724419b2e81c8c9bf"/><dir name="_notes"><file name="dwsync.xml" hash="94d9ffa47bb72a83aa709a76d3cd6335"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="62704fefcee2d616ceb3c9887987b037"/><dir name="_notes"><file name="dwsync.xml" hash="e6208632271b5ad0e5c74a8a9a1c3a7a"/></dir></dir><dir name="etc"><dir name="_notes"><file name="dwsync.xml" hash="f0baa67a1ea36697d607e697543db623"/></dir><file name="config.xml" hash="6e23b9a5a5fc7bca45272a88be5461b2"/><file name="system.xml" hash="7e7a5ddd6a16fd6bba56444ed4215b5a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ezmage_OscommerceImport.xml" hash="2000efb010c3f290d3170e00f14d3e4e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ezmage"><dir name="oscommerceimport"><dir name="_notes"><file name="dwsync.xml" hash="3f49638b54a9eb4da1152d2d80429807"/></dir><file name="step0.phtml" hash="fdaec389eeece4b93a48a00deb0daa6c"/><file name="step1.phtml" hash="4c63a8061cac71ba0be229fe00e6a193"/><file name="step2.phtml" hash="cf2dbfd3fb368f874b3e61ccca6591e1"/><file name="step3.phtml" hash="879265b22ea20c81f9cd4a4ad48948a8"/><file name="step31.phtml" hash="8c449ec34a91eea2987aa8861af9eb75"/><file name="step4.phtml" hash="df3f1bde5348494c6deaeeaf0cc6150f"/><file name="step5.phtml" hash="93b563ff93248a6cf12435797e074ac0"/><file name="step6.phtml" hash="683dad8d83966857772267dbe457fa88"/><file name="step7.phtml" hash="bfda65469851da45b2d413b71a713abd"/><file name="step8.phtml" hash="014e65886688b06744e3b221a489410f"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="Ezmage"><dir name="OscommerceImport"><file name="check-no.jpg" hash="1c9c306222acaf4150291d5f82e15389"/><file name="check-ok.jpg" hash="1a990bbbbead79f7af02883406c420f9"/><file name="step1.png" hash="4ca193b1b5ccc8012ef85c0e62743cf7"/></dir></dir></target></contents>
|
| 19 |
<compatible/>
|
| 20 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 21 |
</package>
|
