If not present in your custom template copy
includes/modules/upcoming_products.php
to
includes/modules/responsive0clone/upcoming_products.php
and
includes/templates/template_default/templates/tpl_modules_upcoming_products.php
to
includes/templates/responsive0clone/templates/tpl_modules_upcoming_products.php
Open
includes/modules/responsive0clone/upcoming_products.php
change lines 26 and 44
from
PHP Code:
$expected_query = "SELECT p.products_id, pd.products_name, products_date_available AS date_expected, p.master_categories_id
to
PHP Code:
$expected_query = "SELECT p.products_id, pd.products_name, products_date_available AS date_expected, p.master_categories_id, p.products_image
Open
includes/templates/responsive0clone/templates/tpl_modules_upcoming_products.php
change lines 17 to 20
from
PHP Code:
<tr>
<th scope="col" id="upProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<th scope="col" id="upDateHeading"><?php echo TABLE_HEADING_DATE_EXPECTED; ?></th>
</tr>
to
PHP Code:
<tr>
<th scope="col" id="upcomingProducts-tableProductHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<th scope="col" id="upcomingProducts-tableDateHeading"><?php echo TABLE_HEADING_IMAGE; ?></th>
<th scope="col" id="upcomingProducts-tableDateHeading"><?php echo TABLE_HEADING_DATE_EXPECTED; ?></th>
</tr>
And add the following after the now line 26 (previous to the above addition line 25)
PHP Code:
echo '<td class="" >' . zen_image(DIR_WS_IMAGES . $expectedItems[$i]['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</td>' . "\n";
You should now have this (lines 22-31)
PHP Code:
<?php
for($i=0, $row=0, $n=sizeof($expectedItems); $i<$n; $i++, $row++) {
$rowClass = (($row / 2) == floor($row / 2)) ? "rowEven" : "rowOdd";
echo ' <tr class="' . $rowClass . '">' . "\n";
echo ' <td><a href="' . zen_href_link(zen_get_info_page($expectedItems[$i]['products_id']), 'cPath=' . $productsInCategory[$expectedItems[$i]['products_id']] . '&products_id=' . $expectedItems[$i]['products_id']) . '">' . $expectedItems[$i]['products_name'] . '</a></td>' . "\n";
echo ' <td>' . zen_image(DIR_WS_IMAGES . $expectedItems[$i]['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</td>' . "\n";
echo ' <td class="text-right" >' . zen_date_short($expectedItems[$i]['date_expected']) . '</td>' . "\n";
echo ' </tr>' . "\n";
}
?>
Now the image should be displayed.
Bookmarks