Jump to content
xt:Commerce Community Forum

Product_listing Nebeneinander


cartman2k

Recommended Posts

hier habe ich f?r meinen shop die angepasste produktlisting 2 spaltig, sie kann aber durch ver?ndern von

{php}

if ($col>=2) {

$col=0;

in 3 oder 4 spaltig abge?ndert werden.

product_listing.jpg


{config_load file="$language/lang_$language.conf" section="index"}

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr valign="top">

  <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="red" size="4">{$CATEGORIES_NAME}</font></strong> </font></td>

  <td align="right"></td>

 </tr>

</table>

{if $CATEGORIES_DESCRIPTION} <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <br>

{$CATEGORIES_DESCRIPTION}</font> <br>{if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}">{/if}

<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>

  <td style="border-bottom: 1px solid; border-color: #000000;"></td>

 </tr>

</table>

{/if}

{ if $MANUFACTURER_DROPDOWN} <br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>

  <td class="main"><div align="right">{#text_show#} {$MANUFACTURER_DROPDOWN}</div></td>

 </tr>

</table>

<br>

{/if}


<table width="100%" border="0" cellpadding="0" cellspacing="0">

 <tr>

  <td class="infoBoxHeading">{#heading_text#} </td>

 </tr>

</table>

<br>

<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>

 {foreach name=aussen item=module_data from=$module_content}

 {php} $col++; 

 {/php}

  <td class="main" align="center">

	<table width="100%" border="0" cellpadding="0" cellspacing="4" align="center">

 <tr align="center">

 	<td align="center" >{if $module_data.PRODUCTS_IMAGE}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" border="0"></a>{/if} </td>

 </tr>

 <tr>

 	<td class="main" align="center"><strong>

 	<a href="{$module_data.PRODUCTS_LINK}">{$module_data.PRODUCTS_NAME}</a></strong></td>

 </tr>

 <tr>

 	<td class="main" align="center" ><strong>{$module_data.PRODUCTS_PRICE}<br>

 	</strong>{$module_data.BUTTON_BUY_NOW}</td>

 </tr>

	</table></td>

 {php} 


 if ($col>=2) {

 $col=0;

 echo '</tr><tr>';

 }

 {/php}

 {/foreach} 

 </tr>

</table>



<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>

  <td>{$NAVIGATION}</td>

 </tr>

</table>

{if $result=='false'}

<table width="100%" border="0" cellpadding="0" cellspacing="0">

 <tr>

  <td style="border: 1px solid; border-color: #ff0000;" bgcolor="#FFCCCC"><div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">{#text_noproduct#}</font></strong></div></td>

 </tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>

  <td align="right"><br>

   {$BUTTON}</td>

 </tr>

</table>


{/if}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...