diff --git a/install-new/classes/simplexml.php b/install-new/classes/simplexml.php new file mode 100644 index 000000000..5cd612fb0 --- /dev/null +++ b/install-new/classes/simplexml.php @@ -0,0 +1,72 @@ + +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + +class InstallSimplexmlElement extends SimpleXMLElement +{ + /** + * Can add SimpleXMLElement values in XML tree + * + * @see SimpleXMLElement::addChild() + */ + public function addChild($name, $value = null, $namespace = null) + { + if ($value instanceof SimplexmlElement) + { + $content = trim((string)$value); + if (strlen($content) > 0) + $new_element = parent::addChild($name, str_replace('&', '&', $content), $namespace); + else + { + $new_element = parent::addChild($name); + foreach ($value->attributes() as $k => $v) + $new_element->addAttribute($k, $v); + } + + foreach ($value->children() as $child) + $new_element->addChild($child->getName(), $child); + } + else + return parent::addChild($name, str_replace('&', '&', $value), $namespace); + } + + /** + * Generate nice and sweet XML + * + * @see SimpleXMLElement::asXML() + */ + public function asXML($filename = null) + { + $dom = new DOMDocument('1.0'); + $dom->preserveWhiteSpace = false; + $dom->formatOutput = true; + $dom->loadXML(parent::asXML()); + + if ($filename) + return file_put_contents($filename, $dom->saveXML()); + return $dom->saveXML(); + } +} \ No newline at end of file diff --git a/install-new/classes/xmlLoader.php b/install-new/classes/xmlLoader.php index e39d121f0..fadf414ad 100644 --- a/install-new/classes/xmlLoader.php +++ b/install-new/classes/xmlLoader.php @@ -346,7 +346,7 @@ class InstallXmlLoader if (!file_exists($path)) throw new PrestashopInstallerException('XML data file '.$entity.'.xml not found'); - if (!$this->cache_xml_entity[$this->path_type][$cache_id] = @simplexml_load_file($path)) + if (!$this->cache_xml_entity[$this->path_type][$cache_id] = @simplexml_load_file($path, 'InstallSimplexmlElement')) throw new PrestashopInstallerException('XML data file '.$entity.'.xml invalid'); } @@ -683,7 +683,7 @@ class InstallXmlLoader if (!$this->entityExists($entity)) return $info; - $xml = @simplexml_load_file($this->data_path.$entity.'.xml'); + $xml = @simplexml_load_file($this->data_path.$entity.'.xml', 'InstallSimplexmlElement'); if (!$xml) return $info; @@ -764,7 +764,12 @@ class InstallXmlLoader $field['relation'] = $info['relation']; } - $this->writeNiceAndSweetXML($xml, $this->data_path.$entity.'.xml'); + // Recreate entities nodes, in order to have the node after the node + $store_entities = clone $xml->entities; + unset($xml->entities); + $xml->addChild('entities', $store_entities); + + $xml->asXML($this->data_path.$entity.'.xml'); } /** @@ -825,7 +830,7 @@ class InstallXmlLoader unset($xml->entities); $entities = $xml->addChild('entities'); $this->createXmlEntityNodes($entity, $content['nodes'], $entities); - $this->writeNiceAndSweetXML($xml, $this->data_path.$entity.'.xml'); + $xml->asXML($this->data_path.$entity.'.xml'); // Generate multilang XML files if ($content['nodes_lang']) @@ -840,7 +845,7 @@ class InstallXmlLoader $xml_node = new SimpleXMLElement(''); $this->createXmlEntityNodes($entity, $nodes, $xml_node); - $this->writeNiceAndSweetXML($xml_node, $this->lang_path.$iso.'/data/'.$entity.'.xml'); + $xml_node->asXML($this->lang_path.$iso.'/data/'.$entity.'.xml'); } if ($xml->fields['image']) @@ -1048,8 +1053,7 @@ class InstallXmlLoader foreach ($node as $k => $v) { if (isset($types[$k]) && $types[$k]) - // Sadly SimpleXML is really stupid ... - $entity_node->addChild($k, str_replace('&', '&', $v)); + $entity_node->addChild($k, $v); else $entity_node[$k] = $v; } @@ -1137,16 +1141,4 @@ class InstallXmlLoader if (file_exists($from_path.$tab->class_name.'.gif')) copy($from_path.$tab->class_name.'.gif', $backup_path.$tab->class_name.'.gif'); } - - /** - * ONLY FOR DEVELOPMENT PURPOSE - */ - public function writeNiceAndSweetXML(SimpleXMLElement $xml, $filename) - { - $dom = new DOMDocument('1.0'); - $dom->preserveWhiteSpace = false; - $dom->formatOutput = true; - $dom->loadXML($xml->asXML()); - file_put_contents($filename, $dom->saveXML()); - } } \ No newline at end of file diff --git a/install-new/data/xml/access.xml b/install-new/data/xml/access.xml index ef368b7f4..a2eff04ba 100644 --- a/install-new/data/xml/access.xml +++ b/install-new/data/xml/access.xml @@ -1,5 +1,13 @@ + + + + + + + + @@ -101,12 +109,4 @@ - - - - - - - - diff --git a/install-new/data/xml/address_format.xml b/install-new/data/xml/address_format.xml index 20901acb7..466bb5720 100644 --- a/install-new/data/xml/address_format.xml +++ b/install-new/data/xml/address_format.xml @@ -1,5 +1,9 @@ + + + + firstname lastname @@ -2440,8 +2444,4 @@ Country:name phone - - - - diff --git a/install-new/data/xml/carrier.xml b/install-new/data/xml/carrier.xml index fe4e6f833..d4aed93b1 100644 --- a/install-new/data/xml/carrier.xml +++ b/install-new/data/xml/carrier.xml @@ -1,11 +1,5 @@ - - - 0 - - - @@ -24,4 +18,10 @@ + + + 0 + + + diff --git a/install-new/data/xml/carrier_group.xml b/install-new/data/xml/carrier_group.xml index 161d25bd5..63ee20d09 100644 --- a/install-new/data/xml/carrier_group.xml +++ b/install-new/data/xml/carrier_group.xml @@ -1,8 +1,8 @@ - + diff --git a/install-new/data/xml/carrier_zone.xml b/install-new/data/xml/carrier_zone.xml index 69b5ceb64..eba14abc4 100644 --- a/install-new/data/xml/carrier_zone.xml +++ b/install-new/data/xml/carrier_zone.xml @@ -1,10 +1,10 @@ - - - + + + diff --git a/install-new/data/xml/category.xml b/install-new/data/xml/category.xml index 7bb81cc80..5fdd43b44 100644 --- a/install-new/data/xml/category.xml +++ b/install-new/data/xml/category.xml @@ -1,10 +1,10 @@ - - - + + + diff --git a/install-new/data/xml/category_group.xml b/install-new/data/xml/category_group.xml index 01f5f8db8..a61018734 100644 --- a/install-new/data/xml/category_group.xml +++ b/install-new/data/xml/category_group.xml @@ -1,12 +1,12 @@ + + + + - - - - diff --git a/install-new/data/xml/cms.xml b/install-new/data/xml/cms.xml index 1f1eef6e6..b8ca83e16 100644 --- a/install-new/data/xml/cms.xml +++ b/install-new/data/xml/cms.xml @@ -1,5 +1,9 @@ + + + + @@ -7,8 +11,4 @@ - - - - diff --git a/install-new/data/xml/cms_category.xml b/install-new/data/xml/cms_category.xml index 730951149..33d4e3d2d 100644 --- a/install-new/data/xml/cms_category.xml +++ b/install-new/data/xml/cms_category.xml @@ -1,10 +1,10 @@ - - - + + + diff --git a/install-new/data/xml/configuration.xml b/install-new/data/xml/configuration.xml index 6b261385d..d22dde676 100644 --- a/install-new/data/xml/configuration.xml +++ b/install-new/data/xml/configuration.xml @@ -1,5 +1,9 @@ + + + + 2 @@ -848,17 +852,13 @@ 0 - invoice + invoice - 2 + 2 - 2 + 2 - - - - diff --git a/install-new/data/xml/contact.xml b/install-new/data/xml/contact.xml index 45da756a4..9f8034390 100644 --- a/install-new/data/xml/contact.xml +++ b/install-new/data/xml/contact.xml @@ -1,10 +1,10 @@ + + + - - - diff --git a/install-new/data/xml/country.xml b/install-new/data/xml/country.xml index c61b8e9f1..2bb63d79d 100644 --- a/install-new/data/xml/country.xml +++ b/install-new/data/xml/country.xml @@ -1,5 +1,16 @@ + + + + + + + + + + + @@ -246,15 +257,4 @@ - - - - - - - - - - - diff --git a/install-new/data/xml/delivery.xml b/install-new/data/xml/delivery.xml index fc42bd63c..9e8bc85c9 100644 --- a/install-new/data/xml/delivery.xml +++ b/install-new/data/xml/delivery.xml @@ -1,6 +1,5 @@ - @@ -10,4 +9,5 @@ + diff --git a/install-new/data/xml/gender.xml b/install-new/data/xml/gender.xml index 8baeadefd..fd324a60d 100644 --- a/install-new/data/xml/gender.xml +++ b/install-new/data/xml/gender.xml @@ -1,11 +1,11 @@ + + + - - - diff --git a/install-new/data/xml/group.xml b/install-new/data/xml/group.xml index f79fbc040..32324b599 100644 --- a/install-new/data/xml/group.xml +++ b/install-new/data/xml/group.xml @@ -1,13 +1,13 @@ - - - - - + + + + + diff --git a/install-new/data/xml/hook_alias.xml b/install-new/data/xml/hook_alias.xml index af93a761b..78faaa98f 100644 --- a/install-new/data/xml/hook_alias.xml +++ b/install-new/data/xml/hook_alias.xml @@ -1,5 +1,9 @@ + + + + payment @@ -342,8 +346,4 @@ actionTaxManager - - - - diff --git a/install-new/data/xml/image_type.xml b/install-new/data/xml/image_type.xml index 80a3a99ae..0c72134bf 100644 --- a/install-new/data/xml/image_type.xml +++ b/install-new/data/xml/image_type.xml @@ -1,15 +1,5 @@ - - - - - - - - - - @@ -22,4 +12,14 @@ + + + + + + + + + + diff --git a/install-new/data/xml/meta.xml b/install-new/data/xml/meta.xml index 55bcd3672..1afd028dc 100644 --- a/install-new/data/xml/meta.xml +++ b/install-new/data/xml/meta.xml @@ -1,5 +1,8 @@ + + + 404 @@ -77,7 +80,4 @@ guest-tracking - - - diff --git a/install-new/data/xml/operating_system.xml b/install-new/data/xml/operating_system.xml index 733f82677..d77191e76 100644 --- a/install-new/data/xml/operating_system.xml +++ b/install-new/data/xml/operating_system.xml @@ -1,5 +1,8 @@ + + + Windows XP @@ -14,7 +17,4 @@ Linux - - - diff --git a/install-new/data/xml/order_return_state.xml b/install-new/data/xml/order_return_state.xml index fdd5d495a..620a03dbf 100644 --- a/install-new/data/xml/order_return_state.xml +++ b/install-new/data/xml/order_return_state.xml @@ -1,5 +1,8 @@ + + + @@ -7,7 +10,4 @@ - - - diff --git a/install-new/data/xml/order_state.xml b/install-new/data/xml/order_state.xml index 537e60edd..77b2eaefd 100644 --- a/install-new/data/xml/order_state.xml +++ b/install-new/data/xml/order_state.xml @@ -1,5 +1,16 @@ + + + + + + + + + + + - - - - - - - - - - - diff --git a/install-new/data/xml/profile.xml b/install-new/data/xml/profile.xml index fce9aa157..557a09f5c 100644 --- a/install-new/data/xml/profile.xml +++ b/install-new/data/xml/profile.xml @@ -1,7 +1,7 @@ + - diff --git a/install-new/data/xml/quick_access.xml b/install-new/data/xml/quick_access.xml index d924fa040..2097553e1 100644 --- a/install-new/data/xml/quick_access.xml +++ b/install-new/data/xml/quick_access.xml @@ -1,5 +1,9 @@ + + + + index.php @@ -17,8 +21,4 @@ index.php?controller=AdminCartRules&addcart_rule - - - - diff --git a/install-new/data/xml/risk.xml b/install-new/data/xml/risk.xml index 0fd39d6cf..c8a17a7c2 100644 --- a/install-new/data/xml/risk.xml +++ b/install-new/data/xml/risk.xml @@ -1,13 +1,13 @@ + + + + - - - - diff --git a/install-new/data/xml/search_engine.xml b/install-new/data/xml/search_engine.xml index 67544ff7f..411a27ff8 100644 --- a/install-new/data/xml/search_engine.xml +++ b/install-new/data/xml/search_engine.xml @@ -1,5 +1,9 @@ + + + + google @@ -116,8 +120,4 @@ rambler - - - - diff --git a/install-new/data/xml/state.xml b/install-new/data/xml/state.xml index 11deaa7d9..5f48d0706 100644 --- a/install-new/data/xml/state.xml +++ b/install-new/data/xml/state.xml @@ -1,5 +1,13 @@ + + + + + + + + Alabama @@ -938,12 +946,4 @@ Yamanashi - - - - - - - - diff --git a/install-new/data/xml/stock_mvt_reason.xml b/install-new/data/xml/stock_mvt_reason.xml index 5042367c9..93ce8d919 100644 --- a/install-new/data/xml/stock_mvt_reason.xml +++ b/install-new/data/xml/stock_mvt_reason.xml @@ -1,5 +1,8 @@ + + + @@ -10,7 +13,4 @@ - - - diff --git a/install-new/data/xml/subdomain.xml b/install-new/data/xml/subdomain.xml index 9e50bf9b0..07156939b 100644 --- a/install-new/data/xml/subdomain.xml +++ b/install-new/data/xml/subdomain.xml @@ -1,9 +1,9 @@ - - - + + + diff --git a/install-new/data/xml/supply_order_state.xml b/install-new/data/xml/supply_order_state.xml index d420894a4..f7a0299d3 100644 --- a/install-new/data/xml/supply_order_state.xml +++ b/install-new/data/xml/supply_order_state.xml @@ -1,13 +1,5 @@ - - - - - - - - @@ -16,4 +8,12 @@ + + + + + + + + diff --git a/install-new/data/xml/tab.xml b/install-new/data/xml/tab.xml index 16cb83f93..bc8973379 100644 --- a/install-new/data/xml/tab.xml +++ b/install-new/data/xml/tab.xml @@ -1,5 +1,10 @@ + + + + + AdminHome @@ -299,9 +304,4 @@ AdminAccountingExport - - - - - diff --git a/install-new/data/xml/theme.xml b/install-new/data/xml/theme.xml index f7ebcf3ee..881be4e2b 100644 --- a/install-new/data/xml/theme.xml +++ b/install-new/data/xml/theme.xml @@ -1,11 +1,11 @@ + + + default - - - diff --git a/install-new/data/xml/timezone.xml b/install-new/data/xml/timezone.xml index 98fe5d8e0..ca6ac4138 100644 --- a/install-new/data/xml/timezone.xml +++ b/install-new/data/xml/timezone.xml @@ -1,5 +1,8 @@ + + + @@ -562,7 +565,4 @@ - - - diff --git a/install-new/data/xml/warehouse.xml b/install-new/data/xml/warehouse.xml index 746c2af88..f9b165670 100644 --- a/install-new/data/xml/warehouse.xml +++ b/install-new/data/xml/warehouse.xml @@ -1,6 +1,5 @@ - @@ -9,4 +8,5 @@ + diff --git a/install-new/data/xml/web_browser.xml b/install-new/data/xml/web_browser.xml index 28fc73312..4d31db30f 100644 --- a/install-new/data/xml/web_browser.xml +++ b/install-new/data/xml/web_browser.xml @@ -1,5 +1,8 @@ + + + Safari @@ -26,7 +29,4 @@ Google Chrome - - - diff --git a/install-new/data/xml/zone.xml b/install-new/data/xml/zone.xml index 08126df94..1213ee9e7 100644 --- a/install-new/data/xml/zone.xml +++ b/install-new/data/xml/zone.xml @@ -1,5 +1,9 @@ + + + + Europe @@ -26,8 +30,4 @@ Centrale America/Antilla - - - - diff --git a/install-new/fixtures/apple/data/access.xml b/install-new/fixtures/apple/data/access.xml index e7a1fbc4d..5d583acba 100644 --- a/install-new/fixtures/apple/data/access.xml +++ b/install-new/fixtures/apple/data/access.xml @@ -1,5 +1,13 @@ + + + + + + + + @@ -394,12 +402,4 @@ - - - - - - - - diff --git a/install-new/fixtures/apple/data/address.xml b/install-new/fixtures/apple/data/address.xml index 52bfe6687..70908e94f 100644 --- a/install-new/fixtures/apple/data/address.xml +++ b/install-new/fixtures/apple/data/address.xml @@ -1,19 +1,5 @@ - -
- 1 Infinite Loop - - Cupertino - -
-
- 16, Main street - 2nd floor - Paris - -
-
@@ -36,4 +22,18 @@ + +
+ 1 Infinite Loop + + Cupertino + +
+
+ 16, Main street + 2nd floor + Paris + +
+
diff --git a/install-new/fixtures/apple/data/alias.xml b/install-new/fixtures/apple/data/alias.xml index c4f4e06bf..c734f41c0 100644 --- a/install-new/fixtures/apple/data/alias.xml +++ b/install-new/fixtures/apple/data/alias.xml @@ -1,5 +1,10 @@ + + + + + ipdo @@ -10,9 +15,4 @@ ipod - - - - - diff --git a/install-new/fixtures/apple/data/attribute.xml b/install-new/fixtures/apple/data/attribute.xml index 2793e95c8..57f1343ba 100644 --- a/install-new/fixtures/apple/data/attribute.xml +++ b/install-new/fixtures/apple/data/attribute.xml @@ -1,5 +1,9 @@ + + + + @@ -22,8 +26,4 @@ - - - - diff --git a/install-new/fixtures/apple/data/attribute_group.xml b/install-new/fixtures/apple/data/attribute_group.xml index 001170244..04c30c826 100644 --- a/install-new/fixtures/apple/data/attribute_group.xml +++ b/install-new/fixtures/apple/data/attribute_group.xml @@ -1,12 +1,12 @@ + + + + - - - - diff --git a/install-new/fixtures/apple/data/carrier.xml b/install-new/fixtures/apple/data/carrier.xml index df9c3da9d..52b6b3b6f 100644 --- a/install-new/fixtures/apple/data/carrier.xml +++ b/install-new/fixtures/apple/data/carrier.xml @@ -1,11 +1,5 @@ - - - My carrier - - - @@ -24,4 +18,10 @@ + + + My carrier + + + diff --git a/install-new/fixtures/apple/data/carrier_group.xml b/install-new/fixtures/apple/data/carrier_group.xml index e711c8eae..f663f440f 100644 --- a/install-new/fixtures/apple/data/carrier_group.xml +++ b/install-new/fixtures/apple/data/carrier_group.xml @@ -1,12 +1,12 @@ + + + + - - - - diff --git a/install-new/fixtures/apple/data/carrier_zone.xml b/install-new/fixtures/apple/data/carrier_zone.xml index 694f53933..59390cfd6 100644 --- a/install-new/fixtures/apple/data/carrier_zone.xml +++ b/install-new/fixtures/apple/data/carrier_zone.xml @@ -1,11 +1,11 @@ - - - - + + + + diff --git a/install-new/fixtures/apple/data/cart.xml b/install-new/fixtures/apple/data/cart.xml index e691c2d27..6d299fa5a 100644 --- a/install-new/fixtures/apple/data/cart.xml +++ b/install-new/fixtures/apple/data/cart.xml @@ -1,11 +1,5 @@ - - - - - - @@ -20,4 +14,10 @@ + + + + + + diff --git a/install-new/fixtures/apple/data/cart_product.xml b/install-new/fixtures/apple/data/cart_product.xml index 8dfd20d88..2dc8e62e5 100644 --- a/install-new/fixtures/apple/data/cart_product.xml +++ b/install-new/fixtures/apple/data/cart_product.xml @@ -1,9 +1,5 @@ - - - - @@ -11,4 +7,8 @@ + + + + diff --git a/install-new/fixtures/apple/data/category.xml b/install-new/fixtures/apple/data/category.xml index a7cebb686..2eb06c28c 100644 --- a/install-new/fixtures/apple/data/category.xml +++ b/install-new/fixtures/apple/data/category.xml @@ -1,12 +1,12 @@ + + + + - - - - diff --git a/install-new/fixtures/apple/data/category_group.xml b/install-new/fixtures/apple/data/category_group.xml index 90fc59d44..c92e4246d 100644 --- a/install-new/fixtures/apple/data/category_group.xml +++ b/install-new/fixtures/apple/data/category_group.xml @@ -1,5 +1,9 @@ + + + + @@ -11,8 +15,4 @@ - - - - diff --git a/install-new/fixtures/apple/data/category_product.xml b/install-new/fixtures/apple/data/category_product.xml index 07554841e..61fa8c812 100644 --- a/install-new/fixtures/apple/data/category_product.xml +++ b/install-new/fixtures/apple/data/category_product.xml @@ -1,5 +1,9 @@ + + + + @@ -13,8 +17,4 @@ - - - - diff --git a/install-new/fixtures/apple/data/connections.xml b/install-new/fixtures/apple/data/connections.xml index 13f69255b..2395fcce7 100644 --- a/install-new/fixtures/apple/data/connections.xml +++ b/install-new/fixtures/apple/data/connections.xml @@ -1,14 +1,14 @@ - - - http://www.prestashop.com - - + + + http://www.prestashop.com + + diff --git a/install-new/fixtures/apple/data/customer.xml b/install-new/fixtures/apple/data/customer.xml index 5e4c2aaea..2f064dcac 100644 --- a/install-new/fixtures/apple/data/customer.xml +++ b/install-new/fixtures/apple/data/customer.xml @@ -1,11 +1,5 @@ - - - pub@prestashop.com - - - @@ -24,4 +18,10 @@ + + + pub@prestashop.com + + + diff --git a/install-new/fixtures/apple/data/delivery.xml b/install-new/fixtures/apple/data/delivery.xml index 045f5d80e..eee528aa0 100644 --- a/install-new/fixtures/apple/data/delivery.xml +++ b/install-new/fixtures/apple/data/delivery.xml @@ -1,11 +1,5 @@ - - - - - - @@ -15,4 +9,10 @@ + + + + + + diff --git a/install-new/fixtures/apple/data/feature.xml b/install-new/fixtures/apple/data/feature.xml index 966674780..863bdfd89 100644 --- a/install-new/fixtures/apple/data/feature.xml +++ b/install-new/fixtures/apple/data/feature.xml @@ -1,5 +1,6 @@ + @@ -7,5 +8,4 @@ - diff --git a/install-new/fixtures/apple/data/feature_value.xml b/install-new/fixtures/apple/data/feature_value.xml index 5c7987977..55b50f4f5 100644 --- a/install-new/fixtures/apple/data/feature_value.xml +++ b/install-new/fixtures/apple/data/feature_value.xml @@ -1,5 +1,9 @@ + + + + @@ -16,8 +20,4 @@ - - - - diff --git a/install-new/fixtures/apple/data/guest.xml b/install-new/fixtures/apple/data/guest.xml index 243c1922a..8477fcd55 100644 --- a/install-new/fixtures/apple/data/guest.xml +++ b/install-new/fixtures/apple/data/guest.xml @@ -1,8 +1,5 @@ - - - @@ -19,4 +16,7 @@ + + + diff --git a/install-new/fixtures/apple/data/image.xml b/install-new/fixtures/apple/data/image.xml index 7a2c16603..f96ae20ae 100644 --- a/install-new/fixtures/apple/data/image.xml +++ b/install-new/fixtures/apple/data/image.xml @@ -1,5 +1,9 @@ + + + + @@ -28,8 +32,4 @@ - - - - diff --git a/install-new/fixtures/apple/data/manufacturer.xml b/install-new/fixtures/apple/data/manufacturer.xml index b861aa71d..984429e56 100644 --- a/install-new/fixtures/apple/data/manufacturer.xml +++ b/install-new/fixtures/apple/data/manufacturer.xml @@ -1,5 +1,9 @@ + + + + Apple Computer, Inc @@ -8,8 +12,4 @@ Shure Incorporated - - - - diff --git a/install-new/fixtures/apple/data/order_detail.xml b/install-new/fixtures/apple/data/order_detail.xml index cec85cad4..f838beeee 100644 --- a/install-new/fixtures/apple/data/order_detail.xml +++ b/install-new/fixtures/apple/data/order_detail.xml @@ -1,15 +1,5 @@ - - - iPod touch - Capacité: 32Go - - - - Écouteurs à isolation sonore Shure SE210 - - - @@ -52,4 +42,14 @@ + + + iPod touch - Capacité: 32Go + + + + Écouteurs à isolation sonore Shure SE210 + + + diff --git a/install-new/fixtures/apple/data/order_history.xml b/install-new/fixtures/apple/data/order_history.xml index 95d994315..22d8c6ca8 100644 --- a/install-new/fixtures/apple/data/order_history.xml +++ b/install-new/fixtures/apple/data/order_history.xml @@ -1,11 +1,11 @@ - - - + + + diff --git a/install-new/fixtures/apple/data/order_message.xml b/install-new/fixtures/apple/data/order_message.xml index ff2864da8..1c9a0e3e2 100644 --- a/install-new/fixtures/apple/data/order_message.xml +++ b/install-new/fixtures/apple/data/order_message.xml @@ -1,7 +1,7 @@ + - diff --git a/install-new/fixtures/apple/data/orders.xml b/install-new/fixtures/apple/data/orders.xml index aa857fe32..8334205d1 100644 --- a/install-new/fixtures/apple/data/orders.xml +++ b/install-new/fixtures/apple/data/orders.xml @@ -1,12 +1,5 @@ - - - Chèque - cheque - - - @@ -44,4 +37,11 @@ + + + Chèque + cheque + + + diff --git a/install-new/fixtures/apple/data/product.xml b/install-new/fixtures/apple/data/product.xml index 1a48a1ef1..34537f6cf 100644 --- a/install-new/fixtures/apple/data/product.xml +++ b/install-new/fixtures/apple/data/product.xml @@ -1,35 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -71,4 +41,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/install-new/fixtures/apple/data/product_attribute.xml b/install-new/fixtures/apple/data/product_attribute.xml index fb260f2e9..4d6c14415 100644 --- a/install-new/fixtures/apple/data/product_attribute.xml +++ b/install-new/fixtures/apple/data/product_attribute.xml @@ -1,5 +1,22 @@ + + + + + + + + + + + + + + + + + @@ -83,21 +100,4 @@ - - - - - - - - - - - - - - - - - diff --git a/install-new/fixtures/apple/data/product_attribute_combination.xml b/install-new/fixtures/apple/data/product_attribute_combination.xml index 979a3c0b8..0c461960d 100644 --- a/install-new/fixtures/apple/data/product_attribute_combination.xml +++ b/install-new/fixtures/apple/data/product_attribute_combination.xml @@ -1,5 +1,9 @@ + + + + @@ -53,8 +57,4 @@ - - - - diff --git a/install-new/fixtures/apple/data/product_attribute_image.xml b/install-new/fixtures/apple/data/product_attribute_image.xml index 8aafddde7..0d235050a 100644 --- a/install-new/fixtures/apple/data/product_attribute_image.xml +++ b/install-new/fixtures/apple/data/product_attribute_image.xml @@ -1,5 +1,9 @@ + + + + @@ -29,8 +33,4 @@ - - - - diff --git a/install-new/fixtures/apple/data/product_supplier.xml b/install-new/fixtures/apple/data/product_supplier.xml index 37fc91287..59c4ce5ab 100644 --- a/install-new/fixtures/apple/data/product_supplier.xml +++ b/install-new/fixtures/apple/data/product_supplier.xml @@ -1,5 +1,12 @@ + + + + + + + @@ -36,11 +43,4 @@ - - - - - - - diff --git a/install-new/fixtures/apple/data/profile.xml b/install-new/fixtures/apple/data/profile.xml index 706ba7fce..e936c897e 100644 --- a/install-new/fixtures/apple/data/profile.xml +++ b/install-new/fixtures/apple/data/profile.xml @@ -1,10 +1,10 @@ + - diff --git a/install-new/fixtures/apple/data/range_price.xml b/install-new/fixtures/apple/data/range_price.xml index a52ce5aac..ce420575e 100644 --- a/install-new/fixtures/apple/data/range_price.xml +++ b/install-new/fixtures/apple/data/range_price.xml @@ -1,11 +1,11 @@ - - - + + + diff --git a/install-new/fixtures/apple/data/range_weight.xml b/install-new/fixtures/apple/data/range_weight.xml index ab2b430d5..ce95fa9f5 100644 --- a/install-new/fixtures/apple/data/range_weight.xml +++ b/install-new/fixtures/apple/data/range_weight.xml @@ -1,11 +1,11 @@ - - - + + + diff --git a/install-new/fixtures/apple/data/scene.xml b/install-new/fixtures/apple/data/scene.xml index fd41f2155..c519b20a7 100644 --- a/install-new/fixtures/apple/data/scene.xml +++ b/install-new/fixtures/apple/data/scene.xml @@ -1,11 +1,11 @@ + + + - - - diff --git a/install-new/fixtures/apple/data/specific_price.xml b/install-new/fixtures/apple/data/specific_price.xml index 28a43830c..3d0699022 100644 --- a/install-new/fixtures/apple/data/specific_price.xml +++ b/install-new/fixtures/apple/data/specific_price.xml @@ -1,8 +1,5 @@ - - - @@ -20,4 +17,7 @@ + + + diff --git a/install-new/fixtures/apple/data/stock_available.xml b/install-new/fixtures/apple/data/stock_available.xml index 7d2cb6880..9d64af8b3 100644 --- a/install-new/fixtures/apple/data/stock_available.xml +++ b/install-new/fixtures/apple/data/stock_available.xml @@ -1,5 +1,14 @@ + + + + + + + + + @@ -36,13 +45,4 @@ - - - - - - - - - diff --git a/install-new/fixtures/apple/data/store.xml b/install-new/fixtures/apple/data/store.xml index ec698d79a..e59814abc 100644 --- a/install-new/fixtures/apple/data/store.xml +++ b/install-new/fixtures/apple/data/store.xml @@ -1,5 +1,22 @@ + + + + + + + + + + + + + + + + + Dade County @@ -32,7 +49,7 @@ Coconut Grove 2999 SW 32nd Avenue - Miami + Miami a:7:{i:0;s:13:"09:00 - 19:00";i:1;s:13:"09:00 - 19:00";i:2;s:13:"09:00 - 19:00";i:3;s:13:"09:00 - 19:00";i:4;s:13:"09:00 - 19:00";i:5;s:13:"10:00 - 16:00";i:6;s:13:"10:00 - 16:00";} @@ -47,21 +64,4 @@ - - - - - - - - - - - - - - - - - diff --git a/install-new/fixtures/apple/data/supplier.xml b/install-new/fixtures/apple/data/supplier.xml index 1607fe0b8..8344eda96 100644 --- a/install-new/fixtures/apple/data/supplier.xml +++ b/install-new/fixtures/apple/data/supplier.xml @@ -1,5 +1,9 @@ + + + + AppleStore @@ -8,8 +12,4 @@ Shure Online Store - - - - diff --git a/install-new/fixtures/apple/data/tag.xml b/install-new/fixtures/apple/data/tag.xml index e59a403dc..2c4d15d51 100644 --- a/install-new/fixtures/apple/data/tag.xml +++ b/install-new/fixtures/apple/data/tag.xml @@ -1,7 +1,7 @@ - + diff --git a/install-new/init.php b/install-new/init.php index 0c113fa35..8f0691213 100644 --- a/install-new/init.php +++ b/install-new/init.php @@ -51,6 +51,7 @@ require_once _PS_INSTALL_PATH_.'classes/model.php'; require_once _PS_INSTALL_PATH_.'classes/session.php'; require_once _PS_INSTALL_PATH_.'classes/sqlLoader.php'; require_once _PS_INSTALL_PATH_.'classes/xmlLoader.php'; +require_once _PS_INSTALL_PATH_.'classes/simplexml.php'; class InstallLog {