Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Plugin Contributions
    0

    Default How do I change images folder?

    I put absolute image paths into products_image field in the database (I had to do that because my wholesaler provided me with image links instead of images). Problem here is that php inserts default images folder name before absolute path of the image when a customer is looking at the page. My idea to solve this problem is to change default images folder to nothing. But the problem is that I can not find where zencart stores default images folder name.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I change images folder

    Suggest you find a solution that allows you to obtain images and host them on your site as one does not want to rely upon anothers site for this most important segment of a site that is doing your business.

    That said: In your configure.php files the path to the images dir is
    Code:
    define('DIR_WS_IMAGES', 'images/');
    Not positive that making this blank will correct your issue
    Do retain the pair of single quotes so as not to break things
    Zen-Venom Get Bitten

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

    Default Re: How do I change images folder?

    Product images show up in many places in ZC, including popups, and ZC is not designed to call images from a remote host.

    Look at how to solve this here:

    http://www.zen-cart.com/forum/showpo...18&postcount=9
    20 years a Zencart User

  4. #4
    Join Date
    Mar 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: How do I change images folder?

    Thank you for the solutions. In case of downloading the images there is one drawback. When I am updating prices everyday I will need to check what merchandise is new and download pictures for it.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I change images folder?

    When I am updating prices everyday I will need to check what merchandise is new and download pictures for it.
    Keeps you informed about what you have for sale!!
    Think about what this would be like if it were a physical shop!

    Keeping your current offerings in a spreadsheet and getting current availability- drops & adds daily in a sheet and a bit of VB to compare/add/drop is a way to manage
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Mar 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: How do I change images folder?

    is it possible to make and incorporate in zencart powered webshop a php script which will login to wholesaler webpage, grab a file with new prices, check for new products, download pictures for them and update database?

  7. #7
    Join Date
    May 2010
    Location
    Trinidad & Tobago
    Posts
    6
    Plugin Contributions
    0

    Default Re: How do I change images folder?

    Quote Originally Posted by schoolboy View Post
    Product images show up in many places in ZC, including popups, and ZC is not designed to call images from a remote host.

    Look at how to solve this here:

    http://www.zen-cart.com/forum/showpo...18&postcount=9
    Hello,

    I've hounded down the place for a solution to this, but can't seem to find it/don't know if it's possible.

    I have my zen cart installed into a sub-directory of my root folder i.e. www.something/shop

    images are defaulted to the images folder in the /shop. In my root folder, though, I have an images folder already. So, I was wondering a couple things -
    in my includes/configure.php, i changed the define('DIR_WS_IMAGES', 'images/') to define('DIR_WS_IMAGES', '/images/'). This seemed to work at first, but then my category images were warped. usually at 250x300, they were now warped to 200x300. Product images seemed to work fine when I changed the path...and coincidentally, product images are 200x300. So my 2 questions -

    1) Is fixing this problem a simple task?
    2) Is it advisable in the first place to store images in an image directory in the root folder, or am I just messing to hard with the Zen Cart structure?

    Thanks in advance!!
    Nick

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I change images folder?

    nicktrini,
    Quote Originally Posted by nicktrini
    Is fixing this problem a simple task?
    Just move the images in your /images dir to the /shop/images dir
    Zen-Venom Get Bitten

  9. #9
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: How do I change images folder?

    Quote Originally Posted by kobra View Post
    nicktrini,

    Just move the images in your /images dir to the /shop/images dir
    But, what if you need the images directory to stay in the root, and do not want to copy them to the subdirectory because the folder is shared with the new root of the site? Example:

    The Zen Cart site was moved from the root to http://site.com/shop

    Everything in includes/configure.php has been updated to reflect this subdirectory:

    PHP Code:
    define('HTTP_SERVER''https://site.com');
    define('HTTPS_SERVER''https://site.com');
    define('DIR_WS_CATALOG''/shop/');
    define('DIR_WS_HTTPS_CATALOG''/shop/');
    define('DIR_FS_CATALOG''host/account/public_html/shop/'); 
    I want images to stay in the root, so I added this to includes/configure.php:

    PHP Code:
    define('DIR_WS_IMAGES''http://site.com/images/'); 
    Result so far: the main product image on listings pages and product pages works! The additional images do not work.


    (Old thread, I know, but after reading all of the other ones, this thread really sums up the question I have.)

 

 

Similar Threads

  1. v150 updating my images doesn't make any change after moving ZC to another folder
    By dagadesign in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 30 Jan 2012, 02:57 AM
  2. Change Default images folder?
    By dranet in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Dec 2008, 03:41 PM
  3. How do I move images to a new folder?
    By mcpisik in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 15 Jul 2007, 05:12 AM
  4. How to move product images to new folder
    By Dralion in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Jun 2007, 05:14 PM

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