
Originally Posted by
webejant
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 = ' <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> ';
and replace with
$lc_text = ' <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> ';
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