// Set to new fixtures
@@ -84,7 +84,7 @@ class InstallXmlLoader
|
||||
public function setFixturesPath($path = null)
|
||||
{
|
||||
if ($path === null)
|
||||
$path = _PS_INSTALL_FIXTURES_PATH_.'apple/';
|
||||
$path = _PS_INSTALL_FIXTURES_PATH_.'fashion/';
|
||||
|
||||
$this->path_type = 'fixture';
|
||||
$this->data_path = $path.'data/';
|
||||
@@ -595,10 +595,10 @@ class InstallXmlLoader
|
||||
$dst_path = _PS_IMG_DIR_.$p.'/';
|
||||
$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));
|
||||
return;
|
||||
//$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier, $entity));
|
||||
continue;//return;
|
||||
}
|
||||
|
||||
foreach ($types as $type)
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
<entities>
|
||||
<category id="Women" id_parent="Home" active="1"/>
|
||||
<category id="Coats_and_Jackets" id_parent="Women" active="1"/>
|
||||
<category id="Coats" 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="Puffer_Jackets" id_parent="Coats and Jackets" active="1"/>
|
||||
<category id="Leather_Jackets" 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="Blazers" 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="Tops" id_parent="Women" active="1"/>
|
||||
<category id="T-shirts" id_parent="Tops" active="1"/>
|
||||
<category id="Tops_2" id_parent="Tops" active="1"/>
|
||||
|
||||
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 126 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
@@ -646,8 +646,8 @@ class InstallModelInstall extends InstallAbstractModel
|
||||
*/
|
||||
public function installFixtures($entity = null, array $data = array())
|
||||
{
|
||||
$fixtures_path = _PS_INSTALL_FIXTURES_PATH_.'apple/';
|
||||
$fixtures_name = 'apple';
|
||||
$fixtures_path = _PS_INSTALL_FIXTURES_PATH_.'fashion/';
|
||||
$fixtures_name = 'fashion';
|
||||
$zip_file = _PS_ROOT_DIR_.'/download/fixtures.zip';
|
||||
$temp_dir = _PS_ROOT_DIR_.'/download/fixtures/';
|
||||
|
||||
|
||||