[+] FO : Messages in order detail are now stored in the Customer Service (SAV)
This commit is contained in:
1 parent
e2bb3d430a
commit
ae697852cf
6 files changed
+67
-15
No files matched your search
@@ -79,6 +79,13 @@ class CustomerThreadCore extends ObjectModel
|
||||
SELECT * FROM '._DB_PREFIX_.'customer_thread ct
|
||||
LEFT JOIN '._DB_PREFIX_.'customer_message cm ON ct.id_customer_thread = cm.id_customer_thread
|
||||
WHERE id_customer = '.(int)($id_customer));
|
||||
}
|
||||
}
|
||||
|
||||
public static function getIdCustomerThreadByEmailAndIdOrder($email, $id_order)
|
||||
{
|
||||
return Db::getInstance()->getValue('
|
||||
SELECT cm.id_customer_thread FROM '._DB_PREFIX_.'customer_thread cm
|
||||
WHERE cm.email = \''.pSQL($email).'\' AND cm.id_shop = '.(int)Context::getContext()->shop->getId(true).' AND cm.id_order = '.(int)$id_order.'');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user