<td class="smallText" align="center"><b><?php echo TABLE_HEADING_COMMENTS; ?> </b></td> </tr> <?php $orders_history_query = olc_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . $oID . "' order by date_added"); if (olc_db_num_rows($orders_history_query)) { while ($orders_history = olc_db_fetch_array($orders_history_query)) { echo ' <tr>' . NEW_LINE . ' <td class="smallText" align="center">' . olc_datetime_short($orders_history['date_added']) . '</td>' . NEW_LINE . ' <td class="smallText" align="center">'; if ($orders_history['customer_notified'] == '1') { echo olc_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n"; } else { echo olc_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n"; } echo ' <td class="smallText">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . NEW_LINE . ' <td class="smallText">' . nl2br(olc_db_output($orders_history['comments'])) . ' </td>' . NEW_LINE . ' </tr>' . NEW_LINE; } } else { echo ' <tr>' . NEW_LINE . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE; } ?> </table></td> </tr> <tr> <td class="main"><br/><b><?php echo TABLE_HEADING_COMMENTS; ?> </b></td> </tr> <tr> <?php
</td> <td class="main" align="right" valign="top"><?php echo olc_image(DIR_WS_CATALOG_IMAGES . $rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> </tr> </table> </tr> <tr> <td><table witdh="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" class="main"><b><?php echo ENTRY_REVIEW; ?> </b><br/><br/><?php echo nl2br(olc_db_output(olc_break_string($rInfo->reviews_text, 15))); ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><b><?php echo ENTRY_RATING; ?>
function notifyCustomer(&$order) { $customer_notification = SEND_EMAILS == TRUE_STRING_S ? '1' : '0'; olc_db_query(INSERT_INTO . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified) values ('" . (int) $this->orderID . "', '" . MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID . "', now(), '" . $customer_notification . "')"); // lets start with the email confirmation include $this->checkoutProcessLanguageFile; $email_order = STORE_NAME . NEW_LINE . EMAIL_SEPARATOR . NEW_LINE . EMAIL_TEXT_ORDER_NUMBER . ' ' . $this->orderID . NEW_LINE . EMAIL_TEXT_INVOICE_URL . ' ' . $this->accountHistoryInfoURL . NEW_LINE . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; $customerComments = $this->getCustomerComments(); if ($customerComments) { $email_order .= olc_db_output($customerComments) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . NEW_LINE . EMAIL_SEPARATOR . NEW_LINE . $this->products_ordered . EMAIL_SEPARATOR . NEW_LINE; for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { $email_order .= strip_tags($order->totals[$i]['title']) . ' ' . strip_tags($order->totals[$i]['text']) . NEW_LINE; } if ($this->contentType != 'virtual') { $email_order .= NEW_LINE . EMAIL_TEXT_DELIVERY_ADDRESS . NEW_LINE . EMAIL_SEPARATOR . NEW_LINE . olc_address_label($order->customer['id'], $this->sendTo, 0, '', NEW_LINE) . NEW_LINE; } $email_order .= NEW_LINE . EMAIL_TEXT_BILLING_ADDRESS . NEW_LINE . EMAIL_SEPARATOR . NEW_LINE . olc_address_label($order->customer['id'], $this->billTo, 0, '', NEW_LINE) . "\n\n"; $email_order .= EMAIL_TEXT_PAYMENT_METHOD . NEW_LINE . EMAIL_SEPARATOR . NEW_LINE; $email_order .= $this->paymentTitle . "\n\n"; olc_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { olc_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } }