Thread: Images folder

Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    110
    Plugin Contributions
    1

    Default Images folder

    I have just cloned a zen 1.3.7 site and now I want to set it up and bring it live.

    It is an add on domain on an existing web account. What I would like to do is use the images file from the original uncloned site. Does anybody know which file points to the default images folder and if its possible to redirect to this folder so as to just maintain one images folder for the two sites rather than doubling up the image data.

    Both sites will sell the same products mostly.
    Cheers all,

    Gruntre69

    WayCool
    Zen is Way Cool too!

  2. #2

    Default Re: Images folder

    You will need to edit the 2 configuration files (the one under the main store directory and the one under the administrator directory):

    includes/configure.php
    admin/includes/configure.php

    The settings you need to alter are resepctively:

    for includes/configure.php

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

    and for admin/includes/configure.php

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

    For the second file you are altering make sure you are giving the right path as there are 3 other options used to define the full path to the images directory - HTTP_CATALOG_SERVER, DIR_WS_CATALOG and DIR_FS_CATALOG. All three are defined in the same file so it should not be hard to adjust the desired configuration.
    We know Zen Cart, because our customers love it!
    SiteGround Team Member

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Images folder

    Hmmm... not strictly possible...

    The DEFINE statements in the configure files show relative, not absolute paths, because the path uses a base URL declaration in the page headers.

    So, where you see the following (for example):

    PHP Code:
    define('DIR_WS_IMAGES''images/'); 
    ... it means that it will APPEND images/ to the base url path, which will be something like:

    http://www.yourzencartinstallation.com/

    ...resulting in...

    http://www.yourzencartinstallation.com/
    images/


    If you were now to put a FULL PATH in the DEFINE:

    PHP Code:
    define('DIR_WS_IMAGES''http://www.somewebsite.com/images/'); 
    The result would be:

    http://www.yourzencartinstallation.com/http://www.somewebsite.com/images/

    Which is basically rubbish...
    20 years a Zencart User

 

 

Similar Threads

  1. v139h Max number of images in images folder
    By nickorett in forum General Questions
    Replies: 3
    Last Post: 3 Nov 2012, 07:16 AM
  2. v150 Some product images don't display, the .jpg is in the images folder
    By gbarnett in forum General Questions
    Replies: 8
    Last Post: 22 Feb 2012, 03:48 AM
  3. Replies: 1
    Last Post: 31 Oct 2011, 07:28 PM
  4. Replies: 2
    Last Post: 30 Mar 2009, 03:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg