Hi Zenners!

I have a bit of a complicated side box question...as stated. I have added the best sellers add on but I want the listings to be shown in the same layout as the featured products default sidebox. The coding is different and I'm not exactly sure where to make my adjustments and I don't want to end up messing things up. Any help would be greatly appreciated!


Featured PHP Code
PHP Code:
  $content "";
  
$featured_box_counter 0;
  while (!
$random_featured_product->EOF) {
    
$featured_box_counter++;
    
$featured_box_price zen_get_products_display_price($random_featured_product->fields['products_id']);
    
$content .= '<div class="sideBoxContent centeredContent">';
    
$content .=  '<a href="' zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'cPath=' zen_get_generated_category_path_rev($random_featured_product->fields["master_categories_id"]) . '&products_id=' $random_featured_product->fields["products_id"]) . '">' zen_image(DIR_WS_IMAGES $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT); 
    
$content .= '<br />' $random_featured_product->fields['products_name'] . '</a>';
    
$content .= '<div>' $featured_box_price '</div>';
    
$content .= '</div>';
    
$random_featured_product->MoveNextRandom();
  }
?> 
Best Sellers PHP
PHP Code:
  $content '';
  
$content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n";
  
$content .= '<div class="wrapper"><table cellpadding=0 cellspacing=0 border=0>' .  "\n";
  for (
$i=1$i<=sizeof($bestsellers_list); $i++) {
    
$imgLink =  DIR_WS_IMAGES $bestsellers_list[$i]['image'];
    if (
$i==2) {$content .= '<tr><td colspan=2><hr></td></tr>';}
    
$content .= '<tr><td valign=top><a href="' zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' $bestsellers_list[$i]['id']) . '">' .     zen_image($imgLinkzen_trunc_string($bestsellers_list[$i]['name']), SMALL_IMAGE_WIDTH/2SMALL_IMAGE_HEIGHT/2) . '</a></td><td valign=top><a href="' zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' $bestsellers_list[$i]['id']) . '">' zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATEBEST_SELLERS_TRUNCATE_MORE) . '</a><BR><div align=right>' zen_get_products_display_price($bestsellers_list[$i]['id']) . '</div></td></tr>' .     "\n";
  }

if (
BEST_SELLERS_TRUNCATE == '1') {
      
$content .= '<br />' zen_draw_separator('pixel_silver.gif') . '<br />';
    }  
  
$content .= '</table></div>' "\n";
  
$content .= '</div>';

?>