Units Sold v1.5.1.x 1.1.0 2.1.5 Fido-X || .tpl files made compatible for v1.5.1.x by Webvet 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); ]]> ]]>

]]>
]]>
]]>