<td class="main" align="right" valign="top"> </td></tr>'; */ } if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) { for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) { $data_products .= '<tr> <td class="main" align="left" valign="top"> <small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . ' </i></small></td> <td class="main" align="right" valign="top"> </td></tr>'; } } $data_products .= '' . "\n"; if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) { if (sizeof($order->info['tax_groups']) > 1) { $data_products .= ' <td class="main" valign="top" align="right">' . vam_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n"; } } $data_products .= '</tr>' . "\n"; } $data_products .= '</table>'; $vamTemplate->assign('PRODUCTS_BLOCK', $data_products); if ($order->info['payment_method'] != 'no_payment' && $order->info['payment_method'] != '') { include DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php'; $vamTemplate->assign('PAYMENT_METHOD', constant(MODULE_PAYMENT_ . strtoupper($order->info['payment_method']) . _TEXT_TITLE)); } $vamTemplate->assign('PAYMENT_EDIT', vam_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); $total_block = '<table>'; if (MODULE_ORDER_TOTAL_INSTALLED) { $order_total_modules->process(); $total_block .= $order_total_modules->output();
} // attribute models if (sizeof($order->products[$i]['attributes']) > 0) { for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) { $model = vam_get_attributes_model($order->products[$i]['id'], $order->products[$i]['attributes'][$j]['value'], $order->products[$i]['attributes'][$j]['option']); if ($model != '') { echo $model . '<br />'; } else { echo '<br />'; } } } echo ' </td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top">' . format_price($order->products[$i]['final_price'] / $order->products[$i]['qty'], 1, $order->info['currency'], $order->products[$i]['allow_tax'], $order->products[$i]['tax']) . '</td>' . "\n"; if ($order->products[$i]['allow_tax'] == 1) { echo '<td class="dataTableContent" align="right" valign="top">'; echo vam_display_tax_value($order->products[$i]['tax']) . '%'; echo '</td>' . "\n"; echo '<td class="dataTableContent" align="right" valign="top"><b>'; echo format_price($order->products[$i]['final_price'] / $order->products[$i]['qty'], 1, $order->info['currency'], 0, 0); echo '</b></td>' . "\n"; } echo ' <td class="dataTableContent" align="right" valign="top"><b>' . format_price($order->products[$i]['final_price'], 1, $order->info['currency'], 0, 0) . '</b></td>' . "\n"; echo ' </tr>' . "\n"; } ?> <tr> <td align="right" colspan="10"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n"; }
} ?> <td class="dataTableContent"><?php echo $rates['tax_priority']; ?> </td> <td class="dataTableContent"><?php echo $rates['tax_class_title']; ?> </td> <td class="dataTableContent"><?php echo $rates['geo_zone_name']; ?> </td> <td class="dataTableContent"><?php echo vam_display_tax_value($rates['tax_rate']); ?> %</td> <td class="dataTableContent" align="right"><?php if (is_object($trInfo) && $rates['tax_rates_id'] == $trInfo->tax_rates_id) { echo vam_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . vam_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $rates['tax_rates_id']) . '">' . vam_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } ?> <tr>