Ich habe mal eine frage zu einem Produkt template.
Ben
- php
oberer teil :
<html>
<?php $font = "<font face='$global_fontface' color='$global_fontcolor_dark' size='$global_text_size'>"; $_font = "</font>"; php?>
<?php
$col=1; // left = 1 or right = 2
$columnwidth = intval($basket_table_width/2); // set the new column width
php?>
<% INIT_STRUCTURE %>
<html>
<head>
und weiter unten :
<% INCLUDE_VAR($CUSTOM_HEADER) %>
<table width="$basket_table_width" cellpadding=0 cellspacing=2 border=0>
<% ITEMLOOP %>
<% IF_ITEM %>
<% IF ($col == 1) %>
<tr><td width="$columnwidth" align="center"><table width="100%"><% TEMPLATE %></table></td>
<?php $col=2; php?>
<% ELSE_IF %>
<td width="100%" align="center"><table width="100%"><% TEMPLATE %></table></td></tr>
<?php $col=1; php?>
<% END_IF %>
<% ELSE_IF %>
<% IF ($col == 2) %>
<td> </td></tr>
<?php $col=1; php?>
<% END_IF %>
<tr><td colspan="2"><table width="100%"><% TEMPLATE %></table></td></tr>
<% END_IF %>
<% END_ITEMLOOP %>
wie würde das ausehen wenn ich anstadt der 2 produkte 4 produkte in einer reihe darstellen wollte ??
ich kapiers nicht ... :((
unten nochmal der link zu der seite auf welcher es "genauer" erlärt wird ... (wenn jemand meine version nicht verstanden hat :O)