[TYPO3-commerce] order_sys_language_uid is not passed to moveOrderMail

Thibaut van de Mortel tibo at goutemesdisques.com
Thu Mar 13 00:07:55 CET 2008


Hello list,
I had troubles with the moveOrderMail as the template was not selected 
according to the order language, as it should be in the 
'processOrdermails' function (hooks/class.tx_commerce_ordermailhooks.php 
line 305).
This function expects the order_sys_language_uid but doesn't get it.

Problem comes from the "doaction" function inside mod_orders/index.php, 
line 166 :

-----------------------
$data['tx_commerce_orders'][$oneUid] = 
t3lib_befunc::getRecordRaw('tx_commerce_orders','uid = 
'.$oneUid,'cust_deliveryaddress,cust_fe_user,cust_invoice');
-----------------------

this line should contain the mentioned field, and thus should be :

-----------------------
$data['tx_commerce_orders'][$oneUid] = 
t3lib_befunc::getRecordRaw('tx_commerce_orders','uid = 
'.$oneUid,'cust_deliveryaddress,cust_fe_user,cust_invoice,order_sys_language_uid');
-----------------------


I hope it helps.

Regards,
tibo


More information about the TYPO3-project-commerce mailing list