Page 1 of 2 12 LastLast
Results 1 to 10 of 32

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    The Free South
    Posts
    175
    Plugin Contributions
    0

    Default Re: linking to external images, outside of 'images/'

    Welcome!

    I was successful using this method:

    http://www.zen-cart.com/wiki/index.php/Contribution:Web_images

    I however need to be able to display multiple images on the product page.

    Here is the thread that I describe it in:

    http://www.zen-cart.com/forum/showth...361#post821361
    www.theCableStation.com
    "If we restrict liberty to attain security we will lose them both."

  2. #2
    Join Date
    Jun 2009
    Posts
    63
    Plugin Contributions
    0

    help question Re: linking to external images, outside of 'images/'

    Do you know if this will work if i load my product using easy populate?

    Thanks lexxie

  3. #3

    Default Re: linking to external images, outside of 'images/'

    For the record, I just implemented micmed's code from his contribution page on the wiki and it worked perfectly (thanks). There are a few places where it isn't clear what to remove from the original code at first but just comment out anything in the original code that looks mostly the same as the code provided.

    It should work fine with EP as long as your image field in your txt file contains the full path to the image (http://www.example.com/image.jpg). You may also need to increase the limit on your db field for products > products_image as mentioned above.
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  4. #4
    Join Date
    Oct 2009
    Posts
    30
    Plugin Contributions
    0

    help question Re: linking to external images, outside of 'images/'

    Quote Originally Posted by monkeytown View Post

    image field in your txt file contains the full path to the image (http://www.example.com/image.jpg).
    sorry for the stupid question....but I need to know how to find the path you mention above. I notice there are several "image" folders....in admin, in english, in my STORE's name. Question:

    I do a manual upload to froogle (at their site), NOT using any zen cart mod. just want a STATIC unchanging url for each image. What folder should I upload my product images to?

    Thank you in advance

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: linking to external images, outside of 'images/'

    Any image located on your server will have a static URL, as the images are not moving from folder to folder.

    Product images should generally go in the base /images/ folder or one of its subfolders.

  6. #6
    Join Date
    Oct 2009
    Posts
    30
    Plugin Contributions
    0

    help question Re: linking to external images, outside of 'images/'

    Quote Originally Posted by gjh42 View Post
    Any image located on your server will have a static URL, as the images are not moving from folder to folder.

    Product images should generally go in the base /images/ folder or one of its subfolders.
    Hi Glenn~

    THANK YOU for caring enough to answer. I'm not sure what you mean by "base". I have created a new folder (and named it LRG), in the images folder located in my store's folder. Is it ok to upload my product images to where I have which is:

    store/images/LRG/image01.jpg

    Thank you so much...from this to this

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: linking to external images, outside of 'images/'

    That's the base /images/ folder, directly in your store's folder.
    Using a folder named /LRG/ to hold product images is probably not the best idea, as "large" images are to be placed in the /images/large/ folder as versions of the "small" basic images in the /images/ folder. If you want a set of images that are specifically for off-site use, name the folder /froogle/ or something. If the images are the large versions of your regular product images, they should be in the /images/large/ folder and named with the _LRG suffix (like myimage_LRG.jpg, where the base image is myimage.jpg).
    You might want to read up on image use in the tutorials before you do something that will cause grief down the road.

  8. #8
    Join Date
    Feb 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: linking to external images, outside of 'images/'

    Hello!

    All the pictures on my website is liked to the supplier (http://www.supplier.com/imagens/photo.jpg). But when i go online i am not able to see the pictures unless i do a right click on the picture and choose to "view image". If i do that for one all the rest will show too.

    I tested on IE, FF and Safari and happen the samething.

    I changed the DIR_WS_IMAGES path

    Do you have any idea what can i do?

    Thank you in advance.

  9. #9
    Join Date
    Feb 2011
    Location
    Hong Kong
    Posts
    29
    Plugin Contributions
    1

    Default Re: linking to external images, outside of 'images/'

    I checked on the following link in ehow:
    http://www.ehow.com/how_8759326_modi...al-images.html

    The explanation is pretty straightforward. Basically: replace every occasion of DIR_WS_IMAGES by DIR_EXT_HTTP.

    If your local images have the full URL then they are found as well.

    I want to use a subdomain (http://images.jewels-n-pearls.com).

    Please correct me when I'm wrong: in that case using:
    define('DIR_EXT_HTTP', 'http://images.jewels-n-pearls.com/'); would work?

  10. #10
    Join Date
    Apr 2011
    Location
    Colonial Beach Virginia
    Posts
    10
    Plugin Contributions
    0

    Default Re: linking to external images, outside of 'images/'

    I have had to piece this together from several posts so for the benefit of those searching, here it is in full. This method is assuming a fresh install. Works like a charm. (Video Tutorial on you-tube. Search external images Zen Cart) Do not use this method on a secure installation as you will get errors from the images.

    Step 1
    Find: DIR_WS_IMAGES and replace with: DIR_EXT_HTTP in every file of your zencart distribution and any template.
    Now upload and run your install

    Step 2
    Line 29 on /includes/configure.php reads
    define('DIR_EXT_HTTP', 'images/');
    Change this to:
    define('DIR_EXT_HTTP', '');
    Note the page here doesn't show well so just remove images/ only from that line leaving ' ' intact.

    Step 3
    Open /includes/functions/html_output.php and replace what is there (and looks a lot like this) with this new code probably found at line 166-170

    // use old method on template images by rl: test for http if (strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '0' or strstr($src, 'http') != '0' ) { return zen_image_OLD($src, $alt, $width, $height, $parameters); }

    Step 4
    Insert the following code into: Admin CP> Tools> Install SQL Patches.

    ALTER TABLE `products` CHANGE `products_image` `products_image` VARCHAR( 150 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;

    Your zen Cart will now display external images. I have used this method to load thousands of products with hotlinked images since that is the only way the supplier will have it.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v152 external product images
    By chattunnel in forum Customization from the Admin
    Replies: 17
    Last Post: 10 Apr 2018, 07:53 AM
  2. Using external images
    By IAINMCG in forum General Questions
    Replies: 13
    Last Post: 16 Jan 2013, 09:03 PM
  3. External Images
    By yourguide in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Aug 2011, 02:14 PM
  4. Help with External Images
    By kclovis in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 12 Jun 2009, 07:33 PM
  5. linking images
    By first trading in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 8 Sep 2008, 12:20 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