Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Viewed Products 1.0


Islander2u

Recommended Posts

I am trying to figure out a way to limit the amount of items being displayed in Viewed Products 1.0 but having no luck

 

I tried to borrow code from recently viewed which 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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...