Contributions

Images (Category Index)
Search: 

Categories and Products Images Folder Tree

This contribution will automatically make folders under the /catalog/images folder that will match the categories tree when you create categories and it will place the products image in the correct folder. This helps keep your
products and categories images separated based on category.

Expand All / Collapse All

create directory within when update categories 6 Jan 2010

Hi: this contribution works breat, thank you!

this addon allow you to make directory when you update category, save you some time going through creating category in case of missing or deleted, or manually ftp, or going through catimagessetup...

in catalog/admin/categories.php

find:

rename($old_dir_name, $dir_to_make);

replace with:

if (is_dir($old_dir_name) == true) {
// rename directory if changing categories name
rename($old_dir_name, $dir_to_make);
} else {
// if directory are missing when update, then recreate directory
mkdir($dir_to_make,0755);
chmod($dir_to_make,0777);
}


zip file incude full block!

Categories and Products Images Folder TreeV1.4 1 Oct 2008
Categories and Products Images Folder TreeV1.3.zip 1 Sep 2008
Error fix: catimagessetup.php 11 Sep 2006
Filepath Trap Kevin Trocciola 16 May 2005
Readme File Amy Chow 6 Nov 2004
Add-on for Big Image Amy Chow 6 Nov 2004
Categories and Products Images Folder Tree V1.2 Joseph Passavanti 5 Sep 2004
Categories and Products Images Folder Tree V1.1 Joseph Passavanti 2 Sep 2004
Categories and Products Images Folder Tree Joseph Passavanti 2 Sep 2004

Note: Contributions are used at own risk.