  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: order.php 733 2006-08-20 15:32:32Z hpdl $ |
| |
| 3 | + | $Id: order.php 734 2006-08-20 17:56:47Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
30 | 30 | | $this->customer = array(); |
| |
31 | 31 | | $this->delivery = array(); |
| |
32 | 32 | | |
  |
33 | | - | if (tep_not_null($order_id)) { |
| |
| 33 | + | if (!empty($order_id)) { |
|
34 | 34 | | $this->query($order_id); |
| |
35 | 35 | | } else { |
| |
36 | 36 | | $this->cart(); |
| |
|
|
 |
… |
|
189 | 189 | | $Qproducts = $osC_Database->query('insert into :table_orders_products (orders_id, products_id, products_model, products_name, products_price, final_price, products_tax, products_quantity) values (:orders_id, :products_id, :products_model, :products_name, :products_price, :final_price, :products_tax, :products_quantity)'); |
| |
190 | 190 | | $Qproducts->bindTable(':table_orders_products', TABLE_ORDERS_PRODUCTS); |
| |
191 | 191 | | $Qproducts->bindInt(':orders_id', $insert_id); |
  |
192 | | - | $Qproducts->bindInt(':products_id', tep_get_prid($products['id'])); |
| |
| 192 | + | $Qproducts->bindInt(':products_id', osc_get_product_id($products['id'])); |
|
193 | 193 | | $Qproducts->bindValue(':products_model', '' /*$products['model']*/); |
| |
194 | 194 | | $Qproducts->bindValue(':products_name', $products['name']); |
| |
195 | 195 | | $Qproducts->bindValue(':products_price', $products['price']); |
| |
|
|
 |
… |
|
462 | 462 | | // } |
| |
463 | 463 | | // } |
| |
464 | 464 | | |
  |
465 | | - | tep_mail($Qorder->value('customers_name'), $Qorder->value('customers_email_address'), $osC_Language->get('email_order_subject'), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); |
| |
| 465 | + | osc_email($Qorder->value('customers_name'), $Qorder->value('customers_email_address'), $osC_Language->get('email_order_subject'), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); |
|
466 | 466 | | |
| |
467 | 467 | | // send emails to other people |
| |
468 | 468 | | if (SEND_EXTRA_ORDER_EMAILS_TO != '') { |
  |
469 | | - | tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, $osC_Language->get('email_order_subject'), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); |
| |
| 469 | + | osc_email('', SEND_EXTRA_ORDER_EMAILS_TO, $osC_Language->get('email_order_subject'), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); |
  |
470 | 470 | | } |
| |
471 | 471 | | } |
| |
472 | 472 | | |