OpenCart 🇺🇦

Схема

public mixed find ( $smp_id )

Аргументы

Аргумент Возможный тип Описание
$smp_id

Описание

Метод пока еще не документирован.

Исходный код

$this->openbay->ebay->log('find() - Finding SMP: '.$smp_id);

$order_id = $this->orderLinkGet($smp_id);

/**
 * This is a depreciated method of getting order Id's and will be removed in the future.
 */
if($order_id == 0) {
	$query = $this->db->query("SELECT `order_id` FROM `" . DB_PREFIX . "order_history` WHERE `comment` = '[eBay Import:" . $this->db->escape($smp_id) . "]' LIMIT 1");

	if($query->num_rows > 0) {
		$this->openbay->ebay->log('find() (depreciated) - Found: '.$query->row['order_id']);
		return (int)$query->row['order_id'];
	}else{
		$this->openbay->ebay->log('find() (depreciated) - Nothing found');
		return false;
	}
}else{
	$this->openbay->ebay->log('find() - Found: '.$order_id);
	return $order_id;
}