View Single Post
  #1  
Old 02-12-2007, 09:06 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default HTML Catalog thumbnails using Cerdmanns Smarty plugin

I'm asking for help to get this working with my current project. It was a replacement for Telafirma's image mod but he is not available anymore. He managed to get this plugin to work with the html catalog on my last site but I can't see how he did this because his files are encrypted.

In function_thumb.php (Smarty-2.6.3/plugins) I have:

if (empty($params['cache'])) $_CONFIG['cache'] = 'files/cache/';

files/cache/ is the directory that the mod generates the cached thumbnails and it's where the product thumbnails are referenced. If I leave this default path I find that the dynamic cart works fine (and in SSL mode) but the HTML catalogue thumbnail references are looking for files/cache in the catalog directory, which of course does not exist.

Telafirma got this to work but I don't know how, I think he may have made some edits to function_thumb.php. I'm wondering what the best way to get the HTML cart to show the correct path (not relative) to the thumbnail so 'files/cache' becomes /xcart/files/cache'.

Anyone have any ideas?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote