Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Viewed Products 1.0 contributions,1656


Islander2u

Recommended Posts

Posted

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?

Archived

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

×
×
  • Create New...