Hi,
I am using UTI with no problems! However, I did ask data-diggers.com how I could have the information displayed in my footer area *INSTEAD* of a sidebox and he gave me this following code:
PHP Code:
<?php
$content = ;
foreach ($recently_viewed_products as $rpid) {
$rpprice = zen_get_products_display_price($rpid);;
$content .= ;
$content .= zen_image(DIR_WS_IMAGES . zen_get_products_image($rpid), $rpid, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$img = $db->Execute(SELECT * FROM . TABLE_PRODUCTS . WHERE products_id = . (int)$rpid . );
$img = $img->fields['products_image'];
$content .= . zen_image(DIR_WS_IMAGES . $img, $rpid, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$content .= . zen_get_products_name($rpid) . ;
$content .= . $rpprice . ;
$content .= ;
}
echo $content; ?>
It does create an error (footer area get cuts off) so I ran the debug utility and it gave me this:
PHP Parse error: syntax error, unexpected T_STRING in /xxxxx/XXXXXX/xxxxxxx/includes/templates/MY TEMPLATE/common/tpl_footer.php on line 36
This is line 36:
PHP Code:
$img = $db->Execute(SELECT * FROM . TABLE_PRODUCTS . WHERE products_id = . (int)$rpid . );
I am not sure what OR where a T_String is 
Any suggestions?
Bookmarks