Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2008
    Posts
    360
    Plugin Contributions
    0

    Default Redirecting problems for images hosted elsewhere

    Site URL:
    Code:
    http://www.theoutletseason.com/scentia/womens-perfumes-c-1/1000-by-jean-patou-for-women-eau-de-parfum-spray-1-oz-p-7402.html
    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

    Name:  Screen-Shot-2017-08-30-at-4.32.08-PM.jpg
Views: 269
Size:  37.6 KB

    When hovering or clicking over the image it takes to the wrong URL, I've tried many things and searched over the code using the Admin's Developers Tool Kit, but no matter what I searched couldn't find which files are affected by the Zoom URL, I need to get rid of DIR_WS_CATALOG . DIR_WS_IMAGES, that's adding to the path before the host URL pulled from the database ... no matter what I tried it keeps adding them, can you point me to what files I should look?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Redirecting problems for images hosted elsewhere

    There's a "plugin" that describes what needs to be done to accomplish this task. While it is identified as applicable to an old version of ZC, if I remember correctly for the most part it outlines all that is needed to accomplish this: External Product Images.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2008
    Posts
    360
    Plugin Contributions
    0

    Default Re: Redirecting problems for images hosted elsewhere

    Quote Originally Posted by mc12345678 View Post
    There's a "plugin" that describes what needs to be done to accomplish this task. While it is identified as applicable to an old version of ZC, if I remember correctly for the most part it outlines all that is needed to accomplish this: External Product Images.
    Does it still work?
    It was developed for version 1.3.8, and 1.5 is completely different ... Did anyone with version 1.5x uses it?
    I had to manually modify script by script and the only one that doesn't work is pop image ...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Redirecting problems for images hosted elsewhere

    Quote Originally Posted by icecold View Post
    can you point me to what files I should look?
    /includes/modules/(your_template)/main_product_image.php
    and
    /includes/templates/your_template/templates/tpl_modules_main_product_image.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2020
    Posts
    226
    Plugin Contributions
    1

    Default Re: Redirecting problems for images hosted elsewhere

    is this method still valid for 1.57c guys?

  6. #6
    Join Date
    Nov 2020
    Posts
    226
    Plugin Contributions
    1

    Default Re: Redirecting problems for images hosted elsewhere

    Open includes/configure.php

    On line 36 after this

    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    Add

    // PRO-Webs Use External Images
    define('DIR_EXT_HTTP', 'http://');

    I'm not seeing this line in the configure.php of 1.57c, do i add it anywhere or skip that step?

  7. #7
    Join Date
    Nov 2020
    Posts
    226
    Plugin Contributions
    1

    Default Re: Redirecting problems for images hosted elsewhere

    /includes/templates/your_template/templates/tpl_modules_main_product_image.php - I also couldn't see DIR_WS_IMAGES in this file ?

 

 

Similar Threads

  1. Replies: 1
    Last Post: 8 Nov 2016, 07:26 PM
  2. Downloadable products hosted elsewhere - can it work?
    By PaperMoon in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 12 Nov 2007, 07:23 PM
  3. Linking product images from elsewhere on my site
    By swortis in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 7 Mar 2007, 03:07 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR