Zen Cart Logo
Forums / General Questions / Images under new sub folders, now not showing

Images under new sub folders, now not showing

Locked

Views: 1,405

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Apr 2009, 9:04 AM
#1
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Images under new sub folders, now not showing

Hi, I'm really confused, I've been testing products and their images additional images etc and all images were appearing when they were as follows for example;

images/borderpatrol.jpg
images/borderpatrol2.jpg

images/large/borderpatrol_LRG.jpg
images/large/borderpatrol2_LRG.jpg

images/medium/borderpatrol_MED.jpg

But I realised I want my images to be more organised than this because there are so many of them and so many different products so I wanted them organised into sub folders according to product type or manufacturer for example,

So I asked the forum this; (the images in question are different to the borderpatrol one above but this is just an example) ;

'Hi, I have just finished sizing and re-naming all my images in preperation for adding products to my zen site and I just wanted to check before I go ahead do this; I am using dreamweaver to upload the images and I see there are the folders large and medium for my _LRG and _MED images, however I have so many different images I'd like to have them organised into product types within their large and medium folder so I can easily find images if I need to based on their product type so for example I have all my jewellery images in folders called jewellery_med Jewellery_lrg and jewellery_base is it possible to put these folders into either the /medium or /large folder that are already there and make a folder called base under /images and put jewellery_base in there so that the folders are organised as follows;

images/medium/jewellery_med/bracelet_MED.jpg

images/large/jewellery_lrg/bracelet_LRG.jpg

images/base/jewellery_base/bracelet.jpg

or for example

images/medium/pewtergifts_med/tankard_MED.jpg

images/large/pewtergifts_lrg/tankard_LRG.jpg

images/base/pewtergifts_base/tankard.jpg

It's not the end of the world if I can't do this but it would just be helpful if I can have my product images organised like this so I dont just have all different types under one folder.'

and the reply I got was;
'Here's the structure model you should use:

images/pewetergifts/tankard.jpg
images/medium/pewtergifts/tankard_MED.jpg
images/large/pewtergifts/tankard_LRG.jpg

images/jewellery/bracelet.jpg
images/medium/jewellery/bracelet_MED.jpg
images/large/jewellery/bracelet_LRG.jpg'

However I've used the structure advised above so that my borderpatrol.jpg and its additonal image are as follows;

images/Lifemax/borderpatrol.jpg
images/Lifemax/borderpatrol2.jpg

images/medium/Lifemax/borderpatrol_MED.jpg

images/large/Lifemax/borderpatrol_LRG.jpg
images/large/Lifemax/borderpatrol2_LRG.jpg

I uploaded them in dreamweaver but now the additonal and LRG images arn't appearing on the product info page. I'm sure it's something obvious I've missed but I'm pretty stuck. Any advise would be much appreciated. Heres the link to the product:

http://www.thegreatgiftshop.co.uk/zencart/index.php?main_page=product_info&cPath=7&products_id=12

The same is happening with the apple peeler too, first of all its images were fine and now under the new image structure nothing shows up (except the base image)

17 Apr 2009, 10:23 AM
#2
j_xx avatar

j_xx

New Zenner

Join Date:
Dec 2008
Location:
Uk
Posts:
79
Plugin Contributions:
0

Re: Images under new sub folders, now not showing

Hi, I'm not quite sure if this is on the right track, but it's the only reference I can find regarding your problem. I found the following code in "admin/easypopulate.php". I'm not that good with zencart yet, but it may point you in the right direction.

Especially lines 777 and 778

Cheers
J#xx
(Scott Perry)

Line #417 : $filelayout[] = "v_products_image"; 

Line #522 : p.products_image as v_products_image, 

Line #621 : $filetemp['image_url'] = 'v_products_fullpath_image'; 

Line #645 : p.products_image as v_products_image, 

Line #768 : // build the long full froogle image path 

Line #770 : // check for a large image else use medium else use small else no link 

Line #772 : $products_image = (($row['v_products_image'] == PRODUCTS_IMAGE_NO_IMAGE) ? '' : $row['v_products_image']); 

Line #773 : $products_image_extension = substr($products_image, strrpos($products_image, '.')); 

Line #774 : $products_image_base = ereg_replace($products_image_extension . '$', '', $products_image); 

Line #775 : $products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension; 

Line #776 : $products_image_large = $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension; 

Line #777 : if (!file_exists(DIR_FS_CATALOG_IMAGES . 'large/' . $products_image_large)) { 

Line #778 : if (!file_exists(DIR_FS_CATALOG_IMAGES . 'medium/' . $products_image_medium)) { 

Line #779 : $image_url = (($products_image == '') ? '' : DIR_WS_CATALOG_IMAGES . $products_image); 

Line #781 : $image_url = DIR_WS_CATALOG_IMAGES . 'medium/' . $products_image_medium; 

Line #784 : $image_url = DIR_WS_CATALOG_IMAGES . 'large/' . $products_image_large; 

Line #787 : $row['v_products_fullpath_image'] = $image_url; 

Line #1197 : 'v_products_image', 

Line #1198 : // redundant image mods removed 

Line #1237 : p.products_image as v_products_image, 

Line #1556 : if (trim($v_products_image) == '') { 

Line #1557 : $v_products_image = PRODUCTS_IMAGE_NO_IMAGE; 

Line #1641 : products_image = '" . zen_db_input($v_products_image)."' , 

Line #1675 : products_image = '" . zen_db_input($v_products_image)."' ,

Hope this helps !

17 Apr 2009, 10:31 AM
#3
j_xx avatar

j_xx

New Zenner

Join Date:
Dec 2008
Location:
Uk
Posts:
79
Plugin Contributions:
0

Re: Images under new sub folders, now not showing

Also in admin/includes/functions/general.php.

17 Apr 2009, 11:58 AM
#4
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: Images under new sub folders, now not showing

Hi thanks for the reply, however I can't find easypopulate.php and in general.php which line am i looking at? I'm very new to all this css etc and need step by step instructs for beginners! :) thanks

19 Apr 2009, 7:59 AM
#5
j_xx avatar

j_xx

New Zenner

Join Date:
Dec 2008
Location:
Uk
Posts:
79
Plugin Contributions:
0

Re: Images under new sub folders, now not showing

Hi, I'm new to this also, but just to point out the differences, CSS deals with the look of the site, these come with the templates you install, anything with .php refers to actual coding of the site and its functionality. I think for now it's probably best just to use the standard images/large/bracelet_LRG.jpg instead. At least it works and i'll keep working on how to get subfolders working for you !
Until then !

Cheers and have fun !
J#xx
(Scott Perry)

20 Apr 2009, 9:00 AM
#6
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: Images under new sub folders, now not showing

Ok no problem, thanks very much! :D