Zen Cart Logo
Forums / General Questions / Default product image location?

Default product image location?

Locked

Views: 3,443

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
29 Oct 2008, 9:20 PM
#1
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Default product image location?

I have searched and read the book, and have not been able to determine if there is a way to setup a:

Default Image Upload Location by Product Type

Or any other way to set up a default location for uploading product and category images.

Even if I have to edit a file or two, what do I need to change? Where?

TIA :cool:
JOhn ><>

30 Oct 2008, 5:29 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Default product image location?

Product images default to "main" and this is /images
There is a drop box for location and this is also availale in the category area for you to select location from

30 Oct 2008, 1:08 PM
#3
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Default product image location?

That I totally understand, I was just thinking out loud that it would be nice to not have to select it EVERY time, and I was making sure that I wasn't missing something.

JIOhn ><>

20 Nov 2008, 5:01 AM
#4
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Default product image location?

I would be interested in the answer to this too as I was just hunting for one. I would like my default not to be 'main directory' but 'previews' which is a subfolder of images that I have created. Is this possible ???? :dontgetit
Thanks for any help

23 Dec 2008, 9:58 PM
#5
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Default product image location?

Add me to the queue! I've also been trying to find a way to change the default setting in collect_info.php from the main directory to a directory of my choosing so that I don't have to manually change the drop down list every time I add a new product.

Does anyone have the answer to this please?

6 Jan 2009, 12:40 AM
#6
jucks avatar

jucks

New Zenner

Join Date:
Dec 2008
Posts:
8
Plugin Contributions:
0

Re: Default product image location?

me too, i cant figure out how to edit the code correctly, i dont care if it doesnt have a drop down, as long as it went to the right folder, e.g. when using categories.php in admin images should be uploaded to categories, anyt idea?

6 Jan 2009, 2:51 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Default product image location?

For Stuff4Toys, demiurgia, PGlad, Jucks,

Use at you own risk - but this will alter it:

Look to both of your configure.php files and change what is between the single quotes

define('DIR_WS_IMAGES', 'images/');
6 Jan 2009, 3:44 AM
#8
southernlady avatar

southernlady

Zen Follower

Join Date:
Mar 2005
Location:
TN
Posts:
116
Plugin Contributions:
0

Re: Default product image location?

Add me to the confused list. I had broken the pop up for the larger ones but managed to fix that.

But for some reason they are still displaying the 100 x 100 size on the larger pop up.

Zen Cart v1.3.8a/v1.3.8
Mods installed:
Paypal Verified Logo
Blank Sidebox (twice)
Admin Profiles
I have installed my own template...as in a new logo and changed the css to reflect my own colors. Added a background tile.

I am my own server/hosting company.

I have hunted high and low for the answer to this one. The answer isn't as clear as I would make it or I'M not finding the right thread. I've read thru the wiki. Did a side by side of my files with a clean copy of ZC and the only files that come up odd are the ones I KNOW I've changed.

The problem has been there from the beginning...it's just this problem's turn to get fixed. I've had other issues to worry about first.

Okay, file structure of my images as it stands right now:
images/attributes/xxxx.jpg (100 x 100)
images/medium/xxxx_MED.jpg (300 x 300)
images/large/xxxx_LRG.jpg (500x 500)

Live examples:
images/attributes/ASCCUPUDoodleOverlayPackage1Preview.jpg
images/medium/ASCCUPUDoodleOverlayPackage1Preview_MED.jpg
images/large/ASCCUPUDoodleOverlayPackage1Preview_LRG.jpg

If I click on the the image to see the larger image, I get a pop up box, but all I see is the 100 x 100 image.

My question after doing the side by side comparison...
WHERE are the small images suppose to be located if not in the attribute section? Seems that was the wrong spot for them and now I have no clue where they should be going.

Liz

https://www.gblcreations.com/store

6 Jan 2009, 4:05 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Default product image location?

Default is

images/xxxx.jpg small
images/medium/xxxx_MED.jpg medium
images/large/xxxx_LRG.jpg large

6 Jan 2009, 5:43 AM
#10
southernlady avatar

southernlady

Zen Follower

Join Date:
Mar 2005
Location:
TN
Posts:
116
Plugin Contributions:
0

Re: Default product image location?

Thank you, it's all fixed now.

I'm sure I'll break something else but in the meantime, it's working like it should for the time being. Liz

6 Jan 2009, 2:28 PM
#11
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Default product image location?

kobra:

For Stuff4Toys, demiurgia, PGlad, Jucks,

Use at you own risk - but this will alter it:

Look to both of your configure.php files and change what is between the single quotes

define('DIR_WS_IMAGES', 'images/');

 
I am the first to admit that I am not a programmer, but I am imagining that the answer for this would only take a little added logic. 
 
I am assuming that each time an edit product page is loaded it scans the images dir to see what sub-dirs are there. Isn't there a way to add some logic that says, I am editing a (General) product type and in the product type config it says that product images go in THIS folder, so I will present THIS folder as the default?
 
Just a thought?
JOhn ><>
6 Jan 2009, 6:33 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Default product image location?

Stuff4Toys:

Thanks for your input kobra, but that really isn't an option, fix or even a real alternative. This move would prevent you from selecting an alternate folder when (in the rare occasion) you needed to.
This is actually no different than the default behaviour, and only re-defines the "default" dir. One is still presented with the option to select another via the drop box.
As to your OP, this would be in non-overideable admin files, but a set of switch/case conditionals could make it automatic by product type

6 Jan 2009, 7:13 PM
#13
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Default product image location?

kobra:

This is actually no different than the default behaviour, and only re-defines the "default" dir. One is still presented with the option to select another via the drop box.Maybe I made a mistake when I assumed that changing the images folder in the config would no longer allow you to see the categories, attributes and other sub-folders of the /images/ folder, thus not really beneficial for the masses.

As to your OP, this would be in non-overridable admin files, but a set of switch/case conditionals could make it automatic by product typeNow you really got me lost. I figured it would be effecting the core code a bit.

I'm not a programmer, but if I could encourage those who can with new ideas, or possibly a different thought pattern, then I've done my job.

I am at the mercy of those who can...
JOhn ><>