Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / (quickie) which file to change to alter image pull location

(quickie) which file to change to alter image pull location

Locked

Started by deathsdoor on 31 Aug 2006, 2:37 PM · Views: 1,128

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 Aug 2006, 2:37 PM
#1
deathsdoor avatar

deathsdoor

New Zenner

Join Date:
Mar 2005
Posts:
27
Plugin Contributions:
0

(quickie) which file to change to alter image pull location

just a quickie

i currently have 100+ products on my site all pointing to site/images/products1 i am wanting to change it so that all the product images are pulled from a diferent location e.g site/pictures i am looking for a fast fix. basically i need to edit the file or mysql database manually and set the url / file location to where i have uploaded them too. Im just wondering where the information is stored? where does it store the image loaction etc ?

basically i want to change every image from

mysite/images/image1
mysite/images/image2
mysite/images/image3
mysite/images/image4

to

mysite/image1
mysite/image2
mysite/image3
mysite/image4

so if all the images are stored in 1 file i could just copy/paste my way through relatively easily.

thanks in advance.

31 Aug 2006, 6:57 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: (quickie) which file to change to alter image pull location

your /includes/configure.php file and /admin/includes/configure.php file contain a line like this:```
define('DIR_WS_IMAGES', 'images/');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Sep 2006, 1:11 AM
#3
deathsdoor avatar

deathsdoor

New Zenner

Join Date:
Mar 2005
Posts:
27
Plugin Contributions:
0

Re: (quickie) which file to change to alter image pull location

thanks dr. ive manually changed them to conform to the original zen specs i really appreciate the input though as im eager to learn the ins and outs of this fine cms. My sites currently a bit rough as ive hacked away at it a bit. your views/input would be greatly appreciated though if u get time. and dont worry about completely critisising everything. im eager to learn.

https://www.unitmodels.co.uk

ill post a new thread for criticism in the links appropriate area.