// Set to new fixtures

This commit is contained in:
Damien Metzger committed 2013-11-18 18:51:11 +01:00
1 parent c78252f64b
commit 36baadad1a
23 files changed
+11 -11

No files matched your search

+4 -4
View File
@@ -84,7 +84,7 @@ class InstallXmlLoader
public function setFixturesPath($path = null) public function setFixturesPath($path = null)
{ {
if ($path === null) if ($path === null)
$path = _PS_INSTALL_FIXTURES_PATH_.'apple/'; $path = _PS_INSTALL_FIXTURES_PATH_.'fashion/';
$this->path_type = 'fixture'; $this->path_type = 'fixture';
$this->data_path = $path.'data/'; $this->data_path = $path.'data/';
@@ -595,10 +595,10 @@ class InstallXmlLoader
$dst_path = _PS_IMG_DIR_.$p.'/'; $dst_path = _PS_IMG_DIR_.$p.'/';
$entity_id = $this->retrieveId($entity, $identifier); $entity_id = $this->retrieveId($entity, $identifier);
if (!copy($from_path.$identifier.'.'.$extension, $dst_path.$entity_id.'.'.$extension)) if (!@copy($from_path.$identifier.'.'.$extension, $dst_path.$entity_id.'.'.$extension))
{ {
$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier, $entity)); //$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier, $entity));
return; continue;//return;
} }
foreach ($types as $type) foreach ($types as $type)
@@ -7,11 +7,11 @@
<entities> <entities>
<category id="Women" id_parent="Home" active="1"/> <category id="Women" id_parent="Home" active="1"/>
<category id="Coats_and_Jackets" id_parent="Women" active="1"/> <category id="Coats_and_Jackets" id_parent="Women" active="1"/>
<category id="Coats" id_parent="Coats and Jackets" active="1"/> <category id="Coats" id_parent="Coats_and_Jackets" active="1"/>
<category id="Jackets" id_parent="Coats and Jackets" active="1"/> <category id="Jackets" id_parent="Coats_and_Jackets" active="1"/>
<category id="Blazers" id_parent="Coats and Jackets" active="1"/> <category id="Blazers" id_parent="Coats_and_Jackets" active="1"/>
<category id="Puffer_Jackets" id_parent="Coats and Jackets" active="1"/> <category id="Puffer_Jackets" id_parent="Coats_and_Jackets" active="1"/>
<category id="Leather_Jackets" id_parent="Coats and Jackets" active="1"/> <category id="Leather_Jackets" id_parent="Coats_and_Jackets" active="1"/>
<category id="Tops" id_parent="Women" active="1"/> <category id="Tops" id_parent="Women" active="1"/>
<category id="T-shirts" id_parent="Tops" active="1"/> <category id="T-shirts" id_parent="Tops" active="1"/>
<category id="Tops_2" id_parent="Tops" active="1"/> <category id="Tops_2" id_parent="Tops" active="1"/>
Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

+2 -2
View File
@@ -646,8 +646,8 @@ class InstallModelInstall extends InstallAbstractModel
*/ */
public function installFixtures($entity = null, array $data = array()) public function installFixtures($entity = null, array $data = array())
{ {
$fixtures_path = _PS_INSTALL_FIXTURES_PATH_.'apple/'; $fixtures_path = _PS_INSTALL_FIXTURES_PATH_.'fashion/';
$fixtures_name = 'apple'; $fixtures_name = 'fashion';
$zip_file = _PS_ROOT_DIR_.'/download/fixtures.zip'; $zip_file = _PS_ROOT_DIR_.'/download/fixtures.zip';
$temp_dir = _PS_ROOT_DIR_.'/download/fixtures/'; $temp_dir = _PS_ROOT_DIR_.'/download/fixtures/';