New Zenner
- Join Date:
- May 2011
- Posts:
- 67
- Plugin Contributions:
- 4
Need help to creat a break line after 7 IMG in order Page
Hello Guys,
I modified my order page to display all IMG ordered with code and attributes.
Now I need a HOW TO make a break line <tr> after 7 IMG displayed.
To understand a bit more see it in http://www.pendientesparati.com/prob.html
after 7 photos I need a new horizontal line with other 7 photos at final ordered products to print purpose.
I modified ther orders.php and renamed to orders-foto.php and included a button to call the ordered products with PHOTO and attributes.
Now I NEED WHAT and WHERE put something to mnake a break line after 7 IMG
<tr> <?php for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { echo ' <td align="left" valign="top">' . "\n" . ' <img border="0" src="http://www.pendientesparati.com/images/' . $order->products[$i]['model'] . '.JPG" width="90" height="120"><br>' . $order->products[$i]['qty'] . 'X ' . $order->products[$i]['model'] . '' . "\n"; if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) { for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) { echo '<br><small> <i>' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])); if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')'; if ($order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') echo TEXT_INFO_ATTRIBUTE_FREE; echo '</i></small>'; } } echo ' </td>' . "\n";
}
?>
</tr>