Page 1 of 1

Order comment

Posted: 20 Oct 2022, 09:12
by zmey78
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?

Code: Select all

// COMMENT
$o[] = '<tr><td colspan="12">&nbsp;</td></tr>';
if (isset($d['common']->customercomment) && $d['common']->customercomment != '') {
	$o[] = '<div><b>'.Text::_('COM_PHOCACART_PAYMENT').'</b>: '.$d['common']->customercomment.'</div>';
}
Thanks.

Re: Order comment

Posted: 20 Oct 2022, 22:31
by Jan
Hi, the variable is: {customercomment}

Jan

Re: Order comment

Posted: 21 Oct 2022, 13:11
by zmey78
Jan wrote: 20 Oct 2022, 22:31 Hi, the variable is: {customercomment}
Thanks, I could make through a variable 'comment'.

Another very exhaust question, can you tell me how to make a product in the order view form of a URL link? So that the buyer and manager can open the order and open the goods at the link and see it.

Re: Order comment

Posted: 21 Oct 2022, 15:49
by zmey78
I was able to do this on my own, thanks.

Re: Order comment

Posted: 21 Oct 2022, 20:56
by Jan
Ok