} } // insert customer choosen option eof $total_weight += $oOrder->products[$i]['qty'] * $oOrder->products[$i]['weight']; $total_tax += oos_calculate_tax($total_products_price, $products_tax) * $oOrder->products[$i]['qty']; $total_cost += $total_products_price; $products_ordered .= $oOrder->products[$i]['qty'] . ' x ' . $oOrder->products[$i]['name'] . ' (' . $oOrder->products[$i]['model'] . ') = ' . $oCurrencies->display_price($oOrder->products[$i]['final_price'], $oOrder->products[$i]['tax'], $oOrder->products[$i]['qty']) . $products_ordered_attributes . "\n"; } $oOrderTotalModules->apply_credit(); // lets start with the email confirmation $email_order = STORE_NAME . "\n" . $aLang['email_separator'] . "\n" . $aLang['email_text_order_number'] . ' ' . $insert_id . "\n" . $aLang['email_text_invoice_url'] . ' ' . oos_href_link($aModules['account'], $aFilename['account_history_info'], 'order_id=' . $insert_id, 'SSL', false) . "\n" . $aLang['email_text_date_ordered'] . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($oOrder->info['comments']) { $email_order .= oosDBOutput($oOrder->info['comments']) . "\n\n"; } if (isset($_SESSION['campaigns_id'])) { $email_order .= $aLang['email_separator'] . "\n" . $aLang['email_text_campaigns'] . "\n" . oos_get_campaigns_name($_SESSION['campaigns_id']) . "\n\n"; } $email_order .= $aLang['email_text_products'] . "\n" . $aLang['email_separator'] . "\n" . $products_ordered . $aLang['email_separator'] . "\n"; for ($i = 0, $n = count($order_totals); $i < $n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($oOrder->content_type != 'virtual') { $email_order .= "\n" . $aLang['email_text_delivery_address'] . "\n" . $aLang['email_separator'] . "\n" . oos_address_label($_SESSION['customer_id'], $_SESSION['sendto'], 0, '', "\n") . "\n"; } $email_order .= "\n" . $aLang['email_text_billing_address'] . "\n" . $aLang['email_separator'] . "\n" . oos_address_label($_SESSION['customer_id'], $_SESSION['billto'], 0, '', "\n") . "\n\n"; if (is_object(${$_SESSION}['payment'])) { $email_order .= $aLang['email_text_payment_method'] . "\n" . $aLang['email_separator'] . "\n"; $payment_class = ${$_SESSION}['payment']; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n";
// lets start with the email confirmation $email_order = STORE_NAME . "\n" . $aLang['email_separator'] . "\n" . $aLang['email_text_order_number'] . ' ' . $insert_id . "\n" . $aLang['email_text_invoice_url'] . ' ' . oos_href_link($aPages['account_history_info'], 'order_id=' . $insert_id, 'SSL', false) . "\n" . $aLang['email_text_date_ordered'] . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($oOrder->info['comments']) { $email_order .= oosDBOutput($oOrder->info['comments']) . "\n\n"; } if (isset($_SESSION['campaigns_id'])) { $email_order .= $aLang['email_separator'] . "\n" . $aLang['email_text_campaigns'] . "\n" . oos_get_campaigns_name($_SESSION['campaigns_id']) . "\n\n"; } $email_order .= $aLang['email_text_products'] . "\n" . $aLang['email_separator'] . "\n" . $products_ordered . $aLang['email_separator'] . "\n"; for ($i=0, $n=count($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($oOrder->content_type != 'virtual') { $email_order .= "\n" . $aLang['email_text_delivery_address'] . "\n" .
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CAMPAIGNS . '</b>'); $contents = array('form' => oos_draw_form('status', $aFilename['campaigns'], 'page=' . $_GET['page'] . '&cID=' . $oInfo->campaigns_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $oInfo->campaigns_name . '</b>'); if ($remove_status) { $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['campaigns'], 'page=' . $_GET['page'] . '&cID=' . $oInfo->campaigns_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'); } break; default: if (isset($oInfo) && is_object($oInfo)) { $heading[] = array('text' => '<b>' . $oInfo->campaigns_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['campaigns'], 'page=' . $_GET['page'] . '&cID=' . $oInfo->campaigns_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['campaigns'], 'page=' . $_GET['page'] . '&cID=' . $oInfo->campaigns_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>'); $campaigns_inputs_string = ''; $languages = oos_get_languages(); for ($i = 0, $n = count($languages); $i < $n; $i++) { $campaigns_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_get_campaigns_name($oInfo->campaigns_id, $languages[$i]['id']); } $contents[] = array('text' => $campaigns_inputs_string); } break; } if (!empty($heading) && !empty($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr>