Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  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

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    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

  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
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: How do I change images folder?

    I recently wrote a script to make zencart image database driven (meaning image locations are stored in db), this script can also be used to use remote image paths instead of locals. However, to do so it will need some tweaking, plus i have not finished the backend controller yet. If you are comfortable with php then you can PM me.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #8
    Join Date
    Jan 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: How do I change images folder?

    Quote Originally Posted by yellow1912 View Post
    I recently wrote a script to make zencart image database driven (meaning image locations are stored in db), this script can also be used to use remote image paths instead of locals. However, to do so it will need some tweaking, plus i have not finished the backend controller yet. If you are comfortable with php then you can PM me.
    Very interested.

    Need to use remote image paths for my daily update files from my supplier I upload through easy populate.

    Dont care about backend.

  9. #9
    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

  10. #10
    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

 

 
Page 1 of 2 12 LastLast

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