If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / how to get the difference of product types in the category page

how to get the difference of product types in the category page

Locked

Started by jaishem on 21 Sep 2010, 4:10 PM · Views: 561

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
21 Sep 2010, 4:10 PM
#1
jaishem avatar

jaishem

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++;
	?>