21 Sep 2010, 4:10 PM
New Zenner
- Join Date:
- Feb 2010
- Posts:
- 55
- Plugin Contributions:
- 0
Post #1 by jaishem
Hi
Please help me to get a products_type value in the category page
( tpl_tabular_display.php )
In the category page I need to display Download or Order button according to the products_type
if
products_type =1 => Order
products_type =4 => Download
Please HELP!
<?php
$i=0;
foreach($list_box_contents as $item)
{
if($i==0)
{
$i++;
continue;
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="85%" valign="top" class="form_text">
<p class="desc">
<?=strip_tags($item[1]['text'], "<a>")?><br>
</p>
<? $price = split('<br />', $item[2]['text']); $price = $price[0];?>
<? $url = split('"', $item[1]['text']); $url = $url[3] ?>
<br>
<a href="<?=$url?>">More Information</a>
</td>
<td width="15%" >
<a href="<?=$url?>"></a>
</td>
</tr>
</table>
<php?
}
$i++;
?>