Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    33
    Plugin Contributions
    0

    Default Help with External Images

    My distributor provides image urls for the products on my site. And they also allow hotlinking. How do I make the hotlinked images appear in place of the default image location?

    Thanks!
    Kim C
    -----------------
    I've been Zenned!
    Now if I could just get this darned
    thing working the way I want!

  2. #2
    Join Date
    Oct 2004
    Posts
    33
    Plugin Contributions
    0

    Default Re: Help with External Images

    ok... so i guess there's no help for this? dang...
    Kim C
    -----------------
    I've been Zenned!
    Now if I could just get this darned
    thing working the way I want!

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Help with External Images

    There are several reasons not to do that:
    1. You dont want your customers to know of your distributor.
    2. What if their host is slow (it can happen from time to time), it will slow down your site.
    3. What if their host dies (again, it can happen from time to time), the images will not be displayed on your site.
    4. What if certain products are out of stock there, and they decide to delete those?
    .....

    If you still want to hotlink their images after that, you will have a hard time rewrite code.
    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

  4. #4
    Join Date
    Oct 2004
    Posts
    33
    Plugin Contributions
    0

    Default Re: Help with External Images

    I'll take my chances with all of the above. They don't host the images on their domain. They have a separate domain for the images so it's anonymous.

    They also have a datafeed for discontinued products. I understand all that you're saying and I appreciate your input, but I just need to know how to hotlink through to their images.

    Is there anyone that knows how to do this that can give me some direction?
    Kim C
    -----------------
    I've been Zenned!
    Now if I could just get this darned
    thing working the way I want!

  5. #5
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Help with External Images

    You will need to change the way zencart stores your image when you insert new products. You will also need to change the way zencart generate links to these images when displaying them on the site. If you use certain mods such as Image Handler 2, you may need to make further change for them to work correctly.
    Does it actually worth it? Are you try to save space or bandwidth?

    You should have some good knowledge of PHP and ZC to do this.
    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

  6. #6
    Join Date
    Oct 2004
    Posts
    33
    Plugin Contributions
    0

    Default Re: Help with External Images

    Well the reason is that the data file that the distributor has provided is too difficult to parse. I cannot extract the filenames from the url because some of the products are behind multiple directories and there is no real organization to it. The catalog is over 6,000 products and that's just too much to do one by one.

    So in a nutshell, I guess I'm going to spend my time working to either parse the data to extract the filenames or to figure out how to change the php file.

    Thanks so much for answering me!
    Kim C
    -----------------
    I've been Zenned!
    Now if I could just get this darned
    thing working the way I want!

 

 

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. linking to external images, outside of 'images/'
    By emphatic in forum Templates, Stylesheets, Page Layout
    Replies: 31
    Last Post: 7 Apr 2014, 10:48 AM
  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 link for image in header
    By wysiwygmn in forum General Questions
    Replies: 0
    Last Post: 7 Aug 2007, 11:17 PM
  5. can you help me with php for the "external sidebox" contribution?
    By p m in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Nov 2006, 05: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