
Originally Posted by
honda-crunch
Well, I did not give up and I have now found a solution...
It now gives a full product name and loads up a medium size image with IH3
I am using Zencart 1.3.9h with Recenlty Viewed 1.1 and Image handler 3. I have tested on my site and found no errors in the cache log.
I thought I would post it here as I'm sure I am not the only one with this issue.
Here Goes:
Find php file: tpl_recent_products.php
located in: cart/includes/templates/sideboxes/
If like me you have extra templates then use:
cart/includes/templates/YOUR_TEMPLATE/sideboxes/
Find line 11 which starts:
$content .= '<a href="' . zen_href_link(zen_get_info_page($recent_products->fields["products_id"]), 'products_id=' .
$recent_products->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />' . $recent_products->fields['products_name'] . '<br />' ;
Replace it with:
$content .= '<a href="' . zen_href_link(zen_get_info_page($recent_products->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($recent_products->fields['master_categories_id']) . '&products_id=' . $recent_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], $recent_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$content .= '<br />' . $recent_products->fields['products_name'] . '</a>';
Don't touch any other file.
As I'm not a professional programmer, obviously I will not guarantee it. Please make a backup before you start.
The next thing to do is to show a price under each product!