Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Redirecting problems for images hosted elsewhere

Redirecting problems for images hosted elsewhere

Views: 1,024

Results 1 to 7 of 7
30 Aug 2017, 8:07 PM
#1
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Redirecting problems for images hosted elsewhere

Site URL: ```
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!]

Attachment 17258

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?
30 Aug 2017, 11:42 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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.

31 Aug 2017, 2:52 AM
#3
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Re: Redirecting problems for images hosted elsewhere

mc12345678:

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 Sep 2017, 7:32 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Redirecting problems for images hosted elsewhere

icecold:

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

26 Sep 2021, 9:32 AM
#5
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
318
Plugin Contributions:
3

Re: Redirecting problems for images hosted elsewhere

is this method still valid for 1.57c guys?

28 Sep 2021, 10:05 PM
#6
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
318
Plugin Contributions:
3

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?

28 Sep 2021, 11:29 PM
#7
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
318
Plugin Contributions:
3

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 ?