Islander2u Posted February 18, 2004 Posted February 18, 2004 I am trying to figure out a way to limit the amount of items being displayed in Viewed Products 1.0but having no luck I tried to borrow code from the recently viewed contributionwhich has this feature. $counter = 0; $info_box_contents = array(); $recent_products = split(';',$recently_viewed); foreach ($recent_products as $recent) { if ((strlen($recent) >0) && ($counter < 10)) { $counter++; if (strlen($counter) < 2) { $counter = '0' . $counter; } but I cant seem to get it to work. Has anyone else done this or have any leads?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.