Zen Cart Logo
Forums / General Questions / what is the proper folder for storing images?

what is the proper folder for storing images?

Views: 805

Results 1 to 4 of 4
8 Jul 2011, 8:28 PM
#1
idc1 avatar

idc1

Zen Follower

Join Date:
Jul 2011
Posts:
139
Plugin Contributions:
0

what is the proper folder for storing images?

Sorry if this is a repeat (rookie issue) but it is either not on the forum or I'm searching the wrong key words.

I've gotten zen cart all set up and functioning on a test server and am now ready to dive into the customization aspects.

My question right now deals with the proper protocol for storing images so that there won't be any future upgrade issues I read about when people don't create custom folders.

currently I have the 3 items below working fine

  1. product images stored @ /images

  2. header images stored @ /includes/templates/template_default/images

  3. custom template stored @ /includes/templates/custom/

I read where it is safe to add custom folders anywhere there is a classic folder. So for item 1 & 2 should I create a custom image folder and if I do this where do I reprogram the logic to now point to this location (if this is necessary). Noting that there is no /classic at root level which leads me to believe I should not do a /custom/images for item 1.

Thanks

8 Jul 2011, 11:17 PM
#2
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: what is the proper folder for storing images?

Hi, as far as im aware there is no overide folder for product images, i have just created a few new folders within the images folder for my products

if you have created a custom folder for your header, then your images for this want to be in the custom folder to

  1. you can create a folder in here for your products, i use a few for different folders for different catagories.
  2. /includes/templates/custom/images {header images}
  3. /includes/templates/custom {your template}

explanations of the overide can be seen here

https://www.zen-cart.com/tutorials/index.php?article=230

Rob

9 Jul 2011, 6:30 AM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: what is the proper folder for storing images?

idc1:

I read where it is safe to add custom folders anywhere there is a classic folder.

This is indeed correct.

idc1:

So for item 1 & 2 should I create a custom image folder

not possible for item#1 (as you noted, there isn't a 'classic' folder here).

idc1:

and if I do this where do I reprogram the logic to now point to this location (if this is necessary)

No need to reprogram anything. If there is a classic folder in any directory and you place a 'custom' folder in the same directory, AND the custom folder is named the same as your template file, then zen-cart will automatically find and use the files it contains rather than the default files.

It is also not only SAFE to create/add these custom folders, most experienced users will tell you that it is pretty much essential. It can save a lot of work (and headaches) when it comes to upgrading and/or if something ever goes wrong with the store.

There is no need for a custom folder for the images, because these will be unique for every store anyway, so updates aren't going to overwrite them (unless you do something silly, such as deleting the folder before doing an upgrade).

Cheers
Rod

11 Jul 2011, 1:20 PM
#4
idc1 avatar

idc1

Zen Follower

Join Date:
Jul 2011
Posts:
139
Plugin Contributions:
0

Re: what is the proper folder for storing images?

RodG:

There is no need for a custom folder for the images, because these will be unique for every store anyway, so updates aren't going to overwrite them (unless you do something silly, such as deleting the folder before doing an upgrade).

I hadn't thought about it that way, but it makes complete sense that there should be no reason to upgrade an images folder.

Thanks Rob and Rod for your responses