Page 2 of 2 FirstFirst 12
Results 11 to 20 of 32

Hybrid View

  1. #1

    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.

  2. #2
    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?

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

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

    Quote Originally Posted by micmed View Post
    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

    Hi Dose anyone know how I can do this? I tried to figure this out but I just don't get it. http://www.zen-cart.com/wiki/index.php/Contribution:Web_images can some one explain to me if I am just adding the lines that are in this Contribution anywhere in the file it specefise it gose in. Dose it go in the top or bottm of the file. Where in the file dose it go. Or is it rplacing something in the file or am I just adding the code to the spesified php file. Can some one please explan to me how I can make this work for me to.

    Thanks for your time and Help.

    Lexxie

  4. #4
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

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

    I tried this today and can't make it work. When I impl'd it all images disappeared. I immediately restored my backup files and I can get images from my server normally just as before.

    I know I've done something wrong, but I can't see what. I agree that for those of us who are not php gurus the implementation of a mod like this will be traumatic. Too many files to change, many changes in each file, no easy way to tell if a line should be replaced or the new lines just added. The implementation instructions could be more clear as to where to make the changes and if a change replaces an existing line or is an addition.

    I use Notepad as my editor, so just giving me line numbers as a way to point to the change doesn't always come out right.

    I did look at the author's website and it appears that he is able to get images from both his local server and use linked images from another server at the same time, so if he's using the same changes he posted in the wiki I guess we're too dumb to understand.

    It's probably impossible to do, but if the author could zip up the live files needing changed from his website and let me look at them to compare to what I did, I'm sure I could make it work .. and also write sensible instructions that anyone could follow.

    The best solution tho, would be for the Zen programmers to add this into their next point release and the entire issue would completely go away.

    I promise that when I get more familiar with the Zen Programs (and PhP) I'll quit asking noob questions ..
    Last edited by mb01a; 27 Dec 2009 at 12:13 AM.

  5. #5
    Join Date
    Mar 2014
    Location
    USA
    Posts
    10
    Plugin Contributions
    0

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

    I have completed my store now all I want is to add external links to catalog image so that customers can see the product description. any help plz!!!

  6. #6
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

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

    Quote Originally Posted by refinerztouch View Post
    I have completed my store now all I want is to add external links to catalog image so that customers can see the product description. any help plz!!!
    Well you could just put the link to the external site in your product description.
    Adding a user defineable link to the product_image is going to take a LOT of work
    I mean farrrrr toooo much.

    Why not host it on your site?
    Cut and paste the external product_description and use it for your Product_description
    Then at least you won't be promoting "other" sites for google to rank in front of yours

  7. #7

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

    Quote Originally Posted by webejant View Post
    Hello,

    I just migrated here from OsCommerce where I linked to external images for my products through a contribution I found and it worked perfectly. I am now using Zen Cart and have not figured out how to do it with Zen Cart. I found this post, but, as a "newbie" to Zen, I needed simple copy and paste instructions, so, this post did not help as of yet. The following is what I did in OsCommerce, and yes, I am aware that Zen and OsC are different, but, will something similiar work? And if so, can someone give me a simple copy and paste to make it work? And yes, I have permission from my online supplier to link to their image server, so, no etiquette is compromised.



    1.) Open catalog/includes/configure.php



    add the following line of code to the end of the file before the last ?>

    define('DIR_EXT_HTTP', 'http://');



    2.) Open catalog/product_info.php



    find the following line

    DIR_WS_IMAGES



    and replace it with:

    DIR_EXT_HTTP



    3.) Open catalog/includes/modules/new_products.php



    find the following line

    DIR_WS_IMAGES



    and replace it with:

    DIR_EXT_HTTP



    4.) Open catalog/includes/modules/product_listing.php



    find the following line

    $lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>&nbsp;';



    and replace with

    $lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_EXT_HTTP . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>&nbsp;';





    5.) Open catalog/includes/boxes/whats_new.php



    find the following line

    DIR_WS_IMAGES



    and replace it with:

    DIR_EXT_HTTP



    6.) Open catalog/includes/boxes/specials.php



    find the following line

    DIR_WS_IMAGES



    and replace it with:

    DIR_EXT_HTTP



    7.) Open catalog/includes/boxes/best_sellers.php



    find the following line

    DIR_WS_IMAGES



    and replace it with:

    DIR_EXT_HTTP



    8.) Open catalog/popup_image.php



    find the following line

    DIR_WS_IMAGES



    and replace it with:

    DIR_EXT_HTTP



    9.) Open catalog/shopping_cart.php



    find the following line

    DIR_WS_IMAGES



    and replace it with:

    DIR_EXT_HTTP



    It is best to follow the above replacements for all boxes files used on your site.


    Thanks in advance,
    WeBeJanT
    Hi ,

    I did that but doesn 't work . Because if you change the DIR_EXT_HTTP . It keeps looking on your internal server...
    Any other solution?

 

 
Page 2 of 2 FirstFirst 12

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