Order comment
Posted: 20 Oct 2022, 09:12
Hello.
I successfully added the phone and Email to order view according to the instructions (Phoca Cart - Template Overrides), but there were difficulties with adding buyer's comment. I tried different options ('comment', 'customercomment', etc.), but not one came up. Can you suggest the correct name of the variable for commen of the order?
Thanks.
I successfully added the phone and Email to order view according to the instructions (Phoca Cart - Template Overrides), but there were difficulties with adding buyer's comment. I tried different options ('comment', 'customercomment', etc.), but not one came up. Can you suggest the correct name of the variable for commen of the order?
Code: Select all
// COMMENT
$o[] = '<tr><td colspan="12"> </td></tr>';
if (isset($d['common']->customercomment) && $d['common']->customercomment != '') {
$o[] = '<div><b>'.Text::_('COM_PHOCACART_PAYMENT').'</b>: '.$d['common']->customercomment.'</div>';
}