Order comment

Phoca Cart - complex e-commerce extension
zmey78
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Oct 2022, 09:04

Order comment

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Order comment

Post by Jan »

Hi, the variable is: {customercomment}

Jan
If you find Phoca extensions useful, please support the project
zmey78
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Oct 2022, 09:04

Re: Order comment

Post 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.
zmey78
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Oct 2022, 09:04

Re: Order comment

Post by zmey78 »

I was able to do this on my own, thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Order comment

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply