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 / Multiple product images

Multiple product images

Locked

Started by rebekahpaul on 20 Jun 2006, 6:53 PM · Views: 14,398

Results 41 to 54 of 54
This thread is locked. New replies are disabled.
18 Apr 2009, 5:49 PM
#41
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Multiple product images

<?php
/**
 * @package Configuration Settings circa 1.3.8
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  define('HTTP_SERVER', 'http://customk9design.com');
  define('HTTPS_SERVER', 'https://customk9design.com');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/catalogzen/');
  define('DIR_WS_HTTPS_CATALOG', '/catalogzen/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/customk1/public_html/catalogzen/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen_');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'xxxxxxxx');
  define('DB_SERVER_PASSWORD', 'xxxxxxx');
  define('DB_DATABASE', 'customk1_zc1');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'database'); 
  define('DIR_FS_SQL_CACHE', '/home/customk1/public_html/catalogzen/cache');

// EOF

heres the config file...

as for your other two requests, changing the product record now (i assume you mean in the zencart admin products record) and for the phpmyadmin, i cannot say i am well versed in being "IN" the database itself, but i will try to find the info you asked about..

thanks!!!!

"Be the Change you wish to see in the World..." -Gandhi

18 Apr 2009, 5:57 PM
#42
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Re: Multiple product images

sooooooooooooooooooo.... isnt it like all good computer related advice, when i doubt, restart, clear cache, upload and do again... etc...

i re-uploaded the image thru the products mgmt in admin... not sure what was different, because i didnt change anything, but... the additional images are showing now.

thanks for your help!! sorry it was such a silly solution, should have tried that 1st.

"Be the Change you wish to see in the World..." -Gandhi

18 Apr 2009, 10:45 PM
#43
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Multiple product images

spooky ... :eek:

Could of been a cache thang ... thanks for the update ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Apr 2009, 7:57 AM
#44
kailey47 avatar

kailey47

New Zenner

Join Date:
Apr 2009
Posts:
10
Plugin Contributions:
0

Re: Multiple product images

Hi

I am using 1.3.8a, the only add on I have used is Alternative Header.

I am having issues with my additional images showing.

I hae set up the files as per the tutorial, except I have not added the MED & LRG files. Could this be what is causing my problem? Basically the file I have uploaded is the largest I wish to, and it s being adjusted automatically.

This is an example of a product I have set up that should be showing additional pictures

http://noteabledesigns.com.au/Shop/index.php?main_page=product_info&cPath=3&products_id=1

my file setup is

/images/MummyCards/PurpleFlowerMummyCard_MC01A.jpg
/images/MummyCards/PurpleFlowerMummyCard_MC01B.jpg

Please help? Let me know if you need more details

Cheers
Ree

24 Apr 2009, 8:56 AM
#45
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Multiple product images

except I have not added the MED & LRG files. Could this be what is causing my problem?
Yes...save yourself lot of time and trouble..install
Image Handler 2...will do it all for you...

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

24 Apr 2009, 11:39 AM
#46
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Re: Multiple product images

just to better understand how the system works, i believe your 1st (primary) image would need to be:
/images/MummyCards/PurpleFlowerMummyCard.jpeg

then additional can be:
/images/MummyCards/PurpleFlowerMummyCard_MC01A.jpg
/images/MummyCards/PurpleFlowerMummyCard_MC01B.jpg

the original/primary file name has to be completely found elsewhere in another image file name... so, since you have 1A for the first image, and your 2nd image is 1B, not 1AB... it doesnt know to relate the two.

"Be the Change you wish to see in the World..." -Gandhi

24 Apr 2009, 12:11 PM
#47
kailey47 avatar

kailey47

New Zenner

Join Date:
Apr 2009
Posts:
10
Plugin Contributions:
0

Re: Multiple product images

You are a legend CustomK... my problem is solved. Thank you so much!!!!!! :clap:

24 Apr 2009, 3:35 PM
#48
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Re: Multiple product images

hahahaha... NOT a legend, just one step ahead of ya! i was asking the same question a week ago... just passing on what ive learned from this great group.

glad i could help, best wishes!

"Be the Change you wish to see in the World..." -Gandhi

25 Apr 2009, 3:31 AM
#50
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Re: Multiple product images

glenn, thanks for your kind words! i know its just a forum about a web program, but u made my day! :)

hope everyone has a great weekend.

"Be the Change you wish to see in the World..." -Gandhi

1 Jun 2009, 10:50 AM
#51
zhoos avatar

zhoos

New Zenner

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

Re: Multiple product images

Hello all -

In case someone is wondering, and haven't figured out yet, he's some help.

Name your main image XXXX.JPG
Name your additional images XXXX_1.JPG or XXX_01.JPG or wadever.

Underscores make it work. Hyphens like XXX-01.JPG doesn't. I found this out via trial and error.

10 Sep 2009, 12:21 AM
#53
studiotucker avatar

studiotucker

New Zenner

Join Date:
Sep 2008
Posts:
47
Plugin Contributions:
0

Re: Multiple product images

For anyone who's using multiple images, I found a simple but powerful open source tool that is perfect for batch naming images on Zencart. It has saved me countless hours. I have tried several and this is one of the easiest I have found to use.

http://rename.lupasfreeware.org/lupasrename.php

You can't wait for inspiration. You have to go after it with a club.
"Jack London"

25 Oct 2009, 2:40 AM
#54
lmg2009 avatar

lmg2009

New Zenner

Join Date:
Oct 2009
Posts:
8
Plugin Contributions:
0

Re: Multiple product images

Hello,

I have the same problem and I followed the exact instructions and it is still not working. Any other steps that I might be missing?

I would appreciate your help.