
Originally Posted by
DrByte
The use of my code to call sidebox display from outside Zen Cart is dependent on working with resources entirely within the same domain as your Zen Cart shop.
If you wish to use it outside that context, you will need to alter the code, mostly in includes/functions/html_output.php, which draws the image using zen_image(), so that it looks for the image at the physical location specified by your internal server share in order to read the physical file and determine its contents, dimensions, etc, and then alter the output portion of the same function so that it grabs the real image from yet another domain.
The DIR_WS_IMAGES constant will need to be adjusted to something like:
define('DIR_WS_IMAGES', 'http://yourothersite.com/images/');
and then you'll need to add another constant for the physical share/folder path available to the function, and have it use that for locating and reading the file.
Oh, and, you'll need to make sure you don't bust it for your regular functionality, outside the sidebox.
Bookmarks