Hi!
I just installed thecontribution Whats new 2 but I would like the products to appear on the same row and not underneath each other.
Can someone please help me with this one?
Below is the code I think it would be in.
best regards,
Ola
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_whats_new.php 2982 2006-02-07 07:56:41Z birdbrain $
*
* rebuild by PeterB
* www.openhosting.sk
* peter DOT bohus AT openhosting DOT sk
*
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
if (($random_whats_new_sidebox_product->fields['products_id']) != ($random_whats_new_sidebox_product2->fields['products_id'])) {
$content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a><br />' . $whats_new_price;
/*...uprava pre druhy produkt...*/
$content .= '<br /><a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product2->fields['products_id']), 'products_id=' . $random_whats_new_sidebox_product2->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product2->fields['products_image'], $random_whats_new_sidebox_product2->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_whats_new_sidebox_product2->fields['products_name'] . '</a><br />' . $whats_new_price2;
/*...konec upravy...*/
$content .= '</div>';
} else {
$content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a><br />' . $whats_new_price;
$content .= '</div>';
}
?>




