@@ 475-484 (lines=10) @@ | ||
472 | return $Qcategory->value('categories_name'); |
|
473 | } |
|
474 | ||
475 | function tep_get_orders_status_name($orders_status_id, $language_id = '') { |
|
476 | $OSCOM_Db = Registry::get('Db'); |
|
477 | $OSCOM_Language = Registry::get('Language'); |
|
478 | ||
479 | if (empty($language_id) || !is_numeric($language_id)) $language_id = $OSCOM_Language->getId(); |
|
480 | ||
481 | $Qstatus = $OSCOM_Db->get('orders_status', 'orders_status_name', ['orders_status_id' => (int)$orders_status_id, 'language_id' => (int)$language_id]); |
|
482 | ||
483 | return $Qstatus->value('orders_status_name'); |
|
484 | } |
|
485 | ||
486 | function tep_get_orders_status() { |
|
487 | $OSCOM_Db = Registry::get('Db'); |
|
@@ 509-518 (lines=10) @@ | ||
506 | return $orders_status_array; |
|
507 | } |
|
508 | ||
509 | function tep_get_products_name($product_id, $language_id = 0) { |
|
510 | $OSCOM_Db = Registry::get('Db'); |
|
511 | $OSCOM_Language = Registry::get('Language'); |
|
512 | ||
513 | if (empty($language_id) || !is_numeric($language_id)) $language_id = $OSCOM_Language->getId(); |
|
514 | ||
515 | $Qproduct = Registry::get('Db')->get('products_description', 'products_name', ['products_id' => (int)$product_id, 'language_id' => (int)$language_id]); |
|
516 | ||
517 | return $Qproduct->value('products_name'); |
|
518 | } |
|
519 | ||
520 | function tep_get_products_description($product_id, $language_id) { |
|
521 | $Qproduct = Registry::get('Db')->get('products_description', 'products_description', ['products_id' => (int)$product_id, 'language_id' => (int)$language_id]); |
|
@@ 1384-1395 (lines=12) @@ | ||
1381 | return HTML::selectField($name, $statuses_array, $order_status_id); |
|
1382 | } |
|
1383 | ||
1384 | function tep_get_order_status_name($order_status_id, $language_id = '') { |
|
1385 | $OSCOM_Db = Registry::get('Db'); |
|
1386 | $OSCOM_Language = Registry::get('Language'); |
|
1387 | ||
1388 | if ($order_status_id < 1) return OSCOM::getDef('text_default'); |
|
1389 | ||
1390 | if (empty($language_id) || !is_numeric($language_id)) $language_id = $OSCOM_Language->getId(); |
|
1391 | ||
1392 | $Qstatus = $OSCOM_Db->get('orders_status', 'orders_status_name', ['orders_status_id' => (int)$order_status_id, 'language_id' => (int)$language_id]); |
|
1393 | ||
1394 | return $Qstatus->value('orders_status_name'); |
|
1395 | } |
|
1396 | ||
1397 | //// |
|
1398 | // Parse and secure the cPath parameter values |