[*] FO : get the product attribute id for download link

This commit is contained in:
lBrieu committed 2011-10-05 13:57:02 +00:00
1 parent 8cb10d7935
commit 69ae41c235
1 file changed
+1 -1
+1 -1
View File
@@ -526,7 +526,7 @@ class OrderCore extends ObjectModel
public function getVirtualProducts() public function getVirtualProducts()
{ {
$sql = ' $sql = '
SELECT `product_id`, `download_hash`, `download_deadline` SELECT `product_id`, `product_attribute_id`, `download_hash`, `download_deadline`
FROM `'._DB_PREFIX_.'order_detail` od FROM `'._DB_PREFIX_.'order_detail` od
WHERE od.`id_order` = '.(int)($this->id).' WHERE od.`id_order` = '.(int)($this->id).'
AND `download_hash` <> \'\''; AND `download_hash` <> \'\'';