Units Sold
1.0.0
1.0.8
Fido-X
db->query("SELECT SUM(op.quantity) AS total FROM `" . DB_PREFIX . "order_product` op LEFT JOIN `" . DB_PREFIX . "order` o ON (op.order_id = o.order_id) WHERE o.order_status_id = '5' AND op.product_id = '" . (int)$product_id . "'");
if ($query->row) {
return $query->row['total'];
} else {
return FALSE;
}
}
]]>
db->query("SELECT SUM(op.quantity) AS total FROM `" . DB_PREFIX . "order_product` op LEFT JOIN `" . DB_PREFIX . "order` o ON (op.order_id = o.order_id) WHERE o.order_status_id = '5' AND op.product_id = '" . (int)$product_id . "'");
if ($query->row) {
return $query->row['total'];
} else {
return FALSE;
}
}
]]>
data['text_sort'] = $this->language->get('text_sort');
]]>
data['text_units_sold'] = $this->language->get('text_units_sold');
]]>
data['products'][] = array(
]]>
$this->model_catalog_category->getUnitsSold($result['product_id']),
]]>
load->model('catalog/review');
]]>
data['text_units_sold'] = $this->language->get('text_units_sold');
$this->data['units_sold'] = $this->model_catalog_product->getUnitsSold($product_id);
]]>
" title="" >
]]>
:
]]>
]]>
|
|
]]>